From c345e1397f2a75b3f3d705fc61be8efc57d0ee47 Mon Sep 17 00:00:00 2001 From: Jay Jennings Date: Thu, 18 May 2023 18:02:30 -0700 Subject: [PATCH 1/2] fixes for php8 Tested on php 8.1 --- classes/class-woothemes-testimonials.php | 2 +- classes/class-woothemes-widget-testimonials.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 From 8290031a99448adf58b29c0e59e3fc9b2b6f154e Mon Sep 17 00:00:00 2001 From: Jay Jennings Date: Thu, 18 May 2023 18:22:28 -0700 Subject: [PATCH 2/2] Create .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9bea433 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +.DS_Store