Changeset 5851 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-meeting-posttype/wporg-meeting-posttype.php
- Timestamp:
- 08/31/2017 12:47:09 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-meeting-posttype/wporg-meeting-posttype.php
r5850 r5851 156 156 } else if ( 'occurrence' === $post->recurring ) { 157 157 try { 158 // advance the start datein the current month until it's past now158 // advance the occurrence day in the current month until it's past now 159 159 $start = new DateTime( $post->start_date . ' ' . $post->time . ' GMT' ); 160 160 $next = $start; … … 168 168 foreach ( $post->occurrence as $index ) { 169 169 foreach ( $months as $month ) { 170 $next ->modify( $numerals[ $index - 1 ] . ' ' . $day_name . ' of ' . $month );170 $next = new DateTime( $numerals[ $index - 1 ] . ' ' . $day_name . ' of ' . $month ); 171 171 if ( $next > $now ) { 172 172 break 2;
Note: See TracChangeset
for help on using the changeset viewer.