X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/fa11948979fd6a4ea5705dc613b239699a459db3..e0feb3b2e5b436a06bbb04fbc838d1cd6ec95399:/wp-admin/export.php diff --git a/wp-admin/export.php b/wp-admin/export.php index 4f67c085..ce5081ba 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') . '

' . - '

' . __('Support Forums') . '

' + '

' . __('Documentation on Export') . '

' . + '

' . __('Support Forums') . '

' ); +// If the 'download' URL parameter is set, a WXR export file is baked and returned. if ( isset( $_GET['download'] ) ) { $args = array(); 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'] ) @@ -77,7 +76,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'] ) @@ -112,7 +111,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); /** * Create the date options fields for exporting a given post type. * - * @global wpdb $wpdb WordPress database object. + * @global wpdb $wpdb WordPress database abstraction object. * @global WP_Locale $wp_locale Date and Time Locale object. * * @since 3.1.0 @@ -144,15 +143,14 @@ function export_date_options( $post_type = 'post' ) { ?>
- -

+

-
+