diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css index bc4abb0559..d1ec601b12 100644 --- a/src/wp-admin/css/forms.css +++ b/src/wp-admin/css/forms.css @@ -753,6 +753,18 @@ table.form-table td .updated p { line-height: 24px; } +.label-responsive { + vertical-align: middle; +} + +#export-filters p { + margin: 0 0 1em; +} + +#export-filters p.submit { + margin: 7px 0 5px; +} + /* Card styles */ .card { @@ -1110,12 +1122,21 @@ table.form-table td .updated p { } .form-table th, - .form-table td { + .form-table td, + .label-responsive { display: block; width: auto; vertical-align: middle; } + .label-responsive { + margin: 0.5em 0; + } + + .export-filters li { + margin-bottom: 0; + } + .form-table .color-palette td { display: table-cell; width: 15px; diff --git a/src/wp-admin/export.php b/src/wp-admin/export.php index 50383e6e10..7f416c4656 100644 --- a/src/wp-admin/export.php +++ b/src/wp-admin/export.php @@ -92,12 +92,12 @@ if ( isset( $_GET['download'] ) ) { $args['status'] = $_GET['page_status']; } elseif ( 'attachment' == $_GET['content'] ) { $args['content'] = 'attachment'; - + if ( $_GET['attachment_start_date'] || $_GET['attachment_end_date'] ) { $args['start_date'] = $_GET['attachment_start_date']; $args['end_date'] = $_GET['attachment_end_date']; } - } + } else { $args['content'] = $_GET['content']; } @@ -160,37 +160,45 @@ function export_date_options( $post_type = 'post' ) {