diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-12-05 15:29:53 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-12-05 15:29:53 +0000 |
| commit | 3055390b6908c8335d154dd8e4dfa374b7fa3783 (patch) | |
| tree | ed05c0516b4cf40831ae49a747946fcfd9162b7f /wp-inst/wp-includes/capabilities.php | |
| parent | fba798a103256f5f400cb1a1dcb9cc5b45cf8166 (diff) | |
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@461 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-includes/capabilities.php')
| -rw-r--r-- | wp-inst/wp-includes/capabilities.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/wp-inst/wp-includes/capabilities.php b/wp-inst/wp-includes/capabilities.php index b4dfc0b..2782df1 100644 --- a/wp-inst/wp-includes/capabilities.php +++ b/wp-inst/wp-includes/capabilities.php @@ -249,10 +249,17 @@ function map_meta_cap($cap, $user_id) { // If the post is published... if ($post->post_status == 'publish') $caps[] = 'edit_published_posts'; + else if ($post->post_status == 'static') + $caps[] = 'edit_pages'; else // If the post is draft... $caps[] = 'edit_posts'; } else { + if ($post->post_status == 'static') { + $caps[] = 'edit_pages'; + break; + } + // The user is trying to edit someone else's post. $caps[] = 'edit_others_posts'; // The post is published, extra cap required. |
