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/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
Note: See TracChangeset for help on using the changeset viewer.