WordPress.org

Make WordPress Core

Ticket #15240: 15240.patch

File 15240.patch, 565 bytes (added by mrmist, 10 years ago)

patch for template.php

  • wp-admin/includes/template.php

     
    577577function touch_time( $edit = 1, $for_post = 1, $tab_index = 0, $multi = 0 ) {
    578578        global $wp_locale, $post, $comment;
    579579
     580        if ( empty ( $post ) ) { return; }
     581       
    580582        if ( $for_post )
    581583                $edit = ! ( in_array($post->post_status, array('draft', 'pending') ) && (!$post->post_date_gmt || '0000-00-00 00:00:00' == $post->post_date_gmt ) );
    582584