Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import.php

    r14989 r15181  
    1212require_once ('admin.php');
    1313
    14 if ( !current_user_can('edit_files') )
     14if ( !current_user_can('import') )
    1515    wp_die(__('You do not have sufficient permissions to import content in this site.'));
    1616
     
    2121    '<p>' . __('In previous versions of WordPress, all the importers were built-in, but they have been turned into plugins as of version 3.0 since most people only use them once or infrequently.') . '</p>' .
    2222    '<p><strong>' . __('For more information:') . '</strong></p>' .
    23     '<p>' . __('<a href="http://codex.wordpress.org/Tools_Import_SubPanel">Import Documentation</a>') . '</p>' .
    24     '<p>' . __('<a href="http://wordpress.org/support/">Support Forums</a>') . '</p>'
     23    '<p>' . __('<a href="http://codex.wordpress.org/Tools_Import_SubPanel" target="_blank">Import Documentation</a>') . '</p>' .
     24    '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    2525);
    2626
     
    8484}
    8585
    86 uasort($importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);'));
    87 
    8886if (empty ($importers)) {
    8987    echo '<p>'.__('No importers are available.').'</p>'; // TODO: make more helpful
    9088} else {
     89    uasort($importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);'));
    9190?>
    9291<table class="widefat" cellspacing="0">
     
    141140include ('admin-footer.php');
    142141?>
    143 
Note: See TracChangeset for help on using the changeset viewer.