Plugin Directory

Changeset 2007075


Ignore:
Timestamp:
01/06/2019 09:27:49 AM (7 years ago)
Author:
liwanglin12
Message:

bug fix

Location:
wp-plus/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-plus/trunk/README.md

    r2007074 r2007075  
    1212
    1313## Change log 
    14 = 2.1.3
     14= 2.1.4
    1515[优化] 更新 jQuery 
    1616[优化] 资源文件逐步使用 jsDelivr 加载 
  • wp-plus/trunk/readme.txt

    r2007074 r2007075  
    2929
    3030== Changelog ==
    31 = 2.1.3
     31= 2.1.4
    3232[优化] 更新 jQuery 
    3333[优化] 资源文件逐步使用 jsDelivr 加载 
     
    119119
    120120== Upgrade Notice ==
    121 = 2.1.3
     121= 2.1.4
    122122[优化] 更新 jQuery 
    123123[优化] 资源文件逐步使用 jsDelivr 加载 
  • wp-plus/trunk/wp-plus.php

    r2007074 r2007075  
    66Author: liwanglin12
    77Author URI: https://lwl12.com
    8 Version: 2.1.3
     8Version: 2.1.4
    99*/
    1010/*Exit if accessed directly:安全第一,如果是直接载入,就退出.*/
    1111defined('ABSPATH') or exit;
    12 define("plus_version", "2.1.3");
     12define("plus_version", "2.1.4");
    1313/* 插件初始化*/
    1414define('WP_PLUS_URL', plugin_dir_url(__FILE__));
     
    443443function plus_add_async_attribute($tag, $handle) {
    444444    if ( 'notieJS' !== $handle ) return $tag;
    445     return str_replace( ' src', ' async integrity="sha384-8bGJKwCqbI7udp0sOa7fKUki3nRcGEXqfmn5rB9OzNFkx5tfaKNc1NxgKgfmtx7f" crossorigin="anonymous" src', $tag );
     445    return str_replace( ' src', ' async integrity="sha384-vO46R/Kxmvgbjw4biqvRvhYvWKUgTip1VUIPDKlCIFnuP5aUYvdLQ8aVtS9L3ZO/" crossorigin="anonymous" src', $tag );
    446446}
    447447function plus_loadalert()
    448448{
    449449    if (get_option('wp_plus_welcomemsg') == 'checked' || get_option('wp_plus_copyright') == 'checked' || get_option('wp_plus_oldpost') == 'checked') {
    450         wp_register_script('notieJS', 'https://cdn.jsdelivr.net/npm/[email protected]/notie.min.js');
     450        wp_register_script('notieJS', 'https://cdn.jsdelivr.net/npm/[email protected]/browser/notie.js');
    451451        wp_enqueue_script('notieJS');
    452452        add_filter('script_loader_tag', 'plus_add_async_attribute', 10, 2);
Note: See TracChangeset for help on using the changeset viewer.