Skip to content

Commit cce58e2

Browse files
committed
fixed php warning
1 parent 8f59b1f commit cce58e2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
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.1 =
47+
* Removed PHP warning
48+
4649
= 1.3.0 =
4750
* Ability to exclude files by filename or queue id from being loaded asynchronously
4851

asynchronous-javascript.php

Lines changed: 2 additions & 2 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.0
6+
Version: 1.3.1
77
Author: Paris Holley
88
Author URI: http://www.linkedin.com/in/parisholley
99
Author Email: mail@parisholley.com
@@ -131,7 +131,7 @@ function filter_headjs(){
131131
$exclude = false;
132132

133133
foreach($files as $file){
134-
if(strpos($depend['src'], $file) !== false){
134+
if(!empty($file) && strpos($depend['src'], $file) !== false){
135135
$exclude = true;
136136
break;
137137
}

0 commit comments

Comments
 (0)