Make WordPress Core

Ticket #5196: minor-edit.patch

File minor-edit.patch, 1.2 KB (added by rubys, 16 years ago)

Ciaran's change, in patch form with an added if-check

  • wp-includes/post.php

     
    13691369        }
    13701370
    13711371        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                }
    13741376        } else {
    13751377                $post_modified     = $post_date;
    13761378                $post_modified_gmt = $post_date_gmt;
  • wp-admin/edit-form-advanced.php

     
    151151</div>
    152152
    153153<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; ?>
    154158<input type="submit" name="save" id="save-post" value="<?php _e('Save'); ?>" tabindex="4" class="button button-highlighted" />
    155159<?php
    156160if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) {