diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9bea433 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +.DS_Store diff --git a/classes/class-woothemes-testimonials.php b/classes/class-woothemes-testimonials.php index d2f47d4..a789f51 100644 --- a/classes/class-woothemes-testimonials.php +++ b/classes/class-woothemes-testimonials.php @@ -84,7 +84,7 @@ public function register_post_type () { 'new_item' => sprintf( __( 'New %s', 'woothemes-testimonials' ), __( 'Testimonial', 'woothemes-testimonials' ) ), 'all_items' => sprintf( __( 'All %s', 'woothemes-testimonials' ), __( 'Testimonials', 'woothemes-testimonials' ) ), 'view_item' => sprintf( __( 'View %s', 'woothemes-testimonials' ), __( 'Testimonial', 'woothemes-testimonials' ) ), - 'search_items' => sprintf( __( 'Search %a', 'woothemes-testimonials' ), __( 'Testimonials', 'woothemes-testimonials' ) ), + 'search_items' => sprintf( __( 'Search %s', 'woothemes-testimonials' ), __( 'Testimonials', 'woothemes-testimonials' ) ), 'not_found' => sprintf( __( 'No %s Found', 'woothemes-testimonials' ), __( 'Testimonials', 'woothemes-testimonials' ) ), 'not_found_in_trash' => sprintf( __( 'No %s Found In Trash', 'woothemes-testimonials' ), __( 'Testimonials', 'woothemes-testimonials' ) ), 'parent_item_colon' => '', diff --git a/classes/class-woothemes-widget-testimonials.php b/classes/class-woothemes-widget-testimonials.php index 53e022b..fa9b3ba 100644 --- a/classes/class-woothemes-widget-testimonials.php +++ b/classes/class-woothemes-widget-testimonials.php @@ -267,5 +267,6 @@ protected function get_order_options () { } // End Class /* Register the widget. */ -add_action( 'widgets_init', create_function( '', 'return register_widget("Woothemes_Widget_Testimonials");' ), 1 ); +add_action( 'widgets_init', function() {register_widget("Woothemes_Widget_Testimonials");}); + ?> \ No newline at end of file