Allow Author role to edit published posts.
git-svn-id: https://develop.svn.wordpress.org/trunk@3243 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1dae83d024
commit
02e9e6d8ea
@ -30,7 +30,7 @@ function upgrade_all() {
|
||||
upgrade_130();
|
||||
}
|
||||
|
||||
if ( $wp_current_db_version < 3199 )
|
||||
if ( $wp_current_db_version < 3243 )
|
||||
upgrade_160();
|
||||
|
||||
save_mod_rewrite_rules();
|
||||
|
@ -307,6 +307,7 @@ function populate_roles_160() {
|
||||
$role = $wp_roles->get_role('author');
|
||||
$role->add_cap('upload_files');
|
||||
$role->add_cap('edit_posts');
|
||||
$role->add_cap('edit_published_posts');
|
||||
$role->add_cap('publish_posts');
|
||||
$role->add_cap('read');
|
||||
$role->add_cap('level_2');
|
||||
|
@ -3,6 +3,6 @@
|
||||
// This just holds the version number, in a separate file so we can bump it without cluttering the SVN
|
||||
|
||||
$wp_version = '2.0-RC1';
|
||||
$wp_db_version = 3199;
|
||||
$wp_db_version = 3243;
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user