Add export capability. fixes #13681

git-svn-id: http://svn.automattic.com/wordpress/trunk@15096 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-06-01 18:02:05 +00:00
parent f31c1f21d6
commit 1f60247343
4 changed files with 5 additions and 4 deletions

View File

@ -9,7 +9,7 @@
/** Load WordPress Bootstrap */ /** Load WordPress Bootstrap */
require_once ('admin.php'); 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.')); wp_die(__('You do not have sufficient permissions to export the content of this site.'));
/** Load WordPress export API */ /** Load WordPress export API */

View File

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

View File

@ -440,7 +440,7 @@ function upgrade_all() {
if ( $wp_current_db_version < 11958 ) if ( $wp_current_db_version < 11958 )
upgrade_290(); upgrade_290();
if ( $wp_current_db_version < 14984 ) if ( $wp_current_db_version < 15093 )
upgrade_300(); upgrade_300();
maybe_disable_automattic_widgets(); maybe_disable_automattic_widgets();
@ -1108,7 +1108,7 @@ function upgrade_290() {
function upgrade_300() { function upgrade_300() {
global $wp_current_db_version, $wpdb; global $wp_current_db_version, $wpdb;
if ( $wp_current_db_version < 14984 ) if ( $wp_current_db_version < 15093 )
populate_roles_300(); populate_roles_300();
if ( $wp_current_db_version < 14139 && is_multisite() && is_main_site() && ! defined( 'MULTISITE' ) && get_site_option( 'siteurl' ) === false ) 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 * @global int $wp_db_version
*/ */
$wp_db_version = 15084; $wp_db_version = 15093;
/** /**
* Holds the TinyMCE version * Holds the TinyMCE version