Make WordPress Core

Changeset 53827


Ignore:
Timestamp:
08/04/2022 02:50:27 PM (2 years ago)
Author:
johnbillion
Message:

Docs: Various corrections and improvements to inline documentation.

See #55646

Location:
trunk/src
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/authorize-application.php

    r53102 r53827  
    251251                 *
    252252                 *     @type string $app_name    The suggested name of the application.
    253                  *     @type string $success_url The url the user will be redirected to after approving the application.
    254                  *     @type string $reject_url  The url the user will be redirected to after rejecting the application.
     253                 *     @type string $success_url The URL the user will be redirected to after approving the application.
     254                 *     @type string $reject_url  The URL the user will be redirected to after rejecting the application.
    255255                 * }
    256256                 * @param WP_User $user The user authorizing the application.
  • trunk/src/wp-admin/edit-tags.php

    r53455 r53827  
    487487         *     An array of taxonomy parent drop-down arguments.
    488488         *
    489          *     @type int|bool $hide_empty       Whether to hide terms not attached to any posts. Default 0|false.
     489         *     @type int|bool $hide_empty       Whether to hide terms not attached to any posts. Default 0.
    490490         *     @type bool     $hide_if_empty    Whether to hide the drop-down if no terms exist. Default false.
    491491         *     @type string   $taxonomy         The taxonomy slug.
  • trunk/src/wp-includes/category.php

    r48591 r53827  
    270270 * @param int    $cat_id  Category ID.
    271271 * @param string $context What filter to use, 'raw', 'display', etc.
    272  * @return mixed Same type as $value after $value has been sanitized.
     272 * @return mixed Value after $value has been sanitized.
    273273 */
    274274function sanitize_category_field( $field, $value, $cat_id, $context ) {
  • trunk/src/wp-includes/class-wp-comment-query.php

    r53503 r53827  
    160160     *     @type string          $fields                    Comment fields to return. Accepts 'ids' for comment IDs
    161161     *                                                      only or empty for all fields. Default empty.
    162      *     @type int             $ID                        Currently unused.
    163162     *     @type array           $include_unapproved        Array of IDs or email addresses of users whose unapproved
    164163     *                                                      comments will be returned by the query regardless of
     
    224223     *     @type int[]           $post_author__not_in       Array of author IDs *not* to retrieve comments for.
    225224     *                                                      Default empty.
    226      *     @type int             $post_ID                   Currently unused.
    227225     *     @type int             $post_id                   Limit results to those affiliated with a given post ID.
    228226     *                                                      Default 0.
  • trunk/src/wp-includes/class-wp-http.php

    r52964 r53827  
    688688     *
    689689     *     @type array            $response {
    690      *          @type int    $code    The response status code. Default 0.
    691      *          @type string $message The response message. Default empty.
     690     *         @type int    $code    The response status code. Default 0.
     691     *         @type string $message The response message. Default empty.
    692692     *     }
    693693     *     @type array            $newheaders The processed header data as a multidimensional array.
  • trunk/src/wp-includes/class-wp-query.php

    r53508 r53827  
    666666     *                                                    Default false.
    667667     *     @type int             $m                       Combination YearMonth. Accepts any four-digit year and month
    668      *                                                    numbers 1-12. Default empty.
     668     *                                                    numbers 01-12. Default empty.
    669669     *     @type string|string[] $meta_key                Meta key or keys to filter by.
    670670     *     @type string|string[] $meta_value              Meta value or values to filter by.
  • trunk/src/wp-includes/link-template.php

    r53734 r53827  
    40174017     * Filters whether to preempt generating a shortlink for the given post.
    40184018     *
    4019      * Returning a truthy value from the filter will effectively short-circuit
     4019     * Returning a value other than false from the filter will short-circuit
    40204020     * the shortlink generation process, returning that value instead.
    40214021     *
  • trunk/src/wp-includes/media.php

    r53751 r53827  
    45364536     * @link https://core.trac.wordpress.org/ticket/31071
    45374537     *
    4538      * @param array|null $months An array of objects with `month` and `year`
    4539      *                           properties, or `null` (or any other non-array value)
    4540      *                           for default behavior.
     4538     * @param stdClass[]|null $months An array of objects with `month` and `year`
     4539     *                                properties, or `null` for default behavior.
    45414540     */
    45424541    $months = apply_filters( 'media_library_months_with_files', null );
  • trunk/src/wp-includes/meta.php

    r52707 r53827  
    16361636
    16371637/**
    1638  * Retrieves a list of registered meta keys for an object type.
     1638 * Retrieves a list of registered metadata args for an object type, keyed by their meta keys.
    16391639 *
    16401640 * @since 4.6.0
     
    16441644 *                               or any other object type with an associated meta table.
    16451645 * @param string $object_subtype Optional. The subtype of the object type.
    1646  * @return string[] List of registered meta keys.
     1646 * @return array[] List of registered metadata args, keyed by their meta keys.
    16471647 */
    16481648function get_registered_meta_keys( $object_type, $object_subtype = '' ) {
  • trunk/src/wp-includes/option.php

    r53704 r53827  
    115115     * The dynamic portion of the hook name, `$option`, refers to the option name.
    116116     *
    117      * Returning a truthy value from the filter will effectively short-circuit retrieval
    118      * and return the passed value instead.
     117     * Returning a value other than false from the filter will short-circuit retrieval
     118     * and return that value instead.
    119119     *
    120120     * @since 1.5.0
     
    833833     * The dynamic portion of the hook name, `$transient`, refers to the transient name.
    834834     *
    835      * Returning a truthy value from the filter will effectively short-circuit retrieval
    836      * and return the passed value instead.
     835     * Returning a value other than false from the filter will short-circuit retrieval
     836     * and return that value instead.
    837837     *
    838838     * @since 2.8.0
     
    10041004/**
    10051005 * Deletes all expired transients.
     1006 *
     1007 * Note that this function won't do anything if an external object cache is in use.
    10061008 *
    10071009 * The multi-table delete syntax is used to delete the transient record
     
    11331135 * Adds or updates user interface setting.
    11341136 *
    1135  * Both $name and $value can contain only ASCII letters, numbers, hyphens, and underscores.
    1136  *
    1137  * This function has to be used before any output has started as it calls setcookie().
     1137 * Both `$name` and `$value` can contain only ASCII letters, numbers, hyphens, and underscores.
     1138 *
     1139 * This function has to be used before any output has started as it calls `setcookie()`.
    11381140 *
    11391141 * @since 2.8.0
     
    11601162 * Deleting settings would reset them to the defaults.
    11611163 *
    1162  * This function has to be used before any output has started as it calls setcookie().
     1164 * This function has to be used before any output has started as it calls `setcookie()`.
    11631165 *
    11641166 * @since 2.7.0
     
    13901392     * The dynamic portion of the hook name, `$option`, refers to the option name.
    13911393     *
    1392      * Returning a truthy value from the filter will effectively short-circuit retrieval
    1393      * and return the passed value instead.
     1394     * Returning a value other than false from the filter will short-circuit retrieval
     1395     * and return that value instead.
    13941396     *
    13951397     * @since 2.9.0 As 'pre_site_option_' . $key
     
    14211423
    14221424        /**
    1423          * Filters a specific default network option.
     1425         * Filters the value of a specific default network option.
    14241426         *
    14251427         * The dynamic portion of the hook name, `$option`, refers to the option name.
  • trunk/src/wp-includes/pluggable.php

    r53698 r53827  
    896896     *
    897897     * @since 2.7.0
     898     * @since 4.0.0 The `$token` element was added to the return value.
    898899     *
    899900     * @param string $cookie Authentication cookie.
  • trunk/src/wp-includes/taxonomy.php

    r53669 r53827  
    31063106 * @param int          $term_id  The ID of the term.
    31073107 * @param string       $taxonomy The taxonomy of the term.
    3108  * @param array|string $args {
    3109  *     Optional. Array or string of arguments for updating a term.
     3108 * @param array        $args {
     3109 *     Optional. Array of arguments for updating a term.
    31103110 *
    31113111 *     @type string $alias_of    Slug of the term to make this term an alias of.
  • trunk/src/wp-login.php

    r53708 r53827  
    348348                    /**
    349349                     * Filters default arguments for the Languages select input on the login screen.
     350                     *
     351                     * The arguments get passed to the wp_dropdown_languages() function.
    350352                     *
    351353                     * @since 5.9.0
Note: See TracChangeset for help on using the changeset viewer.