Make WordPress Core

Changeset 55843


Ignore:
Timestamp:
05/20/2023 10:17:57 AM (13 months ago)
Author:
SergeyBiryukov
Message:

Docs: Fix a few more typos in DocBlocks.

Follow-up to [39493], [41726], [55823], [55824], [55827].

See #57840.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/lib/image-edit.js

    r55044 r55843  
    436436     * @return {boolean|void} Executes a post request that refreshes the page
    437437     *                        when the action is performed.
    438      *                        Returns false if a invalid action is given,
     438     *                        Returns false if an invalid action is given,
    439439     *                        or when the action cannot be performed.
    440440     */
  • trunk/src/js/_enqueues/wp/customize/base.js

    r50547 r55843  
    392392         * Add an item to the collection.
    393393         *
    394          * @param {string|wp.customize.Class} item - The item instance to add, or the ID for the instance to add. When an ID string is supplied, then itemObject must be provided.
    395          * @param {wp.customize.Class}        [itemObject] - The item instance when the first argument is a ID string.
     394         * @param {string|wp.customize.Class} item         - The item instance to add, or the ID for the instance to add.
     395         *                                                   When an ID string is supplied, then itemObject must be provided.
     396         * @param {wp.customize.Class}        [itemObject] - The item instance when the first argument is an ID string.
    396397         * @return {wp.customize.Class} The new item's instance, or an existing instance if already added.
    397398         */
  • trunk/src/wp-includes/media.php

    r55827 r55843  
    38053805 *
    38063806 * @param resource|GdImage|false $image A value to check the type for.
    3807  * @return bool True if $image is either a GD image resource or GdImage instance,
     3807 * @return bool True if `$image` is either a GD image resource or a GdImage instance,
    38083808 *              false otherwise.
    38093809 */
     
    38123812        || is_resource( $image ) && 'gd' === get_resource_type( $image )
    38133813    ) {
    3814 
    38153814        return true;
    38163815    }
     
    38203819
    38213820/**
    3822  * Creates new GD image resource with transparency support.
     3821 * Creates a new GD image resource with transparency support.
    38233822 *
    38243823 * @todo Deprecate if possible.
Note: See TracChangeset for help on using the changeset viewer.