From b757de7da97e27a7e4ca964f7be044fb53d86294 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 2 Mar 2016 06:09:26 +0000 Subject: [PATCH] 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 --- wp-includes/customize/class-wp-customize-partial.php | 5 ++++- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-includes/customize/class-wp-customize-partial.php b/wp-includes/customize/class-wp-customize-partial.php index c27b3f058c..458fa1ad9f 100644 --- a/wp-includes/customize/class-wp-customize-partial.php +++ b/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/wp-includes/version.php b/wp-includes/version.php index 0a90e7030f..16201f347d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.