Ticket #27452: 27452.patch
File 27452.patch, 1.3 KB (added by , 11 years ago) |
---|
-
src/wp-admin/includes/ajax-actions.php
1324 1324 $data['parent_id'] = $data['post_parent']; 1325 1325 1326 1326 // status 1327 if ( isset($data['keep_private']) && 'private' == $data['keep_private'] ) 1327 $post_type_object = get_post_type_object( $post['post_type'] ); 1328 if ( current_user_can( $post_type_object->cap->publish_posts ) && isset($data['keep_private']) && 'private' == $data['keep_private'] ) 1328 1329 $data['post_status'] = 'private'; 1329 1330 else 1330 1331 $data['post_status'] = $data['_status']; -
src/wp-admin/includes/class-wp-posts-list-table.php
1001 1001 ?> 1002 1002 </em> 1003 1003 <label class="alignleft inline-edit-private"> 1004 <input type="checkbox" name="keep_private" value="private" />1004 <input type="checkbox" name="keep_private" value="private" <?php if( ! $can_publish ) echo 'disabled'; ?> /> 1005 1005 <span class="checkbox-title"><?php echo __( 'Private' ); ?></span> 1006 1006 </label> 1007 1007 </div>