Make WordPress Core

Changeset 55870


Ignore:
Timestamp:
05/30/2023 05:43:27 PM (13 months ago)
Author:
johnbillion
Message:

Docs: Miscellaneous corrections and improvements to docblocks.

See #57840

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

Legend:

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

    r55851 r55870  
    75767576             * @since 4.6.0 The default now takes the original `memory_limit` into account.
    75777577             *
    7578              * @param int|string $filtered_limit Maximum memory limit to allocate for images.
     7578             * @param int|string $filtered_limit Maximum memory limit to allocate for image processing.
    75797579             *                                   Default `WP_MAX_MEMORY_LIMIT` or the original
    75807580             *                                   php.ini `memory_limit`, whichever is higher.
     
    75877587        default:
    75887588            /**
    7589              * Filters the memory limit allocated for arbitrary contexts.
     7589             * Filters the memory limit allocated for an arbitrary context.
    75907590             *
    75917591             * The dynamic portion of the hook name, `$context`, refers to an arbitrary
     
    75957595             * @since 4.6.0
    75967596             *
    7597              * @param int|string $filtered_limit Maximum memory limit to allocate for images.
    7598              *                                   Default '256M' or the original php.ini `memory_limit`,
     7597             * @param int|string $filtered_limit Maximum memory limit to allocate for this context.
     7598             *                                   Default WP_MAX_MEMORY_LIMIT` or the original php.ini `memory_limit`,
    75997599             *                                   whichever is higher. Accepts an integer (bytes), or a
    76007600             *                                   shorthand string notation, such as '256M'.
  • trunk/src/wp-includes/general-template.php

    r55857 r55870  
    159159 * @since 5.5.0 The `$args` parameter was added.
    160160 *
    161  * @param string $slug The slug name for the generic template.
    162  * @param string $name The name of the specialized template.
    163  * @param array  $args Optional. Additional arguments passed to the template.
    164  *                     Default empty array.
     161 * @param string      $slug The slug name for the generic template.
     162 * @param string|null $name Optional. The name of the specialized template.
     163 * @param array       $args Optional. Additional arguments passed to the template.
     164 *                          Default empty array.
    165165 * @return void|false Void on success, false if the template does not exist.
    166166 */
     
    176176     *
    177177     * @param string      $slug The slug name for the generic template.
    178      * @param string|null $name The name of the specialized template.
     178     * @param string|null $name The name of the specialized template or null if
     179     *                          there is none.
    179180     * @param array       $args Additional arguments passed to the template.
    180181     */
     
    196197     *
    197198     * @param string   $slug      The slug name for the generic template.
    198      * @param string   $name      The name of the specialized template.
     199     * @param string   $name      The name of the specialized template or an empty
     200     *                            string if there is none.
    199201     * @param string[] $templates Array of template files to search for, in order.
    200202     * @param array    $args      Additional arguments passed to the template.
  • trunk/src/wp-includes/script-loader.php

    r55860 r55870  
    30883088 *
    30893089 * @param string $block_name The block-name, including namespace.
    3090  * @param array  $args       An array of arguments [handle,src,deps,ver,media].
     3090 * @param array  $args       {
     3091 *     An array of arguments. See wp_register_style() for full information about each argument.
     3092 *
     3093 *     @type string           $handle The handle for the stylesheet.
     3094 *     @type string|false     $src    The source URL of the stylesheet.
     3095 *     @type string[]         $deps   Array of registered stylesheet handles this stylesheet depends on.
     3096 *     @type string|bool|null $ver    Stylesheet version number.
     3097 *     @type string           $media  The media for which this stylesheet has been defined.
     3098 * }
    30913099 */
    30923100function wp_enqueue_block_style( $block_name, $args ) {
Note: See TracChangeset for help on using the changeset viewer.