Skip to content

Commit 58c0e34

Browse files
committed
tweaking pull request, up version
1 parent 8f2980e commit 58c0e34

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

README.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ This plugin will not work out the box with the following plugins (unless they ar
4343

4444
== Changelog ==
4545

46+
= 1.3.2 =
47+
* Ability to specify your own head.js file (thanks to DeanStr)
48+
4649
= 1.3.1 =
4750
* Removed PHP warning
4851

asynchronous-javascript.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Asynchronous Javascript
44
Plugin URI: http://wordpress.org/extend/plugins/asynchronous-javascript/
55
Description: Improve page load performance by asynchronously loading javascript using head.js
6-
Version: 1.3.1
6+
Version: 1.3.2
77
Author: Paris Holley
88
Author URI: http://www.linkedin.com/in/parisholley
99
Author Email: mail@parisholley.com
@@ -99,9 +99,7 @@ function admin(){
9999
)
100100
));
101101

102-
$NHP_Options = new NHP_Options($sections, $args);
103-
if (empty($NHP_Options->options['head_file']))
104-
$NHP_Options->set('head_file', self::$default_head_file);
102+
new NHP_Options($sections, $args);
105103
}
106104

107105
/**
@@ -135,8 +133,9 @@ function filter_headjs(){
135133
$names = split(',', $options['exclude_name']);
136134
$files = split(',', $options['exclude_js']);
137135

138-
if (empty($options['head_file']))
139-
$options['head_file'] == self::$default_head_file;
136+
if (empty($options['head_file'])){
137+
$options['head_file'] == self::$default_head_file;
138+
}
140139

141140
if(count(self::$depends) > 0){
142141
$handles = array();

0 commit comments

Comments
 (0)