Docs: some `@global object` vernaculars should be converted to the actual object type.
See #33491. Built from https://develop.svn.wordpress.org/trunk@35013 git-svn-id: http://core.svn.wordpress.org/trunk@34978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
57c2ef2655
commit
00ade45fd1
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -155,7 +155,7 @@ class Walker_Comment extends Walker {
|
|||
* @see wp_list_comments()
|
||||
*
|
||||
* @global int $comment_depth
|
||||
* @global object $comment
|
||||
* @global WP_Comment $comment
|
||||
*
|
||||
* @param string $output Passed by reference. Used to append additional content.
|
||||
* @param object $comment Comment data object.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -1223,7 +1223,7 @@ function wp_comment_form_unfiltered_html_nonce() {
|
|||
* @global WP_Post $post
|
||||
* @global wpdb $wpdb
|
||||
* @global int $id
|
||||
* @global object $comment
|
||||
* @global WP_Comment $comment
|
||||
* @global string $user_login
|
||||
* @global int $user_ID
|
||||
* @global string $user_identity
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-35012';
|
||||
$wp_version = '4.4-alpha-35013';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue