X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/af50974463450c98503e763a7836a50e260461a9..784f914b1e4b1c62d6657e86397c2e83bcee4295:/wp-admin/export.php diff --git a/wp-admin/export.php b/wp-admin/export.php index 78ccf13e..5ce4e34c 100644 --- a/wp-admin/export.php +++ b/wp-admin/export.php @@ -24,7 +24,6 @@ $title = __('Export'); function export_add_js() { ?> add_help_tab( array( get_current_screen()->set_help_sidebar( '
' . __('For more information:') . '
' . - '' . __('Documentation on Export') . '
' . + '' . __('Documentation on Export') . '
' . '' . __('Support Forums') . '
' ); @@ -62,7 +61,7 @@ if ( isset( $_GET['download'] ) ) { if ( ! isset( $_GET['content'] ) || 'all' == $_GET['content'] ) { $args['content'] = 'all'; - } else if ( 'posts' == $_GET['content'] ) { + } elseif ( 'posts' == $_GET['content'] ) { $args['content'] = 'post'; if ( $_GET['cat'] ) @@ -78,7 +77,7 @@ if ( isset( $_GET['download'] ) ) { if ( $_GET['post_status'] ) $args['status'] = $_GET['post_status']; - } else if ( 'pages' == $_GET['content'] ) { + } elseif ( 'pages' == $_GET['content'] ) { $args['content'] = 'page'; if ( $_GET['page_author'] ) @@ -91,7 +90,15 @@ if ( isset( $_GET['download'] ) ) { if ( $_GET['page_status'] ) $args['status'] = $_GET['page_status']; - } else { + } 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']; } @@ -145,45 +152,58 @@ function export_date_options( $post_type = 'post' ) { ?>