Plugin Directory

Changeset 3448812


Ignore:
Timestamp:
01/28/2026 03:24:07 PM (2 months ago)
Author:
slimndap
Message:

v1.33.3

Location:
jeero/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • jeero/trunk/Jeero.php

    r3417522 r3448812  
    66 * Author:          Slim & Dapper
    77 * Author URI:      https://slimndap.com
    8  * Version:         1.33.2
     8 * Version:         1.33.3
    99 * Text Domain:     jeero
    1010 *
     
    3232add_action( 'init', function() {
    3333
    34     define( 'Jeero\VERSION', '1.33.2' );
     34    define( 'Jeero\VERSION', '1.33.3' );
    3535    define( 'Jeero\PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
    3636    define( 'Jeero\PLUGIN_URI', plugin_dir_url( __FILE__ ) );
  • jeero/trunk/includes/Calendars/Modern_Events_Calendar.php

    r3104486 r3448812  
    9595    }
    9696   
    97     /**
    98     * Processes event data from Inbox items.
     97        /**
     98        * Processes event data from Inbox items.
    9999     *
    100100     * @since   1.?
     
    111111     *                  Fixed import of categories.
    112112     * @since   1.23.1  Now uses local number format for event prices.
    113      * @since   1.29.1  No longer uses local number format for event prices, because the MEC input field for
    114      *                  prices only accepts '.' as separator.
     113         * @since   1.29.1  No longer uses local number format for event prices, because the MEC input field for
     114         *                  prices only accepts '.' as separator.
     115         * @since   1.33.3  Ensures the MEC location taxonomy term is assigned after import so location filters work immediately.
    115116     *
    116117     * @param   mixed           $result
     
    204205            \add_filter( 'content_save_pre', 'wp_filter_post_kses' );
    205206
    206         }
     207            $location_id = isset( $args[ 'meta' ][ 'mec_location_id' ] ) ? (int) $args[ 'meta' ][ 'mec_location_id' ] : 0;
     208
     209            // 1.33.3: make sure MEC location filters see the imported event immediately.
     210            if ( $location_id ) {
     211                wp_set_object_terms( $post_id, $location_id, 'mec_location' );
     212            }
     213
     214        }
    207215       
    208216        // Re-enable new event notifications.
    209         add_action( 'mec_event_published', array( $this->get_mec_instance( 'notifications' ), 'user_event_publishing'), 10, 3 );
     217        add_action( 'mec_event_published', array( $this->get_mec_instance( 'notifications' ), 'user_event_publishing' ), 10, 3 );
    210218
    211219        return $post_id;
    212220       
    213221    }
    214    
     222
    215223}
  • jeero/trunk/readme.txt

    r3417536 r3448812  
    9999* Detect and remove inbox items that blocking future pickups.
    100100* Re-download images when the source URL changes.
     101* Ensures Modern Events Calendar imports assign the MEC location taxonomy term so location filters show the event immediately (1.33.3).
    101102
    102103= 1.32 =
Note: See TracChangeset for help on using the changeset viewer.