Make WordPress Core


Ignore:
Timestamp:
10/05/2017 02:55:11 AM (7 years ago)
Author:
westonruter
Message:

Customize: Add default control template for standard input types.

Re-use default template instead of introducing custom one for the Discard Changes button.

See #30738.

File:
1 edited

Legend:

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

    r41768 r41771  
    483483        $input_id = '_customize-input-' . $this->id;
    484484        $description_id = '_customize-description-' . $this->id;
    485         $describedby_attr = ( ! empty( $this->description ) ) ? 'aria-describedby="' . esc_attr( $description_id ) . '"' : '';
     485        $describedby_attr = ( ! empty( $this->description ) ) ? ' aria-describedby="' . esc_attr( $description_id ) . '" ' : '';
    486486        switch ( $this->type ) {
    487487            case 'checkbox':
     
    521521                        <input
    522522                            id="<?php echo esc_attr( $input_id . '-radio-' . $value ); ?>"
    523                             type="radio" <?php echo $describedby_attr; ?>
     523                            type="radio"
     524                            <?php echo $describedby_attr; ?>
    524525                            value="<?php echo esc_attr( $value ); ?>"
    525526                            name="<?php echo esc_attr( $name ); ?>"
Note: See TracChangeset for help on using the changeset viewer.