We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
gpnf-sort-nested-form-entries.php
1 parent 295a85a commit d23a527Copy full SHA for d23a527
gp-nested-forms/gpnf-sort-nested-form-entries.php
@@ -65,8 +65,11 @@ public function sort_entries_php( $args ) {
65
}
66
67
if ( $this->_is_date_field ) {
68
- $first = strtotime( $first );
69
- $second = strtotime( $second );
+ $first_time = strtotime( $first );
+ $second_time = strtotime( $second );
70
+
71
+ $first = ( $first_time !== false ) ? $first_time : 0;
72
+ $second = ( $second_time !== false ) ? $second_time : 0;
73
74
75
if ( $order === 'asc' ) {
0 commit comments