Changeset 8102 for branches/2.5/wp-admin/includes/post.php
- Timestamp:
- 06/16/2008 08:44:30 PM (18 years ago)
- File:
-
- 1 edited
-
branches/2.5/wp-admin/includes/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/wp-admin/includes/post.php
r7637 r8102 63 63 if ( 'page' == $_POST['post_type'] ) { 64 64 if ('publish' == $_POST['post_status'] && !current_user_can( 'publish_pages' )) 65 $_POST['post_status'] = 'pending'; 65 if ( $previous_status != 'publish' OR !current_user_can( 'edit_published_pages') ) 66 $_POST['post_status'] = 'pending'; 66 67 } else { 67 68 if ('publish' == $_POST['post_status'] && !current_user_can( 'publish_posts' ))
Note: See TracChangeset
for help on using the changeset viewer.