Changeset 3211651
- Timestamp:
- 12/21/2024 07:37:26 PM (15 months ago)
- Location:
- nextgenthemes-jsdelivr-this
- Files:
-
- 4 deleted
- 4 edited
- 1 copied
-
tags/1.2.3 (copied) (copied from nextgenthemes-jsdelivr-this/trunk)
-
tags/1.2.3/composer.json (deleted)
-
tags/1.2.3/dialog.js (deleted)
-
tags/1.2.3/nextgenthemes-jsdelivr-this.php (modified) (7 diffs)
-
tags/1.2.3/readme.txt (modified) (2 diffs)
-
trunk/composer.json (deleted)
-
trunk/dialog.js (deleted)
-
trunk/nextgenthemes-jsdelivr-this.php (modified) (7 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nextgenthemes-jsdelivr-this/tags/1.2.3/nextgenthemes-jsdelivr-this.php
r3203528 r3211651 5 5 * Plugin URI: https://nextgenthemes.com 6 6 * Description: Serves all available assets from free jsDelivr CDN 7 * Version: 1.2. 17 * Version: 1.2.3 8 8 * Requres PHP: 7.4 9 9 * Author: Nicolas Jonas … … 17 17 namespace Nextgenthemes\jsDelivrThis; 18 18 19 const VERSION = '1.2. 1';19 const VERSION = '1.2.3'; 20 20 21 21 add_action( 'plugins_loaded', __NAMESPACE__ . '\init' ); … … 105 105 ); 106 106 } 107 108 107 109 108 function admin_bar_html(): void { … … 252 251 $p->set_attribute( 'integrity', $by_plugin['integrity'] ); 253 252 $p->set_attribute( 'crossorigin', 'anonymous' ); 253 254 return $p->get_updated_html(); 254 255 } 255 256 } … … 322 323 323 324 $data = new \stdClass(); 324 $file_headers = remote_get_head( $cdn_file, [ 'timeout' => 2 ]);325 $file_headers = remote_get_head( $cdn_file, [ 'timeout' => 2 ] ); 325 326 326 327 if ( ! is_wp_error( $file_headers ) ) { … … 361 362 function get_jsdelivr_hash_api_data( string $file_path, string $src ): ?object { 362 363 363 $transient_name = shorten_transient_name( 'ngt-jsd_' . $src );364 $transient_name = shorten_transient_name( 'ngt-jsd_' . $src ); 364 365 $result = get_transient( $transient_name ); 365 366 … … 530 531 $transient_name = str_replace( 'https://', '', $transient_name ); 531 532 532 if ( strlen( $transient_name) > 172 ) {533 if ( strlen( $transient_name ) > 172 ) { 533 534 $transient_name = preg_replace( '/[^a-zA-Z0-9_]/', '', $transient_name ); 534 535 } 535 536 536 if ( strlen( $transient_name) > 172 ) {537 $transient_name = substr( $transient_name, 0, 107) . '_' . hash( 'sha256', $transient_name ); // 107 + 1 + 64537 if ( strlen( $transient_name ) > 172 ) { 538 $transient_name = substr( $transient_name, 0, 107 ) . '_' . hash( 'sha256', $transient_name ); // 107 + 1 + 64 538 539 } 539 540 -
nextgenthemes-jsdelivr-this/tags/1.2.3/readme.txt
r3203528 r3211651 7 7 Requires PHP: 7.4 8 8 Tested up to: 6.5.3 9 Stable tag: 1.2. 19 Stable tag: 1.2.3 10 10 License: GPL 3.0 11 11 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 14 14 15 15 == Changelog == 16 17 = 2024-12-21 1.2.3 = 18 * Fix: Plugin style detection not working. 16 19 17 20 = 2024-12-06 1.2.1 = -
nextgenthemes-jsdelivr-this/trunk/nextgenthemes-jsdelivr-this.php
r3203528 r3211651 5 5 * Plugin URI: https://nextgenthemes.com 6 6 * Description: Serves all available assets from free jsDelivr CDN 7 * Version: 1.2. 17 * Version: 1.2.3 8 8 * Requres PHP: 7.4 9 9 * Author: Nicolas Jonas … … 17 17 namespace Nextgenthemes\jsDelivrThis; 18 18 19 const VERSION = '1.2. 1';19 const VERSION = '1.2.3'; 20 20 21 21 add_action( 'plugins_loaded', __NAMESPACE__ . '\init' ); … … 105 105 ); 106 106 } 107 108 107 109 108 function admin_bar_html(): void { … … 252 251 $p->set_attribute( 'integrity', $by_plugin['integrity'] ); 253 252 $p->set_attribute( 'crossorigin', 'anonymous' ); 253 254 return $p->get_updated_html(); 254 255 } 255 256 } … … 322 323 323 324 $data = new \stdClass(); 324 $file_headers = remote_get_head( $cdn_file, [ 'timeout' => 2 ]);325 $file_headers = remote_get_head( $cdn_file, [ 'timeout' => 2 ] ); 325 326 326 327 if ( ! is_wp_error( $file_headers ) ) { … … 361 362 function get_jsdelivr_hash_api_data( string $file_path, string $src ): ?object { 362 363 363 $transient_name = shorten_transient_name( 'ngt-jsd_' . $src );364 $transient_name = shorten_transient_name( 'ngt-jsd_' . $src ); 364 365 $result = get_transient( $transient_name ); 365 366 … … 530 531 $transient_name = str_replace( 'https://', '', $transient_name ); 531 532 532 if ( strlen( $transient_name) > 172 ) {533 if ( strlen( $transient_name ) > 172 ) { 533 534 $transient_name = preg_replace( '/[^a-zA-Z0-9_]/', '', $transient_name ); 534 535 } 535 536 536 if ( strlen( $transient_name) > 172 ) {537 $transient_name = substr( $transient_name, 0, 107) . '_' . hash( 'sha256', $transient_name ); // 107 + 1 + 64537 if ( strlen( $transient_name ) > 172 ) { 538 $transient_name = substr( $transient_name, 0, 107 ) . '_' . hash( 'sha256', $transient_name ); // 107 + 1 + 64 538 539 } 539 540 -
nextgenthemes-jsdelivr-this/trunk/readme.txt
r3203528 r3211651 7 7 Requires PHP: 7.4 8 8 Tested up to: 6.5.3 9 Stable tag: 1.2. 19 Stable tag: 1.2.3 10 10 License: GPL 3.0 11 11 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 14 14 15 15 == Changelog == 16 17 = 2024-12-21 1.2.3 = 18 * Fix: Plugin style detection not working. 16 19 17 20 = 2024-12-06 1.2.1 =
Note: See TracChangeset
for help on using the changeset viewer.