Make WordPress Core


Ignore:
Timestamp:
10/20/2017 03:29:30 AM (7 years ago)
Author:
westonruter
Message:

Customize: Prevent using default template for a base control when it has content rendered on the server.

Also prevent invalid type attribute from being added to a select element.

See #30738.
Fixes #42286.

File:
1 edited

Legend:

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

    r41936 r41952  
    40204020                        >{{ inputAttrs.value }}</textarea>
    40214021                    <# } else if ( 'select' === data.type ) { #>
     4022                        <# delete inputAttrs.type; #>
    40224023                        <select
    40234024                            <# _.each( _.extend( inputAttrs ), function( value, key ) { #>
Note: See TracChangeset for help on using the changeset viewer.