Async JavaScript - Version 1.16.12.12

Version Description

  • MOD: WordPress 4.7 Support
  • AD: Christmas Sale Sale
Download this release

Release Info

Developer cloughit
Plugin Icon 128x128 Async JavaScript
Version 1.16.12.12
Comparing to
See all releases

Code changes from version 1.16.10.25 to 1.16.12.12

Files changed (2) hide show
  1. async-javascript.php +6 -6
  2. readme.txt +7 -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.16.10.25
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.16.10.25' );
27
  wp_register_style(
28
  'aj_admin_styles',
29
  plugins_url( '/css/admin.css', __FILE__ )
@@ -59,9 +59,9 @@ add_action( 'admin_notices', 'async_javascript_upgrade_notice' );
59
  function async_javascript_upgrade_notice() {
60
  $aj_upgrade_notice = get_option( 'aj_upgrade_notice' );
61
  $time = current_time( 'timestamp', 1 );
62
- $exp = strtotime( '2016-11-01 00:00:01' );
63
  if ( $aj_upgrade_notice != AJ_VERSION && $time < $exp ) {
64
- echo '<div class="notice notice-info is-dismissible aj-upgrade-notice"><p><em><strong>Crazy One Week Sale!</strong></em> Get Async Javascript Pro for AUD $10.00 (normally AUD $35.00). <strong>Save AUD $25.00!!!</strong> Offer ends 31st Oct 2016. <a href="http://cloughit.com.au/product/async-javascript-pro/" target="_blank">Read more...</a></p></div>';
65
  }
66
  }
67
  /**
@@ -197,10 +197,10 @@ function async_javascript_admin() {
197
  <td style="width:25%;vertical-align: top;">
198
  <?php
199
  $time = current_time( 'timestamp', 1 );
200
- $exp = strtotime( '2016-11-01 00:00:01' );
201
  if ( $time < $exp ) {
202
  ?>
203
- <a href="https://cloughit.com.au/product/async-javascript-pro/" target="_blank"><img src="https://www.cloughit.com.au/wp-content/uploads/crazy-one-week-sale.jpg" style="max-width:100%;"></a>
204
  <?
205
  } else {
206
  ?>
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.16.12.12
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.16.12.12' );
27
  wp_register_style(
28
  'aj_admin_styles',
29
  plugins_url( '/css/admin.css', __FILE__ )
59
  function async_javascript_upgrade_notice() {
60
  $aj_upgrade_notice = get_option( 'aj_upgrade_notice' );
61
  $time = current_time( 'timestamp', 1 );
62
+ $exp = strtotime( '2017-01-01 00:00:01' );
63
  if ( $aj_upgrade_notice != AJ_VERSION && $time < $exp ) {
64
+ echo '<div class="notice notice-info is-dismissible aj-upgrade-notice"><p><em><strong>Christmas Sale!</strong></em> Get Async Javascript Pro for USD $10.00 (normally $35.00). <strong>Save $25.00!!!</strong> Offer ends 31st Dec 2016. <a href="https://cloughit.com.au/product/async-javascript-pro/" target="_blank">Read more...</a></p></div>';
65
  }
66
  }
67
  /**
197
  <td style="width:25%;vertical-align: top;">
198
  <?php
199
  $time = current_time( 'timestamp', 1 );
200
+ $exp = strtotime( '2017-01-01 00:00:01' );
201
  if ( $time < $exp ) {
202
  ?>
203
+ <a href="https://cloughit.com.au/product/async-javascript-pro/" target="_blank"><img src="https://www.cloughit.com.au/wp-content/uploads/ajp-christmas-sale.jpg" style="max-width:100%;"></a>
204
  <?
205
  } else {
206
  ?>
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.6.1
7
- Stable tag: 1.16.10.25
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -70,6 +70,11 @@ Please lodge a support request at <a href="https://cloughit.com.au/support/?wpsc
70
 
71
  == Changelog ==
72
 
 
 
 
 
 
73
  = 1.16.10.25 =
74
 
75
  * AD: Crazy One Week Sale
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.16.12.12
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
70
 
71
  == Changelog ==
72
 
73
+ = 1.16.12.12 =
74
+
75
+ * MOD: WordPress 4.7 Support
76
+ * AD: Christmas Sale Sale
77
+
78
  = 1.16.10.25 =
79
 
80
  * AD: Crazy One Week Sale