Plugin Directory

Changeset 3345267


Ignore:
Timestamp:
08/15/2025 06:12:24 PM (7 months ago)
Author:
swift
Message:

commit 2.5.4

Location:
conference-scheduler/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • conference-scheduler/trunk/conf-scheduler.php

    r3342502 r3345267  
    44Plugin URI: https://conferencescheduler.com/
    55Description: Display and organize your conference workshops in a powerful, easy-to-use system.
    6 Version: 2.5.3
     6Version: 2.5.4
    77Author: Shane Warner
    88Author URI: https://myceliumdesign.ca/
     
    3030
    3131if (!defined('CONF_SCHEDULER_VERSION'))
    32     define('CONF_SCHEDULER_VERSION', '2.5.3');
     32    define('CONF_SCHEDULER_VERSION', '2.5.4');
    3333
    3434if (!defined('CONF_SCHEDULER_PATH'))
     
    10171017  }
    10181018 
    1019   function update_session_meta($session_id) {
    1020       $session_check = get_term($session_id, 'conf_sessions'); // returns null if not a valid session, uses term cache
    1021    
    1022       if(isset($session_check)) {
    1023         wp_set_object_terms( $post_id, $session, 'conf_sessions', false);
    1024         $start = strtotime( get_term_meta( $session, 'start', true ) );
    1025         $end = $start + (get_term_meta( $session, 'length', true ) * 60 );
     1019  function update_session_meta($session_id, $post_id = NULL) {
     1020      $session = get_term($session_id, 'conf_sessions'); // returns null if not a valid session, uses term cache
     1021     
     1022      if( $session && !is_wp_error($session) ) {
     1023        $resp = wp_set_object_terms( $post_id, $session_id, 'conf_sessions', false);
     1024        $start = strtotime( get_term_meta( $session_id, 'start', true ) );
     1025        $end = $start + (get_term_meta( $session_id, 'length', true ) * 60 );
    10261026        update_post_meta( $post_id, 'start_time', (int) $start );
    10271027        update_post_meta( $post_id, 'end_time', (int) $end );
     
    10571057      $session = array_map( 'sanitize_text_field', $raw_session);
    10581058      $session = array_map( 'absint', $raw_session);
    1059       $this->update_session_meta($session);
     1059      $this->update_session_meta($session, $post_id);
    10601060     
    10611061      do_action('conf_scheduler_quick_edit_workshop', $post_id, $_POST);
     
    10661066    if (isset($_POST['session'])) {
    10671067      $session = absint(sanitize_text_field($_POST['session']));
    1068       $this->update_session_meta($session);
     1068      $this->update_session_meta($session, $post_id);
    10691069    }
    10701070
     
    20322032  function render_session_grouped_workshops( $session, $atts = array() ) {
    20332033    $output = '';
    2034     $workshops = $this->get_session_workshops( $session );
     2034    $workshops = $this->get_session_workshops( $session, $atts );
    20352035
    20362036    if($workshops && count($workshops) > 0) {
     
    20732073
    20742074    foreach ($sessions as $session ) {
    2075       $workshops[] = $this->get_session_workshops($session);
     2075      $workshops[] = $this->get_session_workshops($session, $atts);
    20762076    }
    20772077
  • conference-scheduler/trunk/readme.txt

    r3342502 r3345267  
    7272== Changelog ==
    7373
     74= 2.5.4 - 2025-08-15 =
     75Fix: Session selection not being saved
     76Fix: Correctly filter workshops for grouped and merged sessions
     77
    7478= 2.5.3 - 2025-08-10 =
    7579Fix: Bug that sometimes shows extra digits in session title
Note: See TracChangeset for help on using the changeset viewer.