Changeset 2860669
- Timestamp:
- 02/06/2023 09:34:46 AM (3 years ago)
- Location:
- comoquiero/trunk
- Files:
-
- 4 edited
-
comoquiero.php (modified) (3 diffs)
-
comoquiero.php.bu (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
-
readme.txt.bu (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
comoquiero/trunk/comoquiero.php
r2857766 r2860669 2 2 /* 3 3 * Plugin Name: Qcart 4 * Version: 23.0 1.3114284 * Version: 23.02.061033 5 5 * Author: ComoQuiero 6 6 * Author URI: https://qcart.app … … 112 112 ); 113 113 114 // // REMOVE TEXT TO HTML CONVERSIONS 115 // remove_filter('content_save_pre', 'wp_filter_post_kses'); 116 // remove_filter('content_filtered_save_pre', 'wp_filter_post_kses'); 117 114 118 $postId = wp_insert_post($post, true); 119 120 // // RETURN TEXT TO HTML CONVERSIONS 121 // add_filter('content_save_pre', 'wp_filter_post_kses'); 122 // add_filter('content_filtered_save_pre', 'wp_filter_post_kses'); 115 123 116 124 if (empty($postId)) { … … 245 253 246 254 // INJECT SCRIPT 247 if (isset($_GET['test'])) { 248 wp_enqueue_script('qcart-btn', "https://qcart.abc/btn-test.js?trg=any&$q", array(), time(), true); 255 if (isset($_GET['test']) && !empty($_GET['test'])) { 256 $test = $_GET['test']; 257 // wp_enqueue_script('qcart-btn', "https://qcart.abc/btn-test.js?trg=any&$q&test=$test", array(), time(), true); 258 // https://wordpress.stackexchange.com/questions/147238/wp-enqueue-script-using-scripts-from-cdn-with-a-safety-callback 259 wp_register_script('qcart', "https://qcart.abc/btn-test.js?trg=any&$q&test=$test", array(), time(), true); 260 wp_enqueue_script('qcart'); 249 261 } else { 250 wp_enqueue_script('qcart-btn', "https://qcart.app/btn.js?trg=any&$q", array(), time(), true); 251 } 252 } 262 // wp_enqueue_script('qcart-btn', "https://qcart.app/btn.js?trg=any&$q", array(), time(), true); 263 // https://wordpress.stackexchange.com/questions/147238/wp-enqueue-script-using-scripts-from-cdn-with-a-safety-callback 264 wp_register_script('qcart', "https://qcart.app/btn.js?trg=any&$q", array(), time(), true); 265 wp_enqueue_script('qcart'); 266 } 267 } -
comoquiero/trunk/comoquiero.php.bu
r2857766 r2860669 2 2 /* 3 3 * Plugin Name: Qcart 4 * Version: 23.01.3114 104 * Version: 23.01.311430 5 5 * Author: ComoQuiero 6 6 * Author URI: https://qcart.app … … 52 52 53 53 $q = "UPDATE bitnami_wordpress.wp_blogs SET domain = '$new' WHERE domain = '$current'"; 54 $ result = $wpdb->update($q);54 $wpdb->query($wpdb->prepare($q)); 55 55 if ($wpdb->last_error) { 56 56 die($wpdb->last_error); … … 112 112 ); 113 113 114 // // REMOVE TEXT TO HTML CONVERSIONS 115 // remove_filter('content_save_pre', 'wp_filter_post_kses'); 116 // remove_filter('content_filtered_save_pre', 'wp_filter_post_kses'); 117 114 118 $postId = wp_insert_post($post, true); 119 120 // // RETURN TEXT TO HTML CONVERSIONS 121 // add_filter('content_save_pre', 'wp_filter_post_kses'); 122 // add_filter('content_filtered_save_pre', 'wp_filter_post_kses'); 115 123 116 124 if (empty($postId)) { … … 245 253 246 254 // INJECT SCRIPT 247 if (isset($_GET['test'])) { 248 wp_enqueue_script('qcart-btn', "https://qcart.abc/btn-test.js?trg=any&$q", array(), time(), true); 255 if (isset($_GET['test']) && !empty($_GET['test'])) { 256 $test = $_GET['test']; 257 // wp_enqueue_script('qcart-btn', "https://qcart.abc/btn-test.js?trg=any&$q&test=$test", array(), time(), true); 258 // https://wordpress.stackexchange.com/questions/147238/wp-enqueue-script-using-scripts-from-cdn-with-a-safety-callback 259 wp_register_script('qcart', "https://qcart.abc/btn-test.js?trg=any&$q&test=$test", array(), time(), true); 260 wp_enqueue_script('qcart'); 249 261 } else { 250 wp_enqueue_script('qcart-btn', "https://qcart.app/btn.js?trg=any&$q", array(), time(), true); 251 } 252 } 262 // wp_enqueue_script('qcart-btn', "https://qcart.app/btn.js?trg=any&$q", array(), time(), true); 263 // https://wordpress.stackexchange.com/questions/147238/wp-enqueue-script-using-scripts-from-cdn-with-a-safety-callback 264 wp_register_script('qcart', "https://qcart.abc/btn.js?trg=any&$q", array(), time(), true); 265 wp_enqueue_script('qcart'); 266 } 267 } -
comoquiero/trunk/readme.txt
r2857766 r2860669 4 4 Author URI: https://qcart.app 5 5 Tested up to: 6.1 6 Stable tag: 23.0 1.3114286 Stable tag: 23.02.061033 7 7 License: GPLv2 or later 8 8 -
comoquiero/trunk/readme.txt.bu
r2857766 r2860669 4 4 Author URI: https://qcart.app 5 5 Tested up to: 6.1 6 Stable tag: 23.01.3114 106 Stable tag: 23.01.311430 7 7 License: GPLv2 or later 8 8
Note: See TracChangeset
for help on using the changeset viewer.