Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Prevent settings with zero'ed post modified dates from being marked a…
Browse files Browse the repository at this point in the history
…s conflicted
  • Loading branch information
westonruter committed May 31, 2016
1 parent acb3aef commit 98ff6b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions php/class-wp-customize-post-setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ public function sanitize( $post_data ) {
&&
! empty( $post_data['post_modified_gmt'] )
&&
'0000-00-00 00:00:00' !== $post_data['post_modified_gmt']
&&
$post_data['post_modified_gmt'] < $post->post_modified_gmt
&&
$this->is_post_data_conflicted( $post, $post_data )
Expand Down

0 comments on commit 98ff6b9

Please sign in to comment.