Changes in trunk/wp-admin/import.php [14989:15181]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import.php
r14989 r15181 12 12 require_once ('admin.php'); 13 13 14 if ( !current_user_can(' edit_files') )14 if ( !current_user_can('import') ) 15 15 wp_die(__('You do not have sufficient permissions to import content in this site.')); 16 16 … … 21 21 '<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>' . 22 22 '<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>' 25 25 ); 26 26 … … 84 84 } 85 85 86 uasort($importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);'));87 88 86 if (empty ($importers)) { 89 87 echo '<p>'.__('No importers are available.').'</p>'; // TODO: make more helpful 90 88 } else { 89 uasort($importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);')); 91 90 ?> 92 91 <table class="widefat" cellspacing="0"> … … 141 140 include ('admin-footer.php'); 142 141 ?> 143
Note: See TracChangeset
for help on using the changeset viewer.