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:
parent
f31c1f21d6
commit
1f60247343
|
@ -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 */
|
||||
|
|
|
@ -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' );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue