Making WordPress.org

Changeset 6953


Ignore:
Timestamp:
03/28/2018 05:01:59 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Make/Meetings: Fix logic error in "Occurrence in a month" option that caused subsequent meetings in the current month to be skipped.

H/t desrosj.
See #2218.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-meeting-posttype/wporg-meeting-posttype.php

    r6952 r6953  
    166166                    $months    = array( 'this month', 'next month' );
    167167
    168                     foreach ( $post->occurrence as $index ) {
    169                         foreach ( $months as $month ) {
     168                    foreach ( $months as $month ) {
     169                        foreach ( $post->occurrence as $index ) {
    170170                            $next = new DateTime( sprintf( '%s %s of %s %s GMT', $numerals[ $index - 1 ], $day_name, $month, $post->time ) );
    171171                            if ( $next > $now ) {
Note: See TracChangeset for help on using the changeset viewer.