Make WordPress Core

Changeset 52299


Ignore:
Timestamp:
12/01/2021 12:15:21 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Various docblock corrections.

See #53399

Location:
trunk/src
Files:
10 edited

Legend:

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

    r52269 r52299  
    688688 * @since 2.5.0
    689689 *
    690  * @param string $str
    691  * @return int
     690 * @param string $str A date string expected to be in Exif format (Y:m:d H:i:s).
     691 * @return int|false The unix timestamp, or false on failure.
    692692 */
    693693function wp_exif_date2ts( $str ) {
  • trunk/src/wp-admin/includes/post.php

    r52298 r52299  
    210210 * @since 5.0.1
    211211 *
    212  * @param array|null $post_data Optional. The array of post data to process.
    213  *                              Defaults to the `$_POST` superglobal.
     212 * @param array|WP_Error|null $post_data The array of post data to process, or an error object.
     213 *                                       Defaults to the `$_POST` superglobal.
    214214 * @return array|WP_Error Array of post data on success, WP_Error on failure.
    215215 */
  • trunk/src/wp-includes/class-wp-block.php

    r51894 r52299  
    197197     *
    198198     * @param array $options {
    199      *   Optional options object.
    200      *
    201      *   @type bool $dynamic Defaults to 'true'. Optionally set to false to avoid using the block's render_callback.
     199     *     Optional options object.
     200     *
     201     *     @type bool $dynamic Defaults to 'true'. Optionally set to false to avoid using the block's render_callback.
    202202     * }
    203203     * @return string Rendered block output.
  • trunk/src/wp-includes/class-wp-http-proxy.php

    r52215 r52299  
    4545     * Whether proxy connection should be used.
    4646     *
    47      * @since 2.8.0
    48      *
    49      * @use WP_PROXY_HOST
    50      * @use WP_PROXY_PORT
     47     * Constants which control this behaviour:
     48     *
     49     * - `WP_PROXY_HOST`
     50     * - `WP_PROXY_PORT`
     51     *
     52     * @since 2.8.0
    5153     *
    5254     * @return bool
     
    5961     * Whether authentication should be used.
    6062     *
    61      * @since 2.8.0
    62      *
    63      * @use WP_PROXY_USERNAME
    64      * @use WP_PROXY_PASSWORD
     63     * Constants which control this behaviour:
     64     *
     65     * - `WP_PROXY_USERNAME`
     66     * - `WP_PROXY_PASSWORD`
     67     *
     68     * @since 2.8.0
    6569     *
    6670     * @return bool
  • trunk/src/wp-includes/class-wp-query.php

    r52226 r52299  
    28272827             *
    28282828             * Covers the WHERE, GROUP BY, JOIN, ORDER BY, DISTINCT,
    2829              * fields (SELECT), and LIMITS clauses.
     2829             * fields (SELECT), and LIMIT clauses.
    28302830             *
    28312831             * @since 3.1.0
     
    29512951             *
    29522952             * Covers the WHERE, GROUP BY, JOIN, ORDER BY, DISTINCT,
    2953              * fields (SELECT), and LIMITS clauses.
     2953             * fields (SELECT), and LIMIT clauses.
    29542954             *
    29552955             * @since 3.1.0
  • trunk/src/wp-includes/comment.php

    r52205 r52299  
    367367 * @param int $post_id Optional. Restrict the comment counts to the given post. Default 0, which indicates that
    368368 *                     comment counts for the whole site will be retrieved.
    369  * @return array() {
     369 * @return array {
    370370 *     The number of comments keyed by their status.
    371371 *
  • trunk/src/wp-includes/media.php

    r52245 r52299  
    42254225 *     Arguments for enqueuing media scripts.
    42264226 *
    4227  *     @type int|WP_Post A post object or ID.
     4227 *     @type int|WP_Post $post A post object or ID.
    42284228 * }
    42294229 */
  • trunk/src/wp-includes/ms-functions.php

    r52205 r52299  
    13081308 * a Super Admin creates a new user. Hook to {@see 'wpmu_new_user'} for events
    13091309 * that should affect all new users, but only on Multisite (otherwise
    1310  * use {@see'user_register'}).
     1310 * use {@see 'user_register'}).
    13111311 *
    13121312 * @since MU (3.0.0)
  • trunk/src/wp-includes/pomo/entry.php

    r51919 r52299  
    1717         * Whether the entry contains a string and its plural form, default is false
    1818         *
    19          * @var boolean
     19         * @var bool
    2020         */
    2121        public $is_plural = false;
  • trunk/src/wp-includes/taxonomy.php

    r52204 r52299  
    46374637 *     supported by get_the_taxonomies(), in addition to the following.
    46384638 *
    4639  *     @type  int|WP_Post $post   Post ID or object to get taxonomies of. Default current post.
    4640  *     @type  string      $before Displays before the taxonomies. Default empty string.
    4641  *     @type  string      $sep    Separates each taxonomy. Default is a space.
    4642  *     @type  string      $after  Displays after the taxonomies. Default empty string.
     4639 *     @type int|WP_Post $post   Post ID or object to get taxonomies of. Default current post.
     4640 *     @type string      $before Displays before the taxonomies. Default empty string.
     4641 *     @type string      $sep    Separates each taxonomy. Default is a space.
     4642 *     @type string      $after  Displays after the taxonomies. Default empty string.
    46434643 * }
    46444644 */
Note: See TracChangeset for help on using the changeset viewer.