X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/baca9ce86a38dc54c4574890ee2d352fd81f78b2..888fa4ed68091f3314f711c5f6fe75858bf5410b:/wp-admin/import.php diff --git a/wp-admin/import.php b/wp-admin/import.php index 72b9142f..e6f05e0e 100644 --- a/wp-admin/import.php +++ b/wp-admin/import.php @@ -9,7 +9,7 @@ define('WP_LOAD_IMPORTERS', true); /** Load WordPress Bootstrap */ -require_once ('admin.php'); +require_once( dirname( __FILE__ ) . '/admin.php' ); if ( !current_user_can('import') ) wp_die(__('You do not have sufficient permissions to import content in this site.')); @@ -26,7 +26,7 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . '

' . __('Documentation on Import') . '

' . - '

' . __('Support Forums') . '

' + '

' . __('Support Forums') . '

' ); if ( current_user_can( 'install_plugins' ) ) @@ -47,12 +47,11 @@ if ( ! empty( $_GET['invalid'] ) && isset( $popular_importers[ $_GET['invalid'] add_thickbox(); wp_enqueue_script( 'plugin-install' ); -require_once ('admin-header.php'); +require_once( ABSPATH . 'wp-admin/admin-header.php' ); $parent_file = 'tools.php'; ?>
-

%s importer is invalid or is not installed.'), esc_html( $_GET['invalid'] ) ); ?>

@@ -75,9 +74,9 @@ foreach ( $popular_importers as $pop_importer => $pop_data ) { if ( empty( $importers ) ) { echo '

' . __('No importers are available.') . '

'; // TODO: make more helpful } else { - uasort($importers, create_function('$a, $b', 'return strnatcasecmp($a[0], $b[0]);')); + uasort( $importers, '_usort_by_first_member' ); ?> - +