Customize: Define params on `WP_Customize_Partial::render_callback()` for the sake of subclasses overriding this method.

Fixes a strict standards notice regarding the method signature needing to be compatible.

See #27355.

Built from https://develop.svn.wordpress.org/trunk@36801


git-svn-id: http://core.svn.wordpress.org/trunk@36768 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2016-03-02 06:09:26 +00:00
parent ef7a559e2e
commit b757de7da9
2 changed files with 5 additions and 2 deletions

View File

@ -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;
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-beta1-36800';
$wp_version = '4.5-beta1-36801';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.