X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/af50974463450c98503e763a7836a50e260461a9..46588ee871246a923d972538dbc93b26f4fda932:/wp-includes/class-wp-customize-panel.php?ds=sidebyside diff --git a/wp-includes/class-wp-customize-panel.php b/wp-includes/class-wp-customize-panel.php index f5da18e3..ee9f846b 100644 --- a/wp-includes/class-wp-customize-panel.php +++ b/wp-includes/class-wp-customize-panel.php @@ -1,13 +1,21 @@ instance_number = self::$instance_count; $this->sections = array(); // Users cannot customize the $sections array. - - return $this; } /** @@ -166,7 +172,7 @@ class WP_Customize_Panel { * * @return bool Whether the panel is active to the current preview. */ - public final function active() { + final public function active() { $panel = $this; $active = call_user_func( $this->active_callback, $this ); @@ -221,7 +227,7 @@ class WP_Customize_Panel { * * @return bool False if theme doesn't support the panel or the user doesn't have the capability. */ - public final function check_capabilities() { + final public function check_capabilities() { if ( $this->capability && ! call_user_func_array( 'current_user_can', (array) $this->capability ) ) { return false; } @@ -240,7 +246,7 @@ class WP_Customize_Panel { * * @return string Content for the panel. */ - public final function get_content() { + final public function get_content() { ob_start(); $this->maybe_render(); $template = trim( ob_get_contents() ); @@ -253,7 +259,7 @@ class WP_Customize_Panel { * * @since 4.0.0 */ - public final function maybe_render() { + final public function maybe_render() { if ( ! $this->check_capabilities() ) { return; }