Make WordPress Core

Changeset 28980


Ignore:
Timestamp:
07/03/2014 08:10:29 PM (11 years ago)
Author:
helen
Message:

Don't escape customizer control descriptions, just as section descriptions are not escaped. These are set programmatically, not via user input. props tollmanz. fixes #27981.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-control.php

    r28930 r28980  
    286286                    <?php echo esc_html( $this->label ); ?>
    287287                    <?php if ( ! empty( $this->description ) ) : ?>
    288                         <span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
     288                        <span class="description customize-control-description"><?php echo $this->description; ?></span>
    289289                    <?php endif; ?>
    290290                </label>
     
    301301                <?php endif;
    302302                if ( ! empty( $this->description ) ) : ?>
    303                     <span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
     303                    <span class="description customize-control-description"><?php echo $this->description ; ?></span>
    304304                <?php endif;
    305305
     
    323323                    <?php endif;
    324324                    if ( ! empty( $this->description ) ) : ?>
    325                         <span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
     325                        <span class="description customize-control-description"><?php echo $this->description; ?></span>
    326326                    <?php endif; ?>
    327327
     
    342342                    <?php endif;
    343343                    if ( ! empty( $this->description ) ) : ?>
    344                         <span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
     344                        <span class="description customize-control-description"><?php echo $this->description; ?></span>
    345345                    <?php endif; ?>
    346346                    <textarea rows="5" <?php $this->link(); ?>><?php echo esc_textarea( $this->value() ); ?></textarea>
     
    375375                    <?php endif;
    376376                    if ( ! empty( $this->description ) ) : ?>
    377                         <span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
     377                        <span class="description customize-control-description"><?php echo $this->description; ?></span>
    378378                    <?php endif; ?>
    379379                    <input type="<?php echo esc_attr( $this->type ); ?>" <?php $this->input_attrs(); ?> value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->link(); ?> />
     
    461461            <?php endif;
    462462            if ( ! empty( $this->description ) ) : ?>
    463                 <span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
     463                <span class="description customize-control-description"><?php echo $this->description; ?></span>
    464464            <?php endif; ?>
    465465
     
    524524            <?php endif;
    525525            if ( ! empty( $this->description ) ) : ?>
    526                 <span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
     526                <span class="description customize-control-description"><?php echo $this->description; ?></span>
    527527            <?php endif; ?>
    528528            <div>
     
    611611            <?php endif;
    612612            if ( ! empty( $this->description ) ) : ?>
    613                 <span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
     613                <span class="description customize-control-description"><?php echo $this->description; ?></span>
    614614            <?php endif; ?>
    615615
Note: See TracChangeset for help on using the changeset viewer.