Skip to content

Commit

Permalink
Correct error in PHP 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jarednova committed Jan 26, 2016
1 parent 903f7a9 commit 55fa665
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions jigsaw.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin Name: Jigsaw
Description: Simple ways to make admin customizations for WordPress
Author: Jared Novack + Upstatement
Version: 0.6
Version: 0.6.1
Author URI: http://jigsaw.upstatement.com/
*/

Expand Down Expand Up @@ -150,7 +150,7 @@ public static function add_user_column( $label, $callback, $priority = 10 ) {
$value_filter_name = 'manage_users_custom_column';

add_filter( $title_filter_name, function($columns) use ($label, $priority){
return self::column_title_filter( $columns, $label, $priority );
return Jigsaw::column_title_filter( $columns, $label, $priority );
}, $priority);

add_action( $value_filter_name, function($val, $col, $uid ) use ( $label, $callback ) {
Expand Down Expand Up @@ -185,7 +185,7 @@ public static function add_column( $post_types, $label, $callback, $priority = 1
$filter_name = 'manage_'.$post_type.'_posts_columns';
$action_name = 'manage_'.$post_type.'_posts_custom_column';
add_filter( $filter_name , function($columns) use ( $label, $priority ) {
return self::column_title_filter( $columns, $label, $priority );
return Jigsaw::column_title_filter( $columns, $label, $priority );
}, $priority );

add_action( $action_name, function( $col, $pid ) use ( $label, $callback ) {
Expand Down
12 changes: 10 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: jarednova
Tags: admin, configuration
Requires at least: 3.7
Stable tag: 0.6
Stable tag: 0.6.1
Tested up to: 4.0
PHP version: 5.3.0 or greater
License: GPLv2 or later
Expand All @@ -22,4 +22,12 @@ Simple ways to make admin customizations for WordPress. You know all that brain

== Support ==

Please use the [GitHub repo](https://github.com/upstatement/jigsaw/issues?state=open) to file bugs or questions.
Please use the [GitHub repo](https://github.com/upstatement/jigsaw/issues?state=open) to file bugs or questions.

== Changelog ==

= 0.6.1 =
* Fixed error in PHP 5.3

= 0.6 =
* Added column support for users

0 comments on commit 55fa665

Please sign in to comment.