Docs: Add missing description for `$wp` global.
See #45604, #47110. Built from https://develop.svn.wordpress.org/trunk@45736 git-svn-id: http://core.svn.wordpress.org/trunk@45547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b1e34ccc1f
commit
ea606165a5
|
@ -1672,7 +1672,7 @@ class WP_Rewrite {
|
|||
* @since 4.3.0 Added support for skipping query var registration by passing `false` to `$query_var`.
|
||||
*
|
||||
* @see add_rewrite_endpoint() for full documentation.
|
||||
* @global WP $wp
|
||||
* @global WP $wp Current WordPress environment instance.
|
||||
*
|
||||
* @param string $name Name of the endpoint.
|
||||
* @param int $places Endpoint mask describing the places the endpoint should be added.
|
||||
|
|
|
@ -217,7 +217,7 @@ final class WP_Taxonomy {
|
|||
*
|
||||
* @since 4.7.0
|
||||
*
|
||||
* @global WP $wp WP instance.
|
||||
* @global WP $wp Current WordPress environment instance.
|
||||
*
|
||||
* @param string $taxonomy Taxonomy key, must not exceed 32 characters.
|
||||
* @param array|string $object_type Name of the object type for the taxonomy object.
|
||||
|
|
|
@ -1112,7 +1112,7 @@ function wp_remote_fopen( $uri ) {
|
|||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @global WP $wp_locale
|
||||
* @global WP $wp Current WordPress environment instance.
|
||||
* @global WP_Query $wp_query
|
||||
* @global WP_Query $wp_the_query
|
||||
*
|
||||
|
|
|
@ -283,7 +283,7 @@ function create_initial_rest_routes() {
|
|||
*
|
||||
* @since 4.4.0
|
||||
*
|
||||
* @global WP $wp Current WordPress environment instance.
|
||||
* @global WP $wp Current WordPress environment instance.
|
||||
*/
|
||||
function rest_api_loaded() {
|
||||
if ( empty( $GLOBALS['wp']->query_vars['rest_route'] ) ) {
|
||||
|
|
|
@ -150,7 +150,7 @@ function add_rewrite_rule( $regex, $query, $after = 'bottom' ) {
|
|||
* @since 2.1.0
|
||||
*
|
||||
* @global WP_Rewrite $wp_rewrite WordPress rewrite component.
|
||||
* @global WP $wp
|
||||
* @global WP $wp Current WordPress environment instance.
|
||||
*
|
||||
* @param string $tag Name of the new rewrite tag.
|
||||
* @param string $regex Regular expression to substitute the tag for in rewrite rules.
|
||||
|
@ -460,7 +460,7 @@ function wp_resolve_numeric_slug_conflicts( $query_vars = array() ) {
|
|||
* @since 1.0.0
|
||||
*
|
||||
* @global WP_Rewrite $wp_rewrite WordPress rewrite component.
|
||||
* @global WP $wp
|
||||
* @global WP $wp Current WordPress environment instance.
|
||||
*
|
||||
* @param string $url Permalink to check.
|
||||
* @return int Post ID, or 0 on failure.
|
||||
|
|
|
@ -690,7 +690,7 @@ function locate_template( $template_names, $load = false, $require_once = true )
|
|||
* @global WP_Rewrite $wp_rewrite WordPress rewrite component.
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
* @global string $wp_version
|
||||
* @global WP $wp
|
||||
* @global WP $wp Current WordPress environment instance.
|
||||
* @global int $id
|
||||
* @global WP_Comment $comment
|
||||
* @global int $user_ID
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.3-alpha-45735';
|
||||
$wp_version = '5.3-alpha-45736';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
|
@ -431,7 +431,7 @@ $GLOBALS['wp_rewrite'] = new WP_Rewrite();
|
|||
/**
|
||||
* WordPress Object
|
||||
*
|
||||
* @global WP $wp
|
||||
* @global WP $wp Current WordPress environment instance.
|
||||
* @since 2.0.0
|
||||
*/
|
||||
$GLOBALS['wp'] = new WP();
|
||||
|
|
Loading…
Reference in New Issue