Docs: some `@global object` vernaculars should be converted to the actual object type.

See #33491.


git-svn-id: https://develop.svn.wordpress.org/trunk@35013 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-10-10 15:44:16 +00:00
parent 5200642cc5
commit c123726ba0
7 changed files with 23 additions and 23 deletions

View File

@ -317,8 +317,8 @@ All at ###SITENAME###
*
* @since 3.0.0
*
* @global object $errors WP_Error object.
* @global object $wpdb WordPress database object.
* @global WP_Error $errors WP_Error object.
* @global wpdb $wpdb WordPress database object.
*/
function send_confirmation_on_profile_email() {
global $errors, $wpdb;

View File

@ -530,7 +530,7 @@ function wp_admin_bar_shortlink_menu( $wp_admin_bar ) {
*
* @since 3.1.0
*
* @global object $tag
* @global WP_Term $tag
* @global WP_Query $wp_the_query
*
* @param WP_Admin_Bar $wp_admin_bar

View File

@ -154,8 +154,8 @@ class Walker_Comment extends Walker {
* @see Walker::start_el()
* @see wp_list_comments()
*
* @global int $comment_depth
* @global object $comment
* @global int $comment_depth
* @global WP_Comment $comment
*
* @param string $output Passed by reference. Used to append additional content.
* @param object $comment Comment data object.

View File

@ -162,7 +162,7 @@ function get_approved_comments( $post_id, $args = array() ) {
*
* @since 2.0.0
*
* @global object $comment
* @global WP_Comment $comment
*
* @param WP_Comment|string|int $comment Comment to retrieve.
* @param string $output Optional. OBJECT or ARRAY_A or ARRAY_N constants.

View File

@ -1219,15 +1219,15 @@ function wp_comment_form_unfiltered_html_nonce() {
*
* @since 1.5.0
*
* @global WP_Query $wp_query
* @global WP_Post $post
* @global wpdb $wpdb
* @global int $id
* @global object $comment
* @global string $user_login
* @global int $user_ID
* @global string $user_identity
* @global bool $overridden_cpage
* @global WP_Query $wp_query
* @global WP_Post $post
* @global wpdb $wpdb
* @global int $id
* @global WP_Comment $comment
* @global string $user_login
* @global int $user_ID
* @global string $user_identity
* @global bool $overridden_cpage
*
* @param string $file Optional. The file to load. Default '/comments.php'.
* @param bool $separate_comments Optional. Whether to separate the comments by comment type.

View File

@ -538,7 +538,7 @@ function locate_template($template_names, $load = false, $require_once = true )
* @global string $wp_version
* @global WP $wp
* @global int $id
* @global object $comment
* @global WP_Comment $comment
* @global int $user_ID
*
* @param string $_template_file Path to template file.

View File

@ -262,7 +262,7 @@ do_action( 'sanitize_comment_cookies' );
/**
* WordPress Query object
* @global object $wp_the_query
* @global WP_Query $wp_the_query
* @since 2.0.0
*/
$GLOBALS['wp_the_query'] = new WP_Query();
@ -270,35 +270,35 @@ $GLOBALS['wp_the_query'] = new WP_Query();
/**
* Holds the reference to @see $wp_the_query
* Use this global for WordPress queries
* @global object $wp_query
* @global WP_Query $wp_query
* @since 1.5.0
*/
$GLOBALS['wp_query'] = $GLOBALS['wp_the_query'];
/**
* Holds the WordPress Rewrite object for creating pretty URLs
* @global object $wp_rewrite
* @global WP_Rewrite $wp_rewrite
* @since 1.5.0
*/
$GLOBALS['wp_rewrite'] = new WP_Rewrite();
/**
* WordPress Object
* @global object $wp
* @global WP $wp
* @since 2.0.0
*/
$GLOBALS['wp'] = new WP();
/**
* WordPress Widget Factory Object
* @global object $wp_widget_factory
* @global WP_Widget_Factory $wp_widget_factory
* @since 2.8.0
*/
$GLOBALS['wp_widget_factory'] = new WP_Widget_Factory();
/**
* WordPress User Roles
* @global object $wp_roles
* @global WP_Roles $wp_roles
* @since 2.0.0
*/
$GLOBALS['wp_roles'] = new WP_Roles();
@ -327,7 +327,7 @@ require_once( ABSPATH . WPINC . '/locale.php' );
/**
* WordPress Locale object for loading locale domain date and various strings.
* @global object $wp_locale
* @global WP_Locale $wp_locale
* @since 2.1.0
*/
$GLOBALS['wp_locale'] = new WP_Locale();