diff --git src/wp-admin/css/customize-controls.css src/wp-admin/css/customize-controls.css
index 6180998951..5f09a4622e 100644
|
|
|
body.trashing #publish-settings { |
| 270 | 270 | margin-bottom: 15px; |
| 271 | 271 | } |
| 272 | 272 | |
| 273 | | .date-time-fields { |
| 274 | | padding-top: 10px; |
| 275 | | padding-bottom:10px; |
| | 273 | .customize-control-date_time .customize-control-description + .date-time-fields.includes-time { |
| | 274 | margin-top: 10px; |
| 276 | 275 | } |
| 277 | 276 | |
| 278 | 277 | .customize-control.customize-control-date_time .date-time-fields .date-input, |
| … |
… |
body.trashing #publish-settings { |
| 280 | 279 | float: left; |
| 281 | 280 | margin-right: 5px; |
| 282 | 281 | } |
| | 282 | .customize-control.customize-control-date_time .date-time-fields .date-input.day { |
| | 283 | margin-right: 0; |
| | 284 | } |
| 283 | 285 | |
| 284 | 286 | .date-time-fields .date-input.month { |
| 285 | 287 | width: auto; |
diff --git src/wp-includes/customize/class-wp-customize-date-time-control.php src/wp-includes/customize/class-wp-customize-date-time-control.php
index 9f36da0e68..11fc66971e 100644
|
|
|
class WP_Customize_Date_Time_Control extends WP_Customize_Control { |
| 112 | 112 | <# _.defaults( data, <?php echo wp_json_encode( $data ); ?> ); #> |
| 113 | 113 | <# var idPrefix = _.uniqueId( 'el' ) + '-'; #> |
| 114 | 114 | |
| 115 | | <span class="customize-control-title"> |
| 116 | | {{ data.label }} |
| 117 | | </span> |
| | 115 | <# if ( data.label ) { #> |
| | 116 | <span class="customize-control-title"> |
| | 117 | {{ data.label }} |
| | 118 | </span> |
| | 119 | <# } #> |
| 118 | 120 | <div class="customize-control-notifications-container"></div> |
| 119 | | <span class="description customize-control-description">{{ data.description }}</span> |
| 120 | | <div class="date-time-fields"> |
| | 121 | <# if ( data.description ) { #> |
| | 122 | <span class="description customize-control-description">{{ data.description }}</span> |
| | 123 | <# } #> |
| | 124 | <div class="date-time-fields {{ data.includeTime ? 'includes-time' : '' }}"> |
| 121 | 125 | <fieldset class="day-row"> |
| 122 | | <legend class="title-day"><?php esc_html_e( 'Date' ); ?></legend> |
| | 126 | <legend class="title-day {{ ! data.includeTime ? 'screen-reader-text' : '' }}"><?php esc_html_e( 'Date' ); ?></legend> |
| 123 | 127 | <div class="day-fields clear"> |
| 124 | 128 | <label for="{{ idPrefix }}date-time-month" class="screen-reader-text"><?php esc_html_e( 'Month' ); ?></label> |
| 125 | 129 | <select id="{{ idPrefix }}date-time-month" class="date-input month" data-component="month"> |