Changeset 5707 for trunk/wp-admin/includes/post.php
- Timestamp:
- 06/14/2007 04:24:28 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r5566 r5707 65 65 if ( 'page' == $_POST['post_type'] ) { 66 66 if ('publish' == $_POST['post_status'] && !current_user_can( 'edit_published_pages' )) 67 $_POST['post_status'] = ' draft';67 $_POST['post_status'] = 'pending'; 68 68 } else { 69 69 if ('publish' == $_POST['post_status'] && !current_user_can( 'edit_published_posts' )) 70 $_POST['post_status'] = ' draft';70 $_POST['post_status'] = 'pending'; 71 71 } 72 72 … … 269 269 if ( 'page' == $_POST['post_type'] ) { 270 270 if ('publish' == $_POST['post_status'] && !current_user_can( 'publish_pages' ) ) 271 $_POST['post_status'] = ' draft';271 $_POST['post_status'] = 'pending'; 272 272 } else { 273 273 if ('publish' == $_POST['post_status'] && !current_user_can( 'publish_posts' ) ) 274 $_POST['post_status'] = ' draft';274 $_POST['post_status'] = 'pending'; 275 275 } 276 276
Note: See TracChangeset
for help on using the changeset viewer.