Make WordPress Core

Ticket #27981: 27981.3.diff

File 27981.3.diff, 4.2 KB (added by tollmanz, 11 years ago)

Patch removes esc_html around Customizer descriptions

  • src/wp-includes/class-wp-customize-control.php

     
    285285                                        <input type="checkbox" value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->link(); checked( $this->value() ); ?> />
    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>
    291291                                <?php
     
    300300                                        <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
    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
    306306                                foreach ( $this->choices as $value => $label ) :
     
    322322                                                <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
    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
    328328                                        <select <?php $this->link(); ?>>
     
    341341                                                <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
    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>
    347347                                </label>
     
    374374                                                <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
    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(); ?> />
    380380                                </label>
     
    460460                                <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
    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
    466466                        <div class="customize-control-content">
     
    523523                                <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
    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>
    529529                                <a href="#" class="button-secondary upload"><?php _e( 'Upload' ); ?></a>
     
    610610                                <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
    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
    616616                        <div class="customize-control-content">