Changeset 3345267
- Timestamp:
- 08/15/2025 06:12:24 PM (7 months ago)
- Location:
- conference-scheduler/trunk
- Files:
-
- 2 edited
-
conf-scheduler.php (modified) (7 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
conference-scheduler/trunk/conf-scheduler.php
r3342502 r3345267 4 4 Plugin URI: https://conferencescheduler.com/ 5 5 Description: Display and organize your conference workshops in a powerful, easy-to-use system. 6 Version: 2.5. 36 Version: 2.5.4 7 7 Author: Shane Warner 8 8 Author URI: https://myceliumdesign.ca/ … … 30 30 31 31 if (!defined('CONF_SCHEDULER_VERSION')) 32 define('CONF_SCHEDULER_VERSION', '2.5. 3');32 define('CONF_SCHEDULER_VERSION', '2.5.4'); 33 33 34 34 if (!defined('CONF_SCHEDULER_PATH')) … … 1017 1017 } 1018 1018 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 cache1021 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 ); 1026 1026 update_post_meta( $post_id, 'start_time', (int) $start ); 1027 1027 update_post_meta( $post_id, 'end_time', (int) $end ); … … 1057 1057 $session = array_map( 'sanitize_text_field', $raw_session); 1058 1058 $session = array_map( 'absint', $raw_session); 1059 $this->update_session_meta($session );1059 $this->update_session_meta($session, $post_id); 1060 1060 1061 1061 do_action('conf_scheduler_quick_edit_workshop', $post_id, $_POST); … … 1066 1066 if (isset($_POST['session'])) { 1067 1067 $session = absint(sanitize_text_field($_POST['session'])); 1068 $this->update_session_meta($session );1068 $this->update_session_meta($session, $post_id); 1069 1069 } 1070 1070 … … 2032 2032 function render_session_grouped_workshops( $session, $atts = array() ) { 2033 2033 $output = ''; 2034 $workshops = $this->get_session_workshops( $session );2034 $workshops = $this->get_session_workshops( $session, $atts ); 2035 2035 2036 2036 if($workshops && count($workshops) > 0) { … … 2073 2073 2074 2074 foreach ($sessions as $session ) { 2075 $workshops[] = $this->get_session_workshops($session );2075 $workshops[] = $this->get_session_workshops($session, $atts); 2076 2076 } 2077 2077 -
conference-scheduler/trunk/readme.txt
r3342502 r3345267 72 72 == Changelog == 73 73 74 = 2.5.4 - 2025-08-15 = 75 Fix: Session selection not being saved 76 Fix: Correctly filter workshops for grouped and merged sessions 77 74 78 = 2.5.3 - 2025-08-10 = 75 79 Fix: Bug that sometimes shows extra digits in session title
Note: See TracChangeset
for help on using the changeset viewer.