Changeset 3370080
- Timestamp:
- 09/30/2025 03:45:56 AM (5 months ago)
- Location:
- sided/trunk
- Files:
-
- 4 edited
-
env.php (modified) (1 diff)
-
partials/functions.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
sided.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sided/trunk/env.php
r3029321 r3370080 4 4 define('SIDED_AWS_S3_BASE_URL', 'https://cdn.sided.co'); 5 5 define('SIDED_AUTH_STATUS_TRANSIENT_NAME', 'sided_authentication_status5'); 6 define('SIDED_EMBED_V2_BASE_URL', 'https://embed-v2.sided.co'); -
sided/trunk/partials/functions.php
r3368163 r3370080 8 8 9 9 $sided_initiate_script = get_option('sided_sided_initiate_script'); 10 // if ($sided_initiate_script == 'true') { 11 // wp_enqueue_script( 12 // 'Sided embed script', 13 // sprintf('%s/embed-assets/load.min.js', SIDED_AWS_S3_BASE_URL), 14 // [], 15 // sprintf('%s_9.3.5', $wp_version) 16 // ); 17 18 // add_filter( 'script_loader_tag', function ( $tag, $handle ) { 19 // if ( 'Sided embed script' !== $handle ) { 20 // return $tag; 21 // } 22 // //return str_replace( ' src', ' defer src', $tag ); // defer the script 23 // return str_replace( ' src', ' async src', $tag ); // OR async the script 24 // //return str_replace( ' src', ' async defer src', $tag ); // OR do both! 25 // }, 10, 2 ); 26 // } 27 10 28 if ($sided_initiate_script == 'true') { 11 29 wp_enqueue_script( 12 ' Sided embed script',13 sprintf('%s/ embed-assets/load.min.js', SIDED_AWS_S3_BASE_URL),30 'sided-v2-embed', 31 sprintf('%s/assets/index.js', SIDED_EMBED_V2_BASE_URL), 14 32 [], 15 sprintf('%s_9.3.5', $wp_version)33 null, // No version needed 16 34 ); 17 35 18 36 add_filter( 'script_loader_tag', function ( $tag, $handle ) { 19 if ( 'Sided embed script' !== $handle ) { 20 return $tag; 21 } 22 //return str_replace( ' src', ' defer src', $tag ); // defer the script 23 return str_replace( ' src', ' async src', $tag ); // OR async the script 24 //return str_replace( ' src', ' async defer src', $tag ); // OR do both! 37 if ('sided-v2-embed' === $handle) { 38 // Remove id="sided-v2-embed-js" from the script tag 39 $tag = preg_replace('/\s+id=["\'].*?-js["\']/', '', $tag); 40 // Replace with type="module" 41 return str_replace('<script ', '<script type="module" ', $tag); 42 } 43 return $tag; 25 44 }, 10, 2 ); 26 45 } -
sided/trunk/readme.txt
r3369836 r3370080 5 5 Requires at least: 4.7 6 6 Tested up to: 6.5.3 7 Stable tag: 1.4. 77 Stable tag: 1.4.8 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later -
sided/trunk/sided.php
r3369836 r3370080 4 4 * Plugin URI: https://sided.co/ 5 5 * Description: It is a wordpress plugin to embed sided polls in your Wordpress website. 6 * Version: 1.4. 76 * Version: 1.4.8 7 7 * Author: Sided 8 8 **/ 9 9 10 define( 'SIDED_VERSION', '1.4. 7' );10 define( 'SIDED_VERSION', '1.4.8' ); 11 11 define( 'SIDED_PLUGIN', __FILE__ ); 12 12 define( 'SIDED_PLUGIN_DIR', untrailingslashit( dirname( SIDED_PLUGIN ) ) );
Note: See TracChangeset
for help on using the changeset viewer.