X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/11be15bd505d66a91e2c80062190b13e315a04a9..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'] ) ); ?>

@@ -75,12 +74,11 @@ 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' ); ?> - +
$data) { $action = ''; if ( isset( $data['install'] ) ) { @@ -109,9 +107,8 @@ if ( empty( $importers ) ) { $action = "{$data[0]}"; } - $alt = $alt ? '' : ' class="alternate"'; echo " - + "; @@ -130,4 +127,4 @@ if ( current_user_can('install_plugins') )
$action {$data[1]}