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:
parent
e69a801048
commit
171d6811cc
@ -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 */
|
||||||
|
@ -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' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 )
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user