Changeset 2860740
- Timestamp:
- 02/06/2023 11:18:34 AM (3 years ago)
- Location:
- comoquiero/trunk
- Files:
-
- 2 added
- 4 edited
-
comoquiero.php (modified) (2 diffs)
-
comoquiero.php.bu (modified) (2 diffs)
-
js (added)
-
js/btn.js (added)
-
readme.txt (modified) (1 diff)
-
readme.txt.bu (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
comoquiero/trunk/comoquiero.php
r2860669 r2860740 2 2 /* 3 3 * Plugin Name: Qcart 4 * Version: 23.02.06103 34 * Version: 23.02.061034 5 5 * Author: ComoQuiero 6 6 * Author URI: https://qcart.app … … 253 253 254 254 // INJECT SCRIPT 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'); 261 } else { 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 } 255 wp_enqueue_script('qcart-btn', plugins_url("js/btn.js?$q", __FILE__), array(), time(), true); 256 } -
comoquiero/trunk/comoquiero.php.bu
r2860669 r2860740 2 2 /* 3 3 * Plugin Name: Qcart 4 * Version: 23.0 1.3114304 * Version: 23.02.061033 5 5 * Author: ComoQuiero 6 6 * Author URI: https://qcart.app … … 262 262 // wp_enqueue_script('qcart-btn', "https://qcart.app/btn.js?trg=any&$q", array(), time(), true); 263 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.a bc/btn.js?trg=any&$q", array(), time(), true);264 wp_register_script('qcart', "https://qcart.app/btn.js?trg=any&$q", array(), time(), true); 265 265 wp_enqueue_script('qcart'); 266 266 } -
comoquiero/trunk/readme.txt
r2860669 r2860740 4 4 Author URI: https://qcart.app 5 5 Tested up to: 6.1 6 Stable tag: 23.02.06103 36 Stable tag: 23.02.061034 7 7 License: GPLv2 or later 8 8 -
comoquiero/trunk/readme.txt.bu
r2860669 r2860740 4 4 Author URI: https://qcart.app 5 5 Tested up to: 6.1 6 Stable tag: 23.0 1.3114306 Stable tag: 23.02.061033 7 7 License: GPLv2 or later 8 8
Note: See TracChangeset
for help on using the changeset viewer.