X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/a6f44f0edcda2471c5a33e4156c1c9488c7f3210..e0feb3b2e5b436a06bbb04fbc838d1cd6ec95399:/wp-admin/import.php diff --git a/wp-admin/import.php b/wp-admin/import.php index 72b9142f..e7dce2df 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.')); @@ -25,8 +25,8 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '
' . __('For more information:') . '
' . - '' . __('Documentation on Import') . '
' . - '' . __('Support Forums') . '
' + '' . __('Documentation on Import') . '
' . + '' . __('Support Forums') . '
' ); if ( current_user_can( 'install_plugins' ) ) @@ -47,13 +47,12 @@ 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'] ) ); ?>
' . __('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' ); ?> -$action | {$data[1]} |