Changeset 3222704
- Timestamp:
- 01/15/2025 09:14:11 AM (15 months ago)
- Location:
- solea
- Files:
-
- 12 edited
- 1 copied
-
tags/5.1 (copied) (copied from solea/trunk)
-
tags/5.1/app/routers/dashboard-router/update-participant-save.php (modified) (2 diffs)
-
tags/5.1/assets/javascripts/dashboard.js (modified) (1 diff)
-
tags/5.1/libs/class-mainmodel.php (modified) (1 diff)
-
tags/5.1/readme.txt (modified) (2 diffs)
-
tags/5.1/setup/setup-objects.php (modified) (1 diff)
-
tags/5.1/solea.php (modified) (1 diff)
-
trunk/app/routers/dashboard-router/update-participant-save.php (modified) (2 diffs)
-
trunk/assets/javascripts/dashboard.js (modified) (1 diff)
-
trunk/libs/class-mainmodel.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/setup/setup-objects.php (modified) (1 diff)
-
trunk/solea.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
solea/tags/5.1/app/routers/dashboard-router/update-participant-save.php
r3183195 r3222704 43 43 ! isset( $_REQUEST['allergies'] ) || 44 44 ! isset( $_REQUEST['medication'] ) || 45 ! isset( $_REQUEST['notices'] ) 45 ! isset( $_REQUEST['notices'] ) || 46 ! isset( $_REQUEST['intolerances'] ) 46 47 ) { 47 48 wp_die( 'Missing parameters' ); … … 74 75 $participant->medication = sanitize_text_field( wp_unslash( $_REQUEST['medication'] ) ); 75 76 $participant->notices = sanitize_textarea_field( wp_unslash( $_REQUEST['notices'] ) ); 77 $participant->intolerances = sanitize_text_field( wp_unslash( $_REQUEST['intolerances'] ) ); 76 78 77 79 $participant->save(); -
solea/tags/5.1/assets/javascripts/dashboard.js
r3183195 r3222704 2 2 document.getElementById( 'solea-participant-box' ).style.display = 'block'; 3 3 document.getElementById( 'solea_hider' ).style.display = 'block'; 4 solea_load_ajax_div( 'print-participant', 'solea-participant-box-content', 'solea_nonce=' + solea_data.solea_nonce + ' participant-id=' + data_id )4 solea_load_ajax_div( 'print-participant', 'solea-participant-box-content', 'solea_nonce=' + solea_data.solea_nonce + '&participant-id=' + data_id ) 5 5 } 6 6 -
solea/tags/5.1/libs/class-mainmodel.php
r3215933 r3222704 89 89 global $wpdb; 90 90 91 $plugin_data = get_plugin_data( SOLEA_PLUGIN_STARTUP_FILE, true, false ); 91 $charset = $wpdb->get_charset_collate(); 92 $file_access = new FileAccess(); 93 $sql = "SHOW TABLES LIKE '$this->table'"; 92 94 93 $last_version = get_option('solea_last_version', '0.0'); 94 if ($last_version !== $plugin_data['Version'] ) { 95 $sql_setup = str_replace( 96 '%tablename%', 97 $this->table, 98 $file_access->get_contents( SOLEA_PLUGIN_DIR . '/setup/database/' . $this->plainname . '.sql' ) 99 ); 95 100 96 $charset = $wpdb->get_charset_collate(); 97 $file_access = new FileAccess(); 98 $sql = "SHOW TABLES LIKE '$this->table'"; 99 100 $sql_setup = str_replace( 101 '%tablename%', 102 $this->table, 103 $file_access->get_contents( SOLEA_PLUGIN_DIR . '/setup/database/' . $this->plainname . '.sql' ) 104 ); 105 106 $sql_setup = str_replace( '%charset%', $charset, $sql_setup ); 107 $sql_setup = str_replace( '%prefix%', $wpdb->prefix, $sql_setup ); 108 dbDelta( $sql_setup ); 109 update_option('solea_last_version', (string)$plugin_data['Version']); 110 } 111 } 101 $sql_setup = str_replace( '%charset%', $charset, $sql_setup ); 102 $sql_setup = str_replace( '%prefix%', $wpdb->prefix, $sql_setup ); 103 dbDelta( $sql_setup ); 104 } 112 105 113 106 /** -
solea/tags/5.1/readme.txt
r3221661 r3222704 4 4 Requires at least: 6.0 5 5 Tested up to: 6.7 6 Stable tag: 5. 06 Stable tag: 5.1 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 39 39 40 40 ## Changelog ## 41 = 5.1 = 42 * [BUG] Fixed installation routine 43 * [BUG] Fixed displaying participant information 44 * [BUG] Fixed update intolerence field 45 41 46 = 5.0 = 42 47 * [BUG] Fixed bug in displaying participation table filter -
solea/tags/5.1/setup/setup-objects.php
r3183195 r3222704 19 19 */ 20 20 function solea_setup_objects() { 21 $event = new Event();22 $event->setup();23 21 24 $participant = new Participant(); 25 $participant->setup(); 22 $plugin_data = get_plugin_data( SOLEA_PLUGIN_STARTUP_FILE, true, false ); 26 23 27 $local_group = new LocalGroup();28 $local_group->setup(); 24 $last_version = get_option('solea_last_version', '0.0'); 25 if ($last_version !== $plugin_data['Version'] ) { 29 26 30 if ( is_multisite() ) {31 $sites = get_sites();32 27 33 foreach ( $sites as $site ) { 34 $current_blog_id = $site->blog_id; 35 switch_to_blog( $current_blog_id ); 28 $event = new Event(); 29 $event->setup(); 36 30 37 $event = new Event();38 $event->setup();31 $participant = new Participant(); 32 $participant->setup(); 39 33 40 $participant = new Participant();41 $participant->setup();34 $local_group = new LocalGroup(); 35 $local_group->setup(); 42 36 43 $local_group = new LocalGroup(); 44 $local_group->setup();37 if ( is_multisite() ) { 38 $sites = get_sites(); 45 39 46 restore_current_blog(); 47 } 48 } 40 foreach ( $sites as $site ) { 41 $current_blog_id = $site->blog_id; 42 switch_to_blog( $current_blog_id ); 43 44 $event = new Event(); 45 $event->setup(); 46 47 $participant = new Participant(); 48 $participant->setup(); 49 50 $local_group = new LocalGroup(); 51 $local_group->setup(); 52 update_option('solea_last_version', (string)$plugin_data['Version']); 53 54 restore_current_blog(); 55 } 56 } 57 update_option('solea_last_version', (string)$plugin_data['Version']); 58 } 49 59 } -
solea/tags/5.1/solea.php
r3221661 r3222704 3 3 * Plugin Name: solea 4 4 * Description: A tool for organisating events and keep participants in mind. 5 * Version: 5. 05 * Version: 5.1 6 6 * Tags: solea, events, management, budgeting 7 7 * Requires at least: 6.0 -
solea/trunk/app/routers/dashboard-router/update-participant-save.php
r3183195 r3222704 43 43 ! isset( $_REQUEST['allergies'] ) || 44 44 ! isset( $_REQUEST['medication'] ) || 45 ! isset( $_REQUEST['notices'] ) 45 ! isset( $_REQUEST['notices'] ) || 46 ! isset( $_REQUEST['intolerances'] ) 46 47 ) { 47 48 wp_die( 'Missing parameters' ); … … 74 75 $participant->medication = sanitize_text_field( wp_unslash( $_REQUEST['medication'] ) ); 75 76 $participant->notices = sanitize_textarea_field( wp_unslash( $_REQUEST['notices'] ) ); 77 $participant->intolerances = sanitize_text_field( wp_unslash( $_REQUEST['intolerances'] ) ); 76 78 77 79 $participant->save(); -
solea/trunk/assets/javascripts/dashboard.js
r3183195 r3222704 2 2 document.getElementById( 'solea-participant-box' ).style.display = 'block'; 3 3 document.getElementById( 'solea_hider' ).style.display = 'block'; 4 solea_load_ajax_div( 'print-participant', 'solea-participant-box-content', 'solea_nonce=' + solea_data.solea_nonce + ' participant-id=' + data_id )4 solea_load_ajax_div( 'print-participant', 'solea-participant-box-content', 'solea_nonce=' + solea_data.solea_nonce + '&participant-id=' + data_id ) 5 5 } 6 6 -
solea/trunk/libs/class-mainmodel.php
r3215933 r3222704 89 89 global $wpdb; 90 90 91 $plugin_data = get_plugin_data( SOLEA_PLUGIN_STARTUP_FILE, true, false ); 91 $charset = $wpdb->get_charset_collate(); 92 $file_access = new FileAccess(); 93 $sql = "SHOW TABLES LIKE '$this->table'"; 92 94 93 $last_version = get_option('solea_last_version', '0.0'); 94 if ($last_version !== $plugin_data['Version'] ) { 95 $sql_setup = str_replace( 96 '%tablename%', 97 $this->table, 98 $file_access->get_contents( SOLEA_PLUGIN_DIR . '/setup/database/' . $this->plainname . '.sql' ) 99 ); 95 100 96 $charset = $wpdb->get_charset_collate(); 97 $file_access = new FileAccess(); 98 $sql = "SHOW TABLES LIKE '$this->table'"; 99 100 $sql_setup = str_replace( 101 '%tablename%', 102 $this->table, 103 $file_access->get_contents( SOLEA_PLUGIN_DIR . '/setup/database/' . $this->plainname . '.sql' ) 104 ); 105 106 $sql_setup = str_replace( '%charset%', $charset, $sql_setup ); 107 $sql_setup = str_replace( '%prefix%', $wpdb->prefix, $sql_setup ); 108 dbDelta( $sql_setup ); 109 update_option('solea_last_version', (string)$plugin_data['Version']); 110 } 111 } 101 $sql_setup = str_replace( '%charset%', $charset, $sql_setup ); 102 $sql_setup = str_replace( '%prefix%', $wpdb->prefix, $sql_setup ); 103 dbDelta( $sql_setup ); 104 } 112 105 113 106 /** -
solea/trunk/readme.txt
r3221661 r3222704 4 4 Requires at least: 6.0 5 5 Tested up to: 6.7 6 Stable tag: 5. 06 Stable tag: 5.1 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 39 39 40 40 ## Changelog ## 41 = 5.1 = 42 * [BUG] Fixed installation routine 43 * [BUG] Fixed displaying participant information 44 * [BUG] Fixed update intolerence field 45 41 46 = 5.0 = 42 47 * [BUG] Fixed bug in displaying participation table filter -
solea/trunk/setup/setup-objects.php
r3183195 r3222704 19 19 */ 20 20 function solea_setup_objects() { 21 $event = new Event();22 $event->setup();23 21 24 $participant = new Participant(); 25 $participant->setup(); 22 $plugin_data = get_plugin_data( SOLEA_PLUGIN_STARTUP_FILE, true, false ); 26 23 27 $local_group = new LocalGroup();28 $local_group->setup(); 24 $last_version = get_option('solea_last_version', '0.0'); 25 if ($last_version !== $plugin_data['Version'] ) { 29 26 30 if ( is_multisite() ) {31 $sites = get_sites();32 27 33 foreach ( $sites as $site ) { 34 $current_blog_id = $site->blog_id; 35 switch_to_blog( $current_blog_id ); 28 $event = new Event(); 29 $event->setup(); 36 30 37 $event = new Event();38 $event->setup();31 $participant = new Participant(); 32 $participant->setup(); 39 33 40 $participant = new Participant();41 $participant->setup();34 $local_group = new LocalGroup(); 35 $local_group->setup(); 42 36 43 $local_group = new LocalGroup(); 44 $local_group->setup();37 if ( is_multisite() ) { 38 $sites = get_sites(); 45 39 46 restore_current_blog(); 47 } 48 } 40 foreach ( $sites as $site ) { 41 $current_blog_id = $site->blog_id; 42 switch_to_blog( $current_blog_id ); 43 44 $event = new Event(); 45 $event->setup(); 46 47 $participant = new Participant(); 48 $participant->setup(); 49 50 $local_group = new LocalGroup(); 51 $local_group->setup(); 52 update_option('solea_last_version', (string)$plugin_data['Version']); 53 54 restore_current_blog(); 55 } 56 } 57 update_option('solea_last_version', (string)$plugin_data['Version']); 58 } 49 59 } -
solea/trunk/solea.php
r3221661 r3222704 3 3 * Plugin Name: solea 4 4 * Description: A tool for organisating events and keep participants in mind. 5 * Version: 5. 05 * Version: 5.1 6 6 * Tags: solea, events, management, budgeting 7 7 * Requires at least: 6.0
Note: See TracChangeset
for help on using the changeset viewer.