Make WordPress Core

Changeset 49353


Ignore:
Timestamp:
10/28/2020 12:43:16 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Customize: Update parameter name in api.Class.extend().

This makes the name consistent with the documentation and the inherits() function signature.

Props ribaricplusplus, davidbaumwald.
Fixes #51652.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/wp/customize/base.js

    r48650 r49353  
    113113     * @return child The subclass.
    114114     */
    115     api.Class.extend = function( protoProps, classProps ) {
    116         var child = inherits( this, protoProps, classProps );
     115    api.Class.extend = function( protoProps, staticProps ) {
     116        var child = inherits( this, protoProps, staticProps );
    117117        child.extend = this.extend;
    118118        return child;
Note: See TracChangeset for help on using the changeset viewer.