mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-09-22 08:50:24 +00:00
Docs: Further corrections and promotions for docblocks relating to object types.
See #50768 git-svn-id: https://develop.svn.wordpress.org/trunk@49197 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1303,7 +1303,7 @@ function get_category_children( $id, $before = '/', $after = '', $visited = arra
|
||||
*
|
||||
* @link https://developer.wordpress.org/reference/functions/get_all_category_ids/
|
||||
*
|
||||
* @return object List of all of the category IDs.
|
||||
* @return int[] List of all of the category IDs.
|
||||
*/
|
||||
function get_all_category_ids() {
|
||||
_deprecated_function( __FUNCTION__, '4.0.0', 'get_terms()' );
|
||||
|
||||
@@ -517,8 +517,8 @@ function ms_not_installed( $domain, $path ) {
|
||||
* @since 3.0.0
|
||||
* @deprecated 3.9.0 Use get_current_site() instead.
|
||||
*
|
||||
* @param object $current_site
|
||||
* @return object
|
||||
* @param WP_Network $current_site
|
||||
* @return WP_Network
|
||||
*/
|
||||
function get_current_site_name( $current_site ) {
|
||||
_deprecated_function( __FUNCTION__, '3.9.0', 'get_current_site()' );
|
||||
@@ -535,9 +535,9 @@ function get_current_site_name( $current_site ) {
|
||||
* @since 3.0.0
|
||||
* @deprecated 3.9.0
|
||||
*
|
||||
* @global object $current_site
|
||||
* @global WP_Network $current_site
|
||||
*
|
||||
* @return object
|
||||
* @return WP_Network
|
||||
*/
|
||||
function wpmu_current_site() {
|
||||
global $current_site;
|
||||
|
||||
@@ -37,7 +37,7 @@ function get_query_var( $var, $default = '' ) {
|
||||
*
|
||||
* @global WP_Query $wp_query WordPress Query object.
|
||||
*
|
||||
* @return object Queried object.
|
||||
* @return WP_Term|WP_Post_Type|WP_Post|WP_User|null The queried object.
|
||||
*/
|
||||
function get_queried_object() {
|
||||
global $wp_query;
|
||||
@@ -996,7 +996,7 @@ function have_comments() {
|
||||
*
|
||||
* @global WP_Query $wp_query WordPress Query object.
|
||||
*
|
||||
* @return object
|
||||
* @return null
|
||||
*/
|
||||
function the_comment() {
|
||||
global $wp_query;
|
||||
|
||||
@@ -1526,7 +1526,7 @@ function sanitize_user_field( $field, $value, $user_id, $context ) {
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param WP_User $user User object to be cached
|
||||
* @param object|WP_User $user User object or database row to be cached
|
||||
* @return bool|null Returns false on failure.
|
||||
*/
|
||||
function update_user_caches( $user ) {
|
||||
|
||||
Reference in New Issue
Block a user