mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-05 07:58:35 +01:00
Docs: Improve a variety of DocBlocks in wp-includes/deprecated.php.
See #32246. Built from https://develop.svn.wordpress.org/trunk@36763 git-svn-id: http://core.svn.wordpress.org/trunk@36730 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fdc538940d
commit
bd3a1d74d9
@ -13,14 +13,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Entire Post data.
|
* Retrieves all post data for a given post.
|
||||||
*
|
*
|
||||||
* @since 0.71
|
* @since 0.71
|
||||||
* @deprecated 1.5.1 Use get_post()
|
* @deprecated 1.5.1 Use get_post()
|
||||||
* @see get_post()
|
* @see get_post()
|
||||||
*
|
*
|
||||||
* @param int $postid
|
* @param int $postid Post ID.
|
||||||
* @return array
|
* @return array Post data.
|
||||||
*/
|
*/
|
||||||
function get_postdata($postid) {
|
function get_postdata($postid) {
|
||||||
_deprecated_function( __FUNCTION__, '1.5.1', 'get_post()' );
|
_deprecated_function( __FUNCTION__, '1.5.1', 'get_post()' );
|
||||||
@ -70,14 +70,14 @@ function start_wp() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return or Print Category ID.
|
* Returns or prints a category ID.
|
||||||
*
|
*
|
||||||
* @since 0.71
|
* @since 0.71
|
||||||
* @deprecated 0.71 Use get_the_category()
|
* @deprecated 0.71 Use get_the_category()
|
||||||
* @see get_the_category()
|
* @see get_the_category()
|
||||||
*
|
*
|
||||||
* @param bool $echo
|
* @param bool $echo Optional. Whether to echo the output. Default true.
|
||||||
* @return null|int
|
* @return int Category ID.
|
||||||
*/
|
*/
|
||||||
function the_category_ID($echo = true) {
|
function the_category_ID($echo = true) {
|
||||||
_deprecated_function( __FUNCTION__, '0.71', 'get_the_category()' );
|
_deprecated_function( __FUNCTION__, '0.71', 'get_the_category()' );
|
||||||
@ -93,16 +93,16 @@ function the_category_ID($echo = true) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Print category with optional text before and after.
|
* Prints a category with optional text before and after.
|
||||||
*
|
*
|
||||||
* @since 0.71
|
* @since 0.71
|
||||||
* @deprecated 0.71 Use get_the_category_by_ID()
|
* @deprecated 0.71 Use get_the_category_by_ID()
|
||||||
* @see get_the_category_by_ID()
|
* @see get_the_category_by_ID()
|
||||||
*
|
*
|
||||||
* @param string $before
|
* @param string $before Optional. Text to display before the category. Default empty.
|
||||||
* @param string $after
|
* @param string $after Optional. Text to display after the category. Default empty.
|
||||||
*/
|
*/
|
||||||
function the_category_head($before='', $after='') {
|
function the_category_head( $before = '', $after = '' ) {
|
||||||
global $currentcat, $previouscat;
|
global $currentcat, $previouscat;
|
||||||
|
|
||||||
_deprecated_function( __FUNCTION__, '0.71', 'get_the_category_by_ID()' );
|
_deprecated_function( __FUNCTION__, '0.71', 'get_the_category_by_ID()' );
|
||||||
@ -119,7 +119,7 @@ function the_category_head($before='', $after='') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prints link to the previous post.
|
* Prints a link to the previous post.
|
||||||
*
|
*
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
* @deprecated 2.0.0 Use previous_post_link()
|
* @deprecated 2.0.0 Use previous_post_link()
|
||||||
@ -129,7 +129,7 @@ function the_category_head($before='', $after='') {
|
|||||||
* @param string $previous
|
* @param string $previous
|
||||||
* @param string $title
|
* @param string $title
|
||||||
* @param string $in_same_cat
|
* @param string $in_same_cat
|
||||||
* @param int $limitprev
|
* @param int $limitprev
|
||||||
* @param string $excluded_categories
|
* @param string $excluded_categories
|
||||||
*/
|
*/
|
||||||
function previous_post($format='%', $previous='previous post: ', $title='yes', $in_same_cat='no', $limitprev=1, $excluded_categories='') {
|
function previous_post($format='%', $previous='previous post: ', $title='yes', $in_same_cat='no', $limitprev=1, $excluded_categories='') {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-beta1-36762';
|
$wp_version = '4.5-beta1-36763';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user