diff --git src/wp-admin/css/customize-controls.css src/wp-admin/css/customize-controls.css
index 6180998951..4a06660d62 100644
|
|
body.trashing #publish-settings { |
270 | 270 | margin-bottom: 15px; |
271 | 271 | } |
272 | 272 | |
273 | | .date-time-fields { |
| 273 | .date-time-fields.includes-time { |
274 | 274 | padding-top: 10px; |
275 | 275 | padding-bottom:10px; |
276 | 276 | } |
… |
… |
body.trashing #publish-settings { |
280 | 280 | float: left; |
281 | 281 | margin-right: 5px; |
282 | 282 | } |
| 283 | .customize-control.customize-control-date_time .date-time-fields .date-input.day { |
| 284 | margin-right: 0; |
| 285 | } |
283 | 286 | |
284 | 287 | .date-time-fields .date-input.month { |
285 | 288 | 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"> |