mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user