Make WordPress Core


Ignore:
Timestamp:
10/06/2020 08:57:38 AM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/query.php

    r49094 r49095  
    1313
    1414/**
    15  * Retrieve variable in the WP_Query class.
     15 * Retrieves the value of a query variable in the WP_Query class.
    1616 *
    1717 * @since 1.5.0
     
    3030
    3131/**
    32  * Retrieve the currently-queried object.
     32 * Retrieves the currently queried object.
    3333 *
    3434 * Wrapper for WP_Query::get_queried_object().
     
    4646
    4747/**
    48  * Retrieve ID of the current queried object.
     48 * Retrieves the ID of the currently queried object.
    4949 *
    5050 * Wrapper for WP_Query::get_queried_object_id().
     
    6262
    6363/**
    64  * Set variable in the WP_Query class.
     64 * Sets the value of a query variable in the WP_Query class.
    6565 *
    6666 * @since 2.2.0
Note: See TracChangeset for help on using the changeset viewer.