Changeset 8034 for trunk/wp-admin/includes/post.php
- Timestamp:
- 06/03/2008 06:44:40 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r8032 r8034 64 64 if ( 'page' == $_POST['post_type'] ) { 65 65 if ( 'publish' == $_POST['post_status'] && !current_user_can( 'publish_pages' ) ) 66 $_POST['post_status'] = 'pending'; 66 if ( $previous_status != 'publish' OR !current_user_can( 'edit_published_pages') ) 67 $_POST['post_status'] = 'pending'; 67 68 } else { 68 69 if ( 'publish' == $_POST['post_status'] && !current_user_can( 'publish_posts' ) ) :
Note: See TracChangeset
for help on using the changeset viewer.