Changeset 2007075
- Timestamp:
- 01/06/2019 09:27:49 AM (7 years ago)
- Location:
- wp-plus/trunk
- Files:
-
- 3 edited
-
README.md (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wp-plus.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-plus/trunk/README.md
r2007074 r2007075 12 12 13 13 ## Change log 14 = 2.1. 3=14 = 2.1.4 = 15 15 [优化] 更新 jQuery 16 16 [优化] 资源文件逐步使用 jsDelivr 加载 -
wp-plus/trunk/readme.txt
r2007074 r2007075 29 29 30 30 == Changelog == 31 = 2.1. 3=31 = 2.1.4 = 32 32 [优化] 更新 jQuery 33 33 [优化] 资源文件逐步使用 jsDelivr 加载 … … 119 119 120 120 == Upgrade Notice == 121 = 2.1. 3=121 = 2.1.4 = 122 122 [优化] 更新 jQuery 123 123 [优化] 资源文件逐步使用 jsDelivr 加载 -
wp-plus/trunk/wp-plus.php
r2007074 r2007075 6 6 Author: liwanglin12 7 7 Author URI: https://lwl12.com 8 Version: 2.1. 38 Version: 2.1.4 9 9 */ 10 10 /*Exit if accessed directly:安全第一,如果是直接载入,就退出.*/ 11 11 defined('ABSPATH') or exit; 12 define("plus_version", "2.1. 3");12 define("plus_version", "2.1.4"); 13 13 /* 插件初始化*/ 14 14 define('WP_PLUS_URL', plugin_dir_url(__FILE__)); … … 443 443 function plus_add_async_attribute($tag, $handle) { 444 444 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 ); 446 446 } 447 447 function plus_loadalert() 448 448 { 449 449 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'); 451 451 wp_enqueue_script('notieJS'); 452 452 add_filter('script_loader_tag', 'plus_add_async_attribute', 10, 2);
Note: See TracChangeset
for help on using the changeset viewer.