mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 16:21:26 +01:00
Allow Author role to edit published posts.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b174a8dadb
commit
7b9f47b54b
@ -30,7 +30,7 @@ function upgrade_all() {
|
|||||||
upgrade_130();
|
upgrade_130();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $wp_current_db_version < 3199 )
|
if ( $wp_current_db_version < 3243 )
|
||||||
upgrade_160();
|
upgrade_160();
|
||||||
|
|
||||||
save_mod_rewrite_rules();
|
save_mod_rewrite_rules();
|
||||||
|
@ -307,6 +307,7 @@ function populate_roles_160() {
|
|||||||
$role = $wp_roles->get_role('author');
|
$role = $wp_roles->get_role('author');
|
||||||
$role->add_cap('upload_files');
|
$role->add_cap('upload_files');
|
||||||
$role->add_cap('edit_posts');
|
$role->add_cap('edit_posts');
|
||||||
|
$role->add_cap('edit_published_posts');
|
||||||
$role->add_cap('publish_posts');
|
$role->add_cap('publish_posts');
|
||||||
$role->add_cap('read');
|
$role->add_cap('read');
|
||||||
$role->add_cap('level_2');
|
$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
|
// 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_version = '2.0-RC1';
|
||||||
$wp_db_version = 3199;
|
$wp_db_version = 3243;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user