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.
Built from https://develop.svn.wordpress.org/trunk@49353


git-svn-id: http://core.svn.wordpress.org/trunk@49113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-10-28 00:45:06 +00:00
parent a33d6305d1
commit e37d1acc1c
2 changed files with 3 additions and 3 deletions

View File

@ -112,8 +112,8 @@ window.wp = window.wp || {};
* @param object staticProps Properties to apply directly to the class. * @param object staticProps Properties to apply directly to the class.
* @return child The subclass. * @return child The subclass.
*/ */
api.Class.extend = function( protoProps, classProps ) { api.Class.extend = function( protoProps, staticProps ) {
var child = inherits( this, protoProps, classProps ); var child = inherits( this, protoProps, staticProps );
child.extend = this.extend; child.extend = this.extend;
return child; return child;
}; };

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.6-beta2-49352'; $wp_version = '5.6-beta2-49353';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.