Docs: Improve various globals documentation, as per documentation standards.

Props upadalavipul, mukesh27, krupalpanchal, jigar-bhanushali.
See #57069, #56792.


git-svn-id: https://develop.svn.wordpress.org/trunk@54867 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras 2022-11-23 21:28:15 +00:00
parent 04f55a430e
commit 54d392e8d7
5 changed files with 4 additions and 5 deletions

View File

@ -911,6 +911,8 @@ class WP_Upgrader {
*
* @since 4.5.0
*
* @global wpdb $wpdb The WordPress database abstraction object.
*
* @param string $lock_name The name of this unique lock.
* @param int $release_timeout Optional. The duration in seconds to respect an existing lock.
* Default: 1 hour.

View File

@ -196,6 +196,8 @@ class WP_Block {
*
* @since 5.5.0
*
* @global WP_Post $post Global post object.
*
* @param array $options {
* Optional options object.
*

View File

@ -124,7 +124,6 @@ class WP_Locale {
* @since 2.1.0
*
* @global string $text_direction
* @global string $wp_version The WordPress version string.
*/
public function init() {
// The weekdays.

View File

@ -589,8 +589,6 @@ class WP_Tax_Query {
*
* @since 3.2.0
*
* @global wpdb $wpdb The WordPress database abstraction object.
*
* @param array $query The single query. Passed by reference.
* @param string $resulting_field The resulting field. Accepts 'slug', 'name', 'term_taxonomy_id',
* or 'term_id'. Default 'term_id'.

View File

@ -910,8 +910,6 @@ class WP_Term_Query {
*
* @since 4.6.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $orderby_raw Alias for the field to order by.
* @return string|false Value to used in the ORDER clause. False otherwise.
*/