Ticket #5196: minor-edit.patch
File minor-edit.patch, 1.2 KB (added by , 16 years ago) |
---|
-
wp-includes/post.php
1369 1369 } 1370 1370 1371 1371 if ( $update || '0000-00-00 00:00:00' == $post_date ) { 1372 $post_modified = current_time( 'mysql' ); 1373 $post_modified_gmt = current_time( 'mysql', 1 ); 1372 if ( true != $minor_edit ) { 1373 $post_modified = current_time( 'mysql' ); 1374 $post_modified_gmt = current_time( 'mysql', 1 ); 1375 } 1374 1376 } else { 1375 1377 $post_modified = $post_date; 1376 1378 $post_modified_gmt = $post_date_gmt; -
wp-admin/edit-form-advanced.php
151 151 </div> 152 152 153 153 <p class="submit"> 154 <?php if ( $post->post_status == 'publish' ) : ?> 155 <input id="minor_edit_checkbox" name="minor_edit" type="checkbox" value="minor_edit" /> 156 <?php _e('Minor edit') ?><br/> 157 <?php endif; ?> 154 158 <input type="submit" name="save" id="save-post" value="<?php _e('Save'); ?>" tabindex="4" class="button button-highlighted" /> 155 159 <?php 156 160 if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) {