Changeset 2441 for trunk/wp-admin/post.php
- Timestamp:
- 03/14/2005 12:48:11 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/post.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r2426 r2441 62 62 $post_status = 'draft'; 63 63 // Double-check 64 if ( 'publish' == $post_status && (!user_can_create_post($user_ID)) && 2 != get_option('new_users_can_blog'))64 if ( 'publish' == $post_status && (!user_can_create_post($user_ID)) ) 65 65 $post_status = 'draft'; 66 66 $comment_status = $_POST['comment_status']; … … 230 230 die ( __('You are not allowed to view other users\' private posts.') ); 231 231 232 if ( 'publish' == $post_status && (!user_can_create_post($user_ID)) ) { 233 _e('You are not allowed to edit published posts.'); 234 break; 235 } 236 232 237 if ($post_status == 'static') { 233 238 $page_template = get_post_meta($post_ID, '_wp_page_template', true); … … 306 311 if (isset($_POST['publish'])) $post_status = 'publish'; 307 312 // Double-check 308 if ( 'publish' == $post_status && (!user_can_create_post($user_ID)) && 2 != get_option('new_users_can_blog'))313 if ( 'publish' == $post_status && (!user_can_create_post($user_ID)) ) 309 314 $post_status = 'draft'; 310 315
Note: See TracChangeset
for help on using the changeset viewer.