Ticket #8208: 8208.diff
File 8208.diff, 1.9 KB (added by , 16 years ago) |
---|
-
wp-admin/edit-page-form.php
228 228 <div id="publishing-action"> 229 229 <?php 230 230 if ( !in_array( $post->post_status, array('publish', 'future', 'private') ) || 0 == $post->ID ) { ?> 231 <?php if ( current_user_can('publish_posts')) : ?>231 <?php if ( $can_publish ) : ?> 232 232 <?php if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?> 233 233 <input name="original_publish" type="hidden" id="original_publish" value="<?php _e('Schedule') ?>" /> 234 234 <input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php _e('Schedule') ?>" /> -
wp-admin/includes/post.php
75 75 76 76 // Posts 'submitted for approval' present are submitted to $_POST the same as if they were being published. 77 77 // Change status from 'publish' to 'pending' if user lacks permissions to publish or to resave published posts. 78 if ( isset($post_data['post_status']) && ('publish' == $post_data['post_status'] && !current_user_can( 'publish_posts' )) ) 79 if ( $previous_status != 'publish' OR !current_user_can( 'edit_published_pages') ) 78 if ( 'page' == $post_data['post_type'] ) { 79 $publish_cap = 'publish_pages'; 80 $edit_cap = 'edit_published_pages'; 81 } else { 82 $publish_cap = 'publish_posts'; 83 $edit_cap = 'edit_published_posts'; 84 } 85 if ( isset($post_data['post_status']) && ('publish' == $post_data['post_status'] && !current_user_can( $publish_cap )) ) 86 if ( $previous_status != 'publish' || !current_user_can( $edit_cap ) ) 80 87 $post_data['post_status'] = 'pending'; 81 88 82 89 if ( ! isset($post_data['post_status']) )