mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 19:24:34 +00: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. git-svn-id: https://develop.svn.wordpress.org/trunk@49095 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 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().
|
||||
*
|
||||
@@ -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().
|
||||
*
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user