Add export capability. fixes #13681

git-svn-id: https://develop.svn.wordpress.org/trunk@15096 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-06-01 18:02:05 +00:00
parent e69a801048
commit 171d6811cc
4 changed files with 5 additions and 4 deletions

View File

@ -9,7 +9,7 @@
/** Load WordPress Bootstrap */
require_once ('admin.php');
if ( !current_user_can('edit_files') )
if ( !current_user_can('export') )
wp_die(__('You do not have sufficient permissions to export the content of this site.'));
/** Load WordPress export API */

View File

@ -613,6 +613,7 @@ function populate_roles_300() {
$role->add_cap( 'promote_users' );
$role->add_cap( 'edit_theme_options' );
$role->add_cap( 'delete_themes' );
$role->add_cap( 'export' );
}
}

View File

@ -440,7 +440,7 @@ function upgrade_all() {
if ( $wp_current_db_version < 11958 )
upgrade_290();
if ( $wp_current_db_version < 14984 )
if ( $wp_current_db_version < 15093 )
upgrade_300();
maybe_disable_automattic_widgets();
@ -1108,7 +1108,7 @@ function upgrade_290() {
function upgrade_300() {
global $wp_current_db_version, $wpdb;
if ( $wp_current_db_version < 14984 )
if ( $wp_current_db_version < 15093 )
populate_roles_300();
if ( $wp_current_db_version < 14139 && is_multisite() && is_main_site() && ! defined( 'MULTISITE' ) && get_site_option( 'siteurl' ) === false )

View File

@ -15,7 +15,7 @@ $wp_version = '3.0-RC1-15092';
*
* @global int $wp_db_version
*/
$wp_db_version = 15084;
$wp_db_version = 15093;
/**
* Holds the TinyMCE version