[wp-trac] [WordPress Trac] #40693: modify file for problem ticket #40585

WordPress Trac noreply at wordpress.org
Mon May 8 17:43:27 UTC 2017


#40693: modify file for problem ticket #40585
-------------------------------+-----------------------------
 Reporter:  micheleconversano  |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  General            |    Version:  4.7.4
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 In this ticket https://core.trac.wordpress.org/ticket/40585 I have
 reported a problem 'Update' vs 'Schedule'. For resolved the problema I
 have edited file /wp-admin/meta-boxes.php replacing function "time()" with
 function "current_time()" at row 261.

 -- origin --
 if ( !empty($post->post_date_gmt) && time() < strtotime(
 $post->post_date_gmt . ' +0000' ) )

 -- modify --
 if ( !empty($post->post_date_gmt) && current_time() < strtotime(
 $post->post_date_gmt . ' +0000' ) )

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40693>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list