Make WordPress Core

Changeset 49095


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.

Location:
trunk/src/wp-includes
Files:
3 edited

Legend:

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

    r48985 r49095  
    17221722
    17231723    /**
    1724      * Retrieve query variable.
     1724     * Retrieves the value of a query variable.
    17251725     *
    17261726     * @since 1.5.0
     
    17401740
    17411741    /**
    1742      * Set query variable.
     1742     * Sets the value of a query variable.
    17431743     *
    17441744     * @since 1.5.0
     
    34503450
    34513451    /**
    3452      * Retrieve queried object.
     3452     * Retrieves the currently queried object.
    34533453     *
    34543454     * If queried object is not set, then the queried object will be set from
     
    35283528
    35293529    /**
    3530      * Retrieve ID of the current queried object.
     3530     * Retrieves the ID of the currently queried object.
    35313531     *
    35323532     * @since 1.5.0
  • trunk/src/wp-includes/class-wp.php

    r48590 r49095  
    8484
    8585    /**
    86      * Add name to list of public query variables.
     86     * Adds a query variable to the list of public query variables.
    8787     *
    8888     * @since 2.1.0
     
    108108
    109109    /**
    110      * Set the value of a query variable.
     110     * Sets the value of a query variable.
    111111     *
    112112     * @since 2.3.0
     
    120120
    121121    /**
    122      * Parse request to find correct WordPress query.
     122     * Parses the request to find the correct WordPress query.
    123123     *
    124124     * Sets up the query variables based on the request. There are also many
  • 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.