From 061226df73ceb6af10675b231b20370e1727e5ba Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Fri, 17 Oct 2014 21:24:32 +0000 Subject: [PATCH] Customizer: Extract content markup for panels to its own method, `WP_Customize_Panel::render_content()`. This allows to override the behavior of a panel, or even to completely replace its contents with something other than controls or sections. props celloexpressions. fixes #29324. git-svn-id: https://develop.svn.wordpress.org/trunk@29950 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-panel.php | 50 ++++++++++++-------- 1 file changed, 30 insertions(+), 20 deletions(-) diff --git a/src/wp-includes/class-wp-customize-panel.php b/src/wp-includes/class-wp-customize-panel.php index 8f85049dcb..f289cb7ff0 100644 --- a/src/wp-includes/class-wp-customize-panel.php +++ b/src/wp-includes/class-wp-customize-panel.php @@ -162,7 +162,7 @@ class WP_Customize_Panel { } /** - * Render the panel, and the sections that have been added to it. + * Render the panel container, and then its contents. * * @since 4.0.0 * @access protected @@ -175,26 +175,36 @@ class WP_Customize_Panel { +
  • +
    + ' . esc_html( $this->title ) . '' ); + ?> +
    + description ) ) : ?> +
    + description; ?> +
    + +
  • + sections as $section ) { + $section->maybe_render(); + } + } +}