Version Description
- FIX: Remove variable notice
Download this release
Release Info
Developer | cloughit |
Plugin | Async JavaScript |
Version | 1.17.02.06 |
Comparing to | |
See all releases |
Code changes from version 1.17.01.22 to 1.17.02.06
- async-javascript.php +3 -3
- readme.txt +6 -2
async-javascript.php
CHANGED
@@ -4,7 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
4 |
Plugin Name: Async JavaScript
|
5 |
Plugin URI: https://cloughit.com.au/product/async-javascript/
|
6 |
Description: Async JavaScript adds a 'async' or 'defer' attribute to scripts loaded via wp_enqueue_script
|
7 |
-
Version: 1.17.
|
8 |
Author: Clough I.T. Solutions
|
9 |
Author URI: http://www.cloughit.com.au/
|
10 |
Text Domain: async-javascript
|
@@ -23,7 +23,7 @@ add_action( 'admin_init', 'aj_admin_init' );
|
|
23 |
function aj_admin_init() {
|
24 |
define( 'AJ_PLUGIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
|
25 |
define( 'AJ_PLUGIN_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
|
26 |
-
define( 'AJ_VERSION', '1.17.
|
27 |
wp_register_style(
|
28 |
'aj_admin_styles',
|
29 |
plugins_url( '/css/admin.min.css', __FILE__ )
|
@@ -70,7 +70,7 @@ function async_javascript_upgrade_notice() {
|
|
70 |
$body = wp_remote_retrieve_body( $aj_notice_json );
|
71 |
$aj_notice = json_decode( $body );
|
72 |
$aj_upgrade_notice = get_option( 'aj_upgrade_notice' );
|
73 |
-
if ( $aj_upgrade_notice != $aj_notice->notice_id ) {
|
74 |
$exp = strtotime( $aj_notice->expire );
|
75 |
$title = $aj_notice->title != '' ? '<string><em>' . stripslashes( $aj_notice->title ) . '</em></strong>' : '';
|
76 |
$message = stripslashes( $aj_notice->message );
|
4 |
Plugin Name: Async JavaScript
|
5 |
Plugin URI: https://cloughit.com.au/product/async-javascript/
|
6 |
Description: Async JavaScript adds a 'async' or 'defer' attribute to scripts loaded via wp_enqueue_script
|
7 |
+
Version: 1.17.02.06
|
8 |
Author: Clough I.T. Solutions
|
9 |
Author URI: http://www.cloughit.com.au/
|
10 |
Text Domain: async-javascript
|
23 |
function aj_admin_init() {
|
24 |
define( 'AJ_PLUGIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
|
25 |
define( 'AJ_PLUGIN_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
|
26 |
+
define( 'AJ_VERSION', '1.17.02.06' );
|
27 |
wp_register_style(
|
28 |
'aj_admin_styles',
|
29 |
plugins_url( '/css/admin.min.css', __FILE__ )
|
70 |
$body = wp_remote_retrieve_body( $aj_notice_json );
|
71 |
$aj_notice = json_decode( $body );
|
72 |
$aj_upgrade_notice = get_option( 'aj_upgrade_notice' );
|
73 |
+
if ( !is_null( $aj_notice ) && false !== $aj_upgrade_notice && $aj_upgrade_notice != $aj_notice->notice_id ) {
|
74 |
$exp = strtotime( $aj_notice->expire );
|
75 |
$title = $aj_notice->title != '' ? '<string><em>' . stripslashes( $aj_notice->title ) . '</em></strong>' : '';
|
76 |
$message = stripslashes( $aj_notice->message );
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: (cloughit)
|
|
3 |
Donate link: http://www.cloughit.com.au/donate/ (coming soon)
|
4 |
Tags: async,javascript,google,pagespeed,js,speed,performance,boost,render,blocking,above-the-fold
|
5 |
Requires at least: 2.8
|
6 |
-
Tested up to: 4.7.
|
7 |
-
Stable tag: 1.17.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -72,6 +72,10 @@ Coming soon!
|
|
72 |
|
73 |
== Changelog ==
|
74 |
|
|
|
|
|
|
|
|
|
75 |
= 1.17.01.22 =
|
76 |
|
77 |
* MOD: Changes in notice functionality
|
3 |
Donate link: http://www.cloughit.com.au/donate/ (coming soon)
|
4 |
Tags: async,javascript,google,pagespeed,js,speed,performance,boost,render,blocking,above-the-fold
|
5 |
Requires at least: 2.8
|
6 |
+
Tested up to: 4.7.2
|
7 |
+
Stable tag: 1.17.02.06
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
72 |
|
73 |
== Changelog ==
|
74 |
|
75 |
+
= 1.17.02.06 =
|
76 |
+
|
77 |
+
* FIX: Remove variable notice
|
78 |
+
|
79 |
= 1.17.01.22 =
|
80 |
|
81 |
* MOD: Changes in notice functionality
|