From 7e4debe75c07cc7f97bb40bad451cd9469a409da Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 28 Oct 2020 00:43:16 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@49353 602fd350-edb4-49c9-b593-d223f7449a82 --- src/js/_enqueues/wp/customize/base.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/_enqueues/wp/customize/base.js b/src/js/_enqueues/wp/customize/base.js index 8fd247052c..e6aeb8b641 100644 --- a/src/js/_enqueues/wp/customize/base.js +++ b/src/js/_enqueues/wp/customize/base.js @@ -112,8 +112,8 @@ window.wp = window.wp || {}; * @param object staticProps Properties to apply directly to the class. * @return child The subclass. */ - api.Class.extend = function( protoProps, classProps ) { - var child = inherits( this, protoProps, classProps ); + api.Class.extend = function( protoProps, staticProps ) { + var child = inherits( this, protoProps, staticProps ); child.extend = this.extend; return child; };