Plugin Directory

Changeset 3211651


Ignore:
Timestamp:
12/21/2024 07:37:26 PM (15 months ago)
Author:
nico23
Message:

Update plugin to version 1.2.3 with NextgenThemes WordPress Plugin Deploy

Location:
nextgenthemes-jsdelivr-this
Files:
4 deleted
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • nextgenthemes-jsdelivr-this/tags/1.2.3/nextgenthemes-jsdelivr-this.php

    r3203528 r3211651  
    55 * Plugin URI:        https://nextgenthemes.com
    66 * Description:       Serves all available assets from free jsDelivr CDN
    7  * Version:           1.2.1
     7 * Version:           1.2.3
    88 * Requres PHP:       7.4
    99 * Author:            Nicolas Jonas
     
    1717namespace Nextgenthemes\jsDelivrThis;
    1818
    19 const VERSION = '1.2.1';
     19const VERSION = '1.2.3';
    2020
    2121add_action( 'plugins_loaded', __NAMESPACE__ . '\init' );
     
    105105    );
    106106}
    107 
    108107
    109108function admin_bar_html(): void {
     
    252251            $p->set_attribute( 'integrity', $by_plugin['integrity'] );
    253252            $p->set_attribute( 'crossorigin', 'anonymous' );
     253
     254            return $p->get_updated_html();
    254255        }
    255256    }
     
    322323
    323324        $data         = new \stdClass();
    324         $file_headers = remote_get_head($cdn_file, [ 'timeout' => 2 ]);
     325        $file_headers = remote_get_head( $cdn_file, [ 'timeout' => 2 ] );
    325326
    326327        if ( ! is_wp_error( $file_headers ) ) {
     
    361362function get_jsdelivr_hash_api_data( string $file_path, string $src ): ?object {
    362363
    363     $transient_name = shorten_transient_name( 'ngt-jsd_' . $src);
     364    $transient_name = shorten_transient_name( 'ngt-jsd_' . $src );
    364365    $result         = get_transient( $transient_name );
    365366
     
    530531    $transient_name = str_replace( 'https://', '', $transient_name );
    531532
    532     if ( strlen($transient_name) > 172 ) {
     533    if ( strlen( $transient_name ) > 172 ) {
    533534        $transient_name = preg_replace( '/[^a-zA-Z0-9_]/', '', $transient_name );
    534535    }
    535536
    536     if ( strlen($transient_name) > 172 ) {
    537         $transient_name = substr($transient_name, 0, 107) . '_' . hash( 'sha256', $transient_name ); // 107 + 1 + 64
     537    if ( strlen( $transient_name ) > 172 ) {
     538        $transient_name = substr( $transient_name, 0, 107 ) . '_' . hash( 'sha256', $transient_name ); // 107 + 1 + 64
    538539    }
    539540
  • nextgenthemes-jsdelivr-this/tags/1.2.3/readme.txt

    r3203528 r3211651  
    77Requires PHP: 7.4
    88Tested up to: 6.5.3
    9 Stable tag: 1.2.1
     9Stable tag: 1.2.3
    1010License: GPL 3.0
    1111License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1414
    1515== Changelog ==
     16
     17= 2024-12-21 1.2.3 =
     18* Fix: Plugin style detection not working.
    1619
    1720= 2024-12-06 1.2.1 =
  • nextgenthemes-jsdelivr-this/trunk/nextgenthemes-jsdelivr-this.php

    r3203528 r3211651  
    55 * Plugin URI:        https://nextgenthemes.com
    66 * Description:       Serves all available assets from free jsDelivr CDN
    7  * Version:           1.2.1
     7 * Version:           1.2.3
    88 * Requres PHP:       7.4
    99 * Author:            Nicolas Jonas
     
    1717namespace Nextgenthemes\jsDelivrThis;
    1818
    19 const VERSION = '1.2.1';
     19const VERSION = '1.2.3';
    2020
    2121add_action( 'plugins_loaded', __NAMESPACE__ . '\init' );
     
    105105    );
    106106}
    107 
    108107
    109108function admin_bar_html(): void {
     
    252251            $p->set_attribute( 'integrity', $by_plugin['integrity'] );
    253252            $p->set_attribute( 'crossorigin', 'anonymous' );
     253
     254            return $p->get_updated_html();
    254255        }
    255256    }
     
    322323
    323324        $data         = new \stdClass();
    324         $file_headers = remote_get_head($cdn_file, [ 'timeout' => 2 ]);
     325        $file_headers = remote_get_head( $cdn_file, [ 'timeout' => 2 ] );
    325326
    326327        if ( ! is_wp_error( $file_headers ) ) {
     
    361362function get_jsdelivr_hash_api_data( string $file_path, string $src ): ?object {
    362363
    363     $transient_name = shorten_transient_name( 'ngt-jsd_' . $src);
     364    $transient_name = shorten_transient_name( 'ngt-jsd_' . $src );
    364365    $result         = get_transient( $transient_name );
    365366
     
    530531    $transient_name = str_replace( 'https://', '', $transient_name );
    531532
    532     if ( strlen($transient_name) > 172 ) {
     533    if ( strlen( $transient_name ) > 172 ) {
    533534        $transient_name = preg_replace( '/[^a-zA-Z0-9_]/', '', $transient_name );
    534535    }
    535536
    536     if ( strlen($transient_name) > 172 ) {
    537         $transient_name = substr($transient_name, 0, 107) . '_' . hash( 'sha256', $transient_name ); // 107 + 1 + 64
     537    if ( strlen( $transient_name ) > 172 ) {
     538        $transient_name = substr( $transient_name, 0, 107 ) . '_' . hash( 'sha256', $transient_name ); // 107 + 1 + 64
    538539    }
    539540
  • nextgenthemes-jsdelivr-this/trunk/readme.txt

    r3203528 r3211651  
    77Requires PHP: 7.4
    88Tested up to: 6.5.3
    9 Stable tag: 1.2.1
     9Stable tag: 1.2.3
    1010License: GPL 3.0
    1111License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1414
    1515== Changelog ==
     16
     17= 2024-12-21 1.2.3 =
     18* Fix: Plugin style detection not working.
    1619
    1720= 2024-12-06 1.2.1 =
Note: See TracChangeset for help on using the changeset viewer.