Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r15181 r14989  
    1212require_once ('admin.php');
    1313
    14 if ( !current_user_can('import') )
     14if ( !current_user_can('edit_files') )
    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" target="_blank">Import Documentation</a>') . '</p>' .
    24         '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</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>'
    2525);
    2626
    … …  
    8484}
    8585
     86uasort($importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);'));
     87
    8688if (empty ($importers)) {
    8789        echo '<p>'.__('No importers are available.').'</p>'; // TODO: make more helpful
    8890} else {
    89         uasort($importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);'));
    9091?>
    9192<table class="widefat" cellspacing="0">
    … …  
    140141include ('admin-footer.php');
    141142?>
     143
Note: See TracChangeset for help on using the changeset viewer.