Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.4.2 - Fix deprecated create_function() call and search_items fatal error #70

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion classes/class-woothemes-our-team.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function register_post_type () {
'new_item' => sprintf( __( 'New %s', 'our-team-by-woothemes' ), __( 'Team Member', 'our-team-by-woothemes' ) ),
'all_items' => sprintf( __( 'All %s', 'our-team-by-woothemes' ), __( 'Team Members', 'our-team-by-woothemes' ) ),
'view_item' => sprintf( __( 'View %s', 'our-team-by-woothemes' ), __( 'Team Member', 'our-team-by-woothemes' ) ),
'search_items' => sprintf( __( 'Search %a', 'our-team-by-woothemes' ), __( 'Team Members', 'our-team-by-woothemes' ) ),
'search_items' => sprintf( __( 'Search %s', 'our-team-by-woothemes' ), __( 'Team Members', 'our-team-by-woothemes' ) ),
'not_found' => sprintf( __( 'No %s Found', 'our-team-by-woothemes' ), __( 'Team Members', 'our-team-by-woothemes' ) ),
'not_found_in_trash' => sprintf( __( 'No %s Found In Trash', 'our-team-by-woothemes' ), __( 'Team Members', 'our-team-by-woothemes' ) ),
'parent_item_colon' => '',
Expand Down
4 changes: 3 additions & 1 deletion classes/class-woothemes-widget-our-team.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,4 +321,6 @@ protected function get_order_options () {
} // End Class

/* Register the widget. */
add_action( 'widgets_init', create_function( '', 'return register_widget("Woothemes_Widget_Our_Team");' ), 1 );
add_action( 'widgets_init', function () {
return register_widget('Woothemes_Widget_Our_Team');
}, 1);
10 changes: 9 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: http://woothemes.com/
Tags: teams, team members, profiles, widget, shortcode, template-tag
Requires at least: 3.8
Tested up to: 3.9.1
Stable tag: 1.4.1
Stable tag: 1.4.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -189,6 +189,10 @@ We encourage everyone to contribute their ideas, thoughts and code snippets. Thi

== Upgrade Notice =

= 1.4.2 =
* Fix deprecated create_function() call
* Fix search_items fatal error

= 1.4.1 =
* Removes deprecated constructor call for WP_Widget

Expand All @@ -204,6 +208,10 @@ We encourage everyone to contribute their ideas, thoughts and code snippets. Thi

== Changelog ==

= 1.4.2 =
* Fix deprecated create_function() call
* Fix search_items fatal error

= 1.4.1 =
* 2015-07-07
* Removes deprecated constructor call for WP_Widget
Expand Down
4 changes: 2 additions & 2 deletions woothemes-our-team.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: http://woothemes.com/
* Description: Hi, I'm your team profile management plugin for WordPress. Show off what your team members using our shortcode, widget or template tag.
* Author: WooThemes
* Version: 1.4.1
* Version: 1.4.2
* Author URI: http://woothemes.com/
* Text Domain: our-team-by-woothemes
*
Expand All @@ -20,4 +20,4 @@
require_once( 'classes/class-woothemes-widget-our-team.php' );
global $woothemes_our_team;
$woothemes_our_team = new Woothemes_Our_Team( __FILE__ );
$woothemes_our_team->version = '1.4.1';
$woothemes_our_team->version = '1.4.2';