Theme Customizer: Move section descriptions to the title attribute of the section name. see #19910.

git-svn-id: https://develop.svn.wordpress.org/trunk@20182 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-03-15 05:32:40 +00:00
parent 2ab537f0b5
commit cab8c8f407
2 changed files with 1 additions and 6 deletions

View File

@ -65,12 +65,8 @@ class WP_Customize_Section {
return;
?>
<li id="customize-section-<?php echo esc_attr( $this->id ); ?>" class="control-section customize-section">
<h3 class="customize-section-title"><?php echo esc_html( $this->title ); ?></h3>
<h3 class="customize-section-title" title="<?php echo esc_attr( $this->description ); ?>"><?php echo esc_html( $this->title ); ?></h3>
<ul class="customize-section-content">
<?php if ( $this->description ) : ?>
<li><p class="howto"><?php echo $this->description; ?></p></li>
<?php endif; ?>
<?php foreach ( $this->settings as $setting ) : ?>
<li id="customize-control-<?php echo esc_attr( $setting->id ); ?>" class="customize-control customize-control-<?php echo esc_attr( $setting->control ); ?>">
<?php $setting->_render(); ?>

View File

@ -609,7 +609,6 @@ final class WP_Customize {
$this->add_section( 'strings', array(
'title' => __( 'Site Title & Tagline' ),
'description' => __( 'Customize some strings.' ),
) );
$this->add_setting( 'blogname', array(