Ticket #6943: post.diff
File post.diff, 551 bytes (added by , 16 years ago) |
---|
-
post.php
old new 61 61 $_POST['post_status'] = 'draft'; 62 62 63 63 if ( 'page' == $_POST['post_type'] ) { 64 if ('publish' == $_POST['post_status'] && ! current_user_can( 'publish_pages' ))64 if ('publish' == $_POST['post_status'] && ! (current_user_can( 'publish_pages' ) || current_user_can ( 'edit_published_pages' ) ) ) 65 65 $_POST['post_status'] = 'pending'; 66 66 } else { 67 67 if ('publish' == $_POST['post_status'] && !current_user_can( 'publish_posts' ))