Ticket #5196: minoredithooks.patch
File minoredithooks.patch, 1.1 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(apply_filters('update_modified',true,$postarr)) { 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
154 154 </div> 155 155 156 156 <p class="submit"> 157 <?php do_action('editpost_presave',$post) ?> 157 158 <input type="submit" name="save" id="save-post" value="<?php _e('Save'); ?>" tabindex="4" class="button button-highlighted" /> 158 159 <?php 159 160 if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) {