]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/export.php
WordPress 4.7.1-scripts
[autoinstalls/wordpress.git] / wp-admin / export.php
index 7f416c46566d780909b55f8daec409f35db6b794..c1d4d8b529b53f159a74301eefda6efc65385cea 100644 (file)
@@ -10,7 +10,7 @@
 require_once( dirname( __FILE__ ) . '/admin.php' );
 
 if ( !current_user_can('export') )
-       wp_die(__('You do not have sufficient permissions to export the content of this site.'));
+       wp_die(__('Sorry, you are not allowed to export the content of this site.'));
 
 /** Load WordPress export API */
 require_once( ABSPATH . 'wp-admin/includes/export.php' );
@@ -51,8 +51,8 @@ get_current_screen()->add_help_tab( array(
 
 get_current_screen()->set_help_sidebar(
        '<p><strong>' . __('For more information:') . '</strong></p>' .
-       '<p>' . __('<a href="https://codex.wordpress.org/Tools_Export_Screen" target="_blank">Documentation on Export</a>') . '</p>' .
-       '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
+       '<p>' . __('<a href="https://codex.wordpress.org/Tools_Export_Screen">Documentation on Export</a>') . '</p>' .
+       '<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'
 );
 
 // If the 'download' URL parameter is set, a WXR export file is baked and returned.
@@ -103,7 +103,7 @@ if ( isset( $_GET['download'] ) ) {
        }
 
        /**
-        * Filter the export args.
+        * Filters the export args.
         *
         * @since 3.5.0
         *
@@ -164,7 +164,7 @@ function export_date_options( $post_type = 'post' ) {
 <legend class="screen-reader-text"><?php _e( 'Content to export' ); ?></legend>
 <input type="hidden" name="download" value="true" />
 <p><label><input type="radio" name="content" value="all" checked="checked" aria-describedby="all-content-desc" /> <?php _e( 'All content' ); ?></label></p>
-<p class="description" id="all-content-desc"><?php _e( 'This will contain all of your posts, pages, comments, custom fields, terms, navigation menus and custom posts.' ); ?></p>
+<p class="description" id="all-content-desc"><?php _e( 'This will contain all of your posts, pages, comments, custom fields, terms, navigation menus, and custom posts.' ); ?></p>
 
 <p><label><input type="radio" name="content" value="posts" /> <?php _e( 'Posts' ); ?></label></p>
 <ul id="post-filters" class="export-filters">
@@ -177,8 +177,13 @@ function export_date_options( $post_type = 'post' ) {
                <label><span class="label-responsive"><?php _e( 'Authors:' ); ?></span>
                <?php
                $authors = $wpdb->get_col( "SELECT DISTINCT post_author FROM {$wpdb->posts} WHERE post_type = 'post'" );
-               wp_dropdown_users( array( 'include' => $authors, 'name' => 'post_author', 'multi' => true, 'show_option_all' => __('All') ) );
-               ?>
+               wp_dropdown_users( array(
+                       'include' => $authors,
+                       'name' => 'post_author',
+                       'multi' => true,
+                       'show_option_all' => __( 'All' ),
+                       'show' => 'display_name_with_login',
+               ) ); ?>
                </label>
        </li>
        <li>
@@ -214,8 +219,13 @@ function export_date_options( $post_type = 'post' ) {
                <label><span class="label-responsive"><?php _e( 'Authors:' ); ?></span>
                <?php
                $authors = $wpdb->get_col( "SELECT DISTINCT post_author FROM {$wpdb->posts} WHERE post_type = 'page'" );
-               wp_dropdown_users( array( 'include' => $authors, 'name' => 'page_author', 'multi' => true, 'show_option_all' => __('All') ) );
-               ?>
+               wp_dropdown_users( array(
+                       'include' => $authors,
+                       'name' => 'page_author',
+                       'multi' => true,
+                       'show_option_all' => __( 'All' ),
+                       'show' => 'display_name_with_login',
+               ) ); ?>
                </label>
        </li>
        <li>