diff --git a/src/wp-includes/customize/class-wp-customize-partial.php b/src/wp-includes/customize/class-wp-customize-partial.php index c27b3f058c..458fa1ad9f 100644 --- a/src/wp-includes/customize/class-wp-customize-partial.php +++ b/src/wp-includes/customize/class-wp-customize-partial.php @@ -272,9 +272,12 @@ class WP_Customize_Partial { * @since 4.5.0 * @access public * + * @param WP_Customize_Partial $partial Partial. + * @param array $context Context. * @return string|array|false */ - public function render_callback() { + public function render_callback( WP_Customize_Partial $partial, $context = array() ) { + unset( $partial, $context ); return false; } diff --git a/tests/phpunit/tests/customize/partial.php b/tests/phpunit/tests/customize/partial.php index 2609c7e3fd..944cb4e2b7 100644 --- a/tests/phpunit/tests/customize/partial.php +++ b/tests/phpunit/tests/customize/partial.php @@ -268,8 +268,8 @@ class Test_WP_Customize_Partial extends WP_UnitTestCase { */ function test_render_callback_default() { $partial = new WP_Customize_Partial( $this->selective_refresh, 'foo' ); - $this->assertFalse( $partial->render_callback() ); - $this->assertFalse( call_user_func( $partial->render_callback ) ); + $this->assertFalse( $partial->render_callback( $partial, array() ) ); + $this->assertFalse( call_user_func( $partial->render_callback, $partial, array() ) ); } /**