WordPress.org

Make WordPress Core

Changeset 48651


Ignore:
Timestamp:
07/28/2020 12:05:59 AM (2 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct alignment for some parameters in JS documentation.

Follow-up to [48650].

See #43828.

Location:
trunk/src/js/_enqueues
Files:
4 edited

Legend:

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

    r48650 r48651  
    7474     *
    7575     * @param {jQuery}         el The element that should be modified.
    76      * @param {boolean|number}    s  The state for the element. If set to true
     76     * @param {boolean|number} s  The state for the element. If set to true
    7777     *                            the element is disabled,
    7878     *                            otherwise the element is enabled.
     
    842842     *
    843843     * @param {number}  postid The post ID.
    844      * @param {boolean}    warn   Warning message.
     844     * @param {boolean} warn   Warning message.
    845845     *
    846846     * @return {void|boolean} Returns false if there is a warning.
  • trunk/src/js/_enqueues/wp/api.js

    r48650 r48651  
    187187     *
    188188     * @param {string}   route          The endpoint route.
    189      * @param {number}      part           The number of parts from the end of the route to retrieve. Default 1.
     189     * @param {number}   part           The number of parts from the end of the route to retrieve. Default 1.
    190190     *                                  Example route `/a/b/c`: part 1 is `c`, part 2 is `b`, part 3 is `a`.
    191191     * @param {string}  [versionString] Version string, defaults to `wp.api.versionString`.
     
    362362             *
    363363             * @param {string} parentModel      The parent model.
    364              * @param {number}    modelId          The model ID if the object to request
     364             * @param {number} modelId          The model ID if the object to request
    365365             * @param {string} modelName        The model name to use when constructing the model.
    366366             * @param {string} embedSourcePoint Where to check the embedds object for _embed data.
  • trunk/src/js/_enqueues/wp/customize/controls.js

    r48650 r48651  
    21672167         *
    21682168         * @since 4.9.0
    2169          * @param {Array} themes - Array of theme data to create controls with.
    2170          * @param {number} page - Page of results being loaded.
     2169         * @param {Array}  themes - Array of theme data to create controls with.
     2170         * @param {number} page   - Page of results being loaded.
    21712171         * @return {void}
    21722172         */
  • trunk/src/js/_enqueues/wp/customize/selective-refresh.js

    r48650 r48651  
    6060         * @since 4.5.0
    6161         *
    62          * @param {string} id                      - Unique identifier for the partial instance.
    63          * @param {Object} options                 - Options hash for the partial instance.
    64          * @param {string} options.type            - Type of partial (e.g. nav_menu, widget, etc)
    65          * @param {string} options.selector        - jQuery selector to find the container element in the page.
    66          * @param {Array}  options.settings        - The IDs for the settings the partial relates to.
    67          * @param {string} options.primarySetting  - The ID for the primary setting the partial renders.
    68          * @param {boolean}   options.fallbackRefresh - Whether to refresh the entire preview in case of a partial refresh failure.
    69          * @param {Object} [options.params]        - Deprecated wrapper for the above properties.
     62         * @param {string}  id                      - Unique identifier for the partial instance.
     63         * @param {Object}  options                 - Options hash for the partial instance.
     64         * @param {string}  options.type            - Type of partial (e.g. nav_menu, widget, etc)
     65         * @param {string}  options.selector        - jQuery selector to find the container element in the page.
     66         * @param {Array}   options.settings        - The IDs for the settings the partial relates to.
     67         * @param {string}  options.primarySetting  - The ID for the primary setting the partial renders.
     68         * @param {boolean} options.fallbackRefresh - Whether to refresh the entire preview in case of a partial refresh failure.
     69         * @param {Object}  [options.params]        - Deprecated wrapper for the above properties.
    7070         */
    7171        initialize: function( id, options ) {
Note: See TracChangeset for help on using the changeset viewer.