mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-07 08:01:54 +01:00
Docs: Synchronize descriptions of some query functions and their counterpart methods in WP
and WP_Query
classes:
* `set_query_var()` * `get_query_var()` * `get_queried_object()` * `get_queried_object_id()` Switch to third-person singular verbs, per the documentation standards. See #50768, #42783. Built from https://develop.svn.wordpress.org/trunk@49095 git-svn-id: http://core.svn.wordpress.org/trunk@48857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
088aa1e864
commit
2670a6ad14
@ -1721,7 +1721,7 @@ class WP_Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve query variable.
|
* Retrieves the value of a query variable.
|
||||||
*
|
*
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
* @since 3.9.0 The `$default` argument was introduced.
|
* @since 3.9.0 The `$default` argument was introduced.
|
||||||
@ -1739,7 +1739,7 @@ class WP_Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set query variable.
|
* Sets the value of a query variable.
|
||||||
*
|
*
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*
|
*
|
||||||
@ -3449,7 +3449,7 @@ class WP_Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve queried object.
|
* Retrieves the currently queried object.
|
||||||
*
|
*
|
||||||
* If queried object is not set, then the queried object will be set from
|
* If queried object is not set, then the queried object will be set from
|
||||||
* the category, tag, taxonomy, posts page, single post, page, or author
|
* the category, tag, taxonomy, posts page, single post, page, or author
|
||||||
@ -3527,7 +3527,7 @@ class WP_Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve ID of the current queried object.
|
* Retrieves the ID of the currently queried object.
|
||||||
*
|
*
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*
|
*
|
||||||
|
@ -83,7 +83,7 @@ class WP {
|
|||||||
public $did_permalink = false;
|
public $did_permalink = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add name to list of public query variables.
|
* Adds a query variable to the list of public query variables.
|
||||||
*
|
*
|
||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
*
|
*
|
||||||
@ -107,7 +107,7 @@ class WP {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of a query variable.
|
* Sets the value of a query variable.
|
||||||
*
|
*
|
||||||
* @since 2.3.0
|
* @since 2.3.0
|
||||||
*
|
*
|
||||||
@ -119,7 +119,7 @@ class WP {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse request to find correct WordPress query.
|
* Parses the request to find the correct WordPress query.
|
||||||
*
|
*
|
||||||
* Sets up the query variables based on the request. There are also many
|
* Sets up the query variables based on the request. There are also many
|
||||||
* filters and actions that can be used to further manipulate the result.
|
* filters and actions that can be used to further manipulate the result.
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve variable in the WP_Query class.
|
* Retrieves the value of a query variable in the WP_Query class.
|
||||||
*
|
*
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
* @since 3.9.0 The `$default` argument was introduced.
|
* @since 3.9.0 The `$default` argument was introduced.
|
||||||
@ -29,7 +29,7 @@ function get_query_var( $var, $default = '' ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve the currently-queried object.
|
* Retrieves the currently queried object.
|
||||||
*
|
*
|
||||||
* Wrapper for WP_Query::get_queried_object().
|
* Wrapper for WP_Query::get_queried_object().
|
||||||
*
|
*
|
||||||
@ -45,7 +45,7 @@ function get_queried_object() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve ID of the current queried object.
|
* Retrieves the ID of the currently queried object.
|
||||||
*
|
*
|
||||||
* Wrapper for WP_Query::get_queried_object_id().
|
* Wrapper for WP_Query::get_queried_object_id().
|
||||||
*
|
*
|
||||||
@ -61,7 +61,7 @@ function get_queried_object_id() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set variable in the WP_Query class.
|
* Sets the value of a query variable in the WP_Query class.
|
||||||
*
|
*
|
||||||
* @since 2.2.0
|
* @since 2.2.0
|
||||||
*
|
*
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.6-alpha-49094';
|
$wp_version = '5.6-alpha-49095';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user