Version Description
- Use plugin version number to enqueue scripts and styles.
Download this release
Release Info
Developer | wpengine |
Plugin | PHP Compatibility Checker |
Version | 1.4.5 |
Comparing to | |
See all releases |
Code changes from version 1.4.4 to 1.4.5
- readme.txt +4 -1
- wpengine-phpcompat.php +11 -5
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: wpengine, octalmage, stevenkword, Taylor4484, pross, jcross
|
|
3 |
Tags: php 7, php 5.5, php, version, compatibility, checker, wp engine, wpe, wpengine
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 4.9
|
6 |
-
Stable tag: 1.4.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -114,6 +114,9 @@ To disclose security issues for this plugin please email WordPress@wpengine.com
|
|
114 |
|
115 |
== Changelog ==
|
116 |
|
|
|
|
|
|
|
117 |
= 1.4.4 =
|
118 |
- PHP 5.2 Support & PHP 7.1 and 7.2 Lints.
|
119 |
- Updated call to action sidebar depending on platform.
|
3 |
Tags: php 7, php 5.5, php, version, compatibility, checker, wp engine, wpe, wpengine
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 1.4.5
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
114 |
|
115 |
== Changelog ==
|
116 |
|
117 |
+
= 1.4.5 =
|
118 |
+
- Use plugin version number to enqueue scripts and styles.
|
119 |
+
|
120 |
= 1.4.4 =
|
121 |
- PHP 5.2 Support & PHP 7.1 and 7.2 Lints.
|
122 |
- Updated call to action sidebar depending on platform.
|
wpengine-phpcompat.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* Plugin URI: https://wpengine.com
|
11 |
* Description: Make sure your plugins and themes are compatible with newer PHP versions.
|
12 |
* Author: WP Engine
|
13 |
-
* Version: 1.4.
|
14 |
* Author URI: https://wpengine.com
|
15 |
* Text Domain: php-compatibility-checker
|
16 |
*/
|
@@ -313,13 +313,19 @@ class WPEngine_PHPCompat {
|
|
313 |
return;
|
314 |
}
|
315 |
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
// Styles.
|
317 |
-
wp_enqueue_style( 'wpephpcompat-style', plugins_url( '/src/css/style.css', __FILE__ ) );
|
318 |
|
319 |
// Scripts.
|
320 |
-
wp_enqueue_script( 'wpephpcompat-handlebars', plugins_url( '/src/js/handlebars.js', __FILE__ ), array( 'jquery' ) );
|
321 |
-
wp_enqueue_script( 'wpephpcompat-download', plugins_url( '/src/js/download.min.js', __FILE__ ) );
|
322 |
-
wp_enqueue_script( 'wpephpcompat', plugins_url( '/src/js/run.js', __FILE__ ), array( 'jquery', 'wpephpcompat-handlebars', 'wpephpcompat-download' ) );
|
323 |
|
324 |
/**
|
325 |
* Strings for i18n.
|
10 |
* Plugin URI: https://wpengine.com
|
11 |
* Description: Make sure your plugins and themes are compatible with newer PHP versions.
|
12 |
* Author: WP Engine
|
13 |
+
* Version: 1.4.5
|
14 |
* Author URI: https://wpengine.com
|
15 |
* Text Domain: php-compatibility-checker
|
16 |
*/
|
313 |
return;
|
314 |
}
|
315 |
|
316 |
+
// Grab the plugin version.
|
317 |
+
$plugin_data = get_plugin_data( __FILE__, false, false );
|
318 |
+
if ( isset( $plugin_data['Version'] ) ) {
|
319 |
+
$version = $plugin_data['Version'];
|
320 |
+
}
|
321 |
+
|
322 |
// Styles.
|
323 |
+
wp_enqueue_style( 'wpephpcompat-style', plugins_url( '/src/css/style.css', __FILE__ ), array(), $version );
|
324 |
|
325 |
// Scripts.
|
326 |
+
wp_enqueue_script( 'wpephpcompat-handlebars', plugins_url( '/src/js/handlebars.js', __FILE__ ), array( 'jquery' ), $version );
|
327 |
+
wp_enqueue_script( 'wpephpcompat-download', plugins_url( '/src/js/download.min.js', __FILE__ ), array(), $version );
|
328 |
+
wp_enqueue_script( 'wpephpcompat', plugins_url( '/src/js/run.js', __FILE__ ), array( 'jquery', 'wpephpcompat-handlebars', 'wpephpcompat-download' ), $version );
|
329 |
|
330 |
/**
|
331 |
* Strings for i18n.
|