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