Version Description
Download this release
Release Info
Developer | dgwyer |
Plugin | Display PHP Version |
Version | 1.3 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.3
- display-php-version.php +8 -6
- dpv.js +2 -2
- readme.txt +9 -5
- screenshot-1.png +0 -0
display-php-version.php
CHANGED
@@ -2,12 +2,12 @@
|
|
2 |
/*
|
3 |
Plugin Name: Display PHP Version
|
4 |
Description: Displays the current PHP version in the "At a Glance" admin dashboard widget.
|
5 |
-
Version: 1.
|
6 |
Author: David Gwyer
|
7 |
-
Author URI: http://www.
|
8 |
*/
|
9 |
|
10 |
-
/* Copyright 2009 David Gwyer (email :
|
11 |
|
12 |
This program is free software; you can redistribute it and/or modify
|
13 |
it under the terms of the GNU General Public License as published by
|
@@ -24,11 +24,12 @@ Author URI: http://www.presscoders.com
|
|
24 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25 |
*/
|
26 |
|
27 |
-
function dpv_enqueue_script($hook) {
|
28 |
|
29 |
// only run on dashboard page
|
30 |
-
if( 'index.php' != $hook )
|
31 |
-
|
|
|
32 |
|
33 |
// enqueue script to show PHP version
|
34 |
wp_enqueue_script( 'dpv_script', plugin_dir_url( __FILE__ ) . 'dpv.js' );
|
@@ -39,4 +40,5 @@ function dpv_enqueue_script($hook) {
|
|
39 |
) );
|
40 |
|
41 |
}
|
|
|
42 |
add_action( 'admin_enqueue_scripts', 'dpv_enqueue_script' );
|
2 |
/*
|
3 |
Plugin Name: Display PHP Version
|
4 |
Description: Displays the current PHP version in the "At a Glance" admin dashboard widget.
|
5 |
+
Version: 1.3
|
6 |
Author: David Gwyer
|
7 |
+
Author URI: http://www.wpgoplugins.com
|
8 |
*/
|
9 |
|
10 |
+
/* Copyright 2009 David Gwyer (email : david@wpgoplugins.com)
|
11 |
|
12 |
This program is free software; you can redistribute it and/or modify
|
13 |
it under the terms of the GNU General Public License as published by
|
24 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25 |
*/
|
26 |
|
27 |
+
function dpv_enqueue_script( $hook ) {
|
28 |
|
29 |
// only run on dashboard page
|
30 |
+
if ( 'index.php' != $hook ) {
|
31 |
+
return;
|
32 |
+
}
|
33 |
|
34 |
// enqueue script to show PHP version
|
35 |
wp_enqueue_script( 'dpv_script', plugin_dir_url( __FILE__ ) . 'dpv.js' );
|
40 |
) );
|
41 |
|
42 |
}
|
43 |
+
|
44 |
add_action( 'admin_enqueue_scripts', 'dpv_enqueue_script' );
|
dpv.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
jQuery(document).ready(function($) {
|
2 |
-
$("#wp-version-message").after("<p>Running PHP version: <b>" + dpvObj.phpVersion + "</b></p>");
|
3 |
});
|
1 |
+
jQuery(document).ready(function ($) {
|
2 |
+
$("#wp-version-message").after("<p>Running PHP version: <b style='color:green;'>" + dpvObj.phpVersion + "</b></p>");
|
3 |
});
|
readme.txt
CHANGED
@@ -2,25 +2,25 @@
|
|
2 |
Contributors: dgwyer
|
3 |
Tags: admin, dashboard, widget, display, PHP, version
|
4 |
Requires at least: 2.7
|
5 |
-
Tested up to:
|
6 |
-
Stable tag: 1.
|
7 |
|
8 |
Displays the current PHP version in the "At a Glance" admin dashboard widget.
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
-
Displays the current PHP version in the "At a
|
13 |
|
14 |
Please rate the Plugin if you find it useful, thanks.
|
15 |
|
16 |
-
|
17 |
|
18 |
== Installation ==
|
19 |
|
20 |
Instructions for installing the Display PHP Version Plugin.
|
21 |
|
22 |
1. In your WordPress admin go to Plugins -> Add New.
|
23 |
-
2. Enter Display PHP Version in the text box and click Search Plugins.
|
24 |
3. In the list of Plugins click Install Now next to the Display PHP Version Plugin.
|
25 |
4. Once installed click to activate.
|
26 |
5. Go to your WordPress dashboard page and look next to your WordPress version to see what PHP version is running.
|
@@ -31,6 +31,10 @@ Instructions for installing the Display PHP Version Plugin.
|
|
31 |
|
32 |
== Changelog ==
|
33 |
|
|
|
|
|
|
|
|
|
34 |
*1.2 update*
|
35 |
|
36 |
* Added more reliable way to output PHP version number.
|
2 |
Contributors: dgwyer
|
3 |
Tags: admin, dashboard, widget, display, PHP, version
|
4 |
Requires at least: 2.7
|
5 |
+
Tested up to: 4.7
|
6 |
+
Stable tag: 1.3
|
7 |
|
8 |
Displays the current PHP version in the "At a Glance" admin dashboard widget.
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
+
Displays the current PHP version in the "At a Glance" admin dashboard widget.
|
13 |
|
14 |
Please rate the Plugin if you find it useful, thanks.
|
15 |
|
16 |
+
Check out our other WordPress plugins <a href="http://www.wpgothemes.com" target="_blank">here</a>.
|
17 |
|
18 |
== Installation ==
|
19 |
|
20 |
Instructions for installing the Display PHP Version Plugin.
|
21 |
|
22 |
1. In your WordPress admin go to Plugins -> Add New.
|
23 |
+
2. Enter "Display PHP Version" in the text box and click Search Plugins.
|
24 |
3. In the list of Plugins click Install Now next to the Display PHP Version Plugin.
|
25 |
4. Once installed click to activate.
|
26 |
5. Go to your WordPress dashboard page and look next to your WordPress version to see what PHP version is running.
|
31 |
|
32 |
== Changelog ==
|
33 |
|
34 |
+
*1.3 update*
|
35 |
+
|
36 |
+
* Minor update for WordPress 4.7 compatibility, and some formatting changes.
|
37 |
+
|
38 |
*1.2 update*
|
39 |
|
40 |
* Added more reliable way to output PHP version number.
|
screenshot-1.png
CHANGED
Binary file
|