WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#40693 closed defect (bug) (duplicate)

modify file for problem ticket #40585

Reported by: micheleconversano Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7.4
Component: General Keywords:
Focuses: Cc:
PR Number:

Description

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' ) )

Attachments (1)

meta-boxes.php (49.6 KB) - added by micheleconversano 3 years ago.

Download all attachments as: .zip

Change History (2)

#1 @swissspidy
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hey there,

Thanks for your contribution!

It now helps understand the issue you were having in #40585. Since there's no reason to have two tickets for that, I'll re-open that ticket and close this one as a duplicate.

Note that I've uploaded a proper patch for your change to #40585. See https://make.wordpress.org/core/handbook/tutorials/working-with-patches/ for information about working with patches.

Note: See TracTickets for help on using tickets.