Skip to content

Commit 83c2c9c

Browse files
committed
Hotfix of potential bug
Parse error on older versions of PHP within client-dash.php from using an in-line function. Function was moved out of add_action and called separately.
1 parent 0569535 commit 83c2c9c

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

client-dash.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
Plugin Name: Client Dash
44
Description: Creating a more intuitive admin interface for clients.
5-
Version: 1.1.1
5+
Version: 1.1.2
66
Author: Kyle Maurer
77
Author URI: http://realbigmarketing.com/staff/kyle
88
*/
@@ -17,10 +17,10 @@
1717
require_once('toolbar/toolbar.php');
1818

1919
// Store admin color scheme for later
20-
global $admin_colors; // only needed if colors must be available in classes
21-
add_action('admin_init', function() {
22-
global $_wp_admin_css_colors;
23-
global $admin_colors; // only needed if colors must be available in classes
20+
global $admin_colors;
21+
22+
function cd_admin_colors(){
23+
global $_wp_admin_css_colors, $admin_colors;
2424
$admin_colors = $_wp_admin_css_colors;
25-
});
26-
?>
25+
}
26+
add_action('admin_init', 'cd_admin_colors');

readme.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Contributors: BrashRebel, joelworsham
44
Tags: client, portal, dashboard, admin, users, webmaster
55
Requires at least: 3.8.0
6-
Tested up to: 3.9
7-
Stable tag: 1.1.1
6+
Tested up to: 3.9.1
7+
Stable tag: 1.1.2
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -47,8 +47,10 @@ Using this plugin is very simple. All you have to do is:
4747

4848
== Changelog ==
4949

50-
= 1.1.1 =
50+
= 1.1.2 =
51+
* Patch to fix potential fatal error when running on older versions of PHP
5152

53+
= 1.1.1 =
5254
* Fixed fatal error problem
5355

5456
= 1.1 =

0 commit comments

Comments
 (0)