From 5e8c93d63501c0b7791d7566bdbc2a9739ef142f Mon Sep 17 00:00:00 2001 From: Phil Tyler Date: Thu, 5 Dec 2024 13:02:00 -0800 Subject: [PATCH 1/2] Clean up vestigial handle_delete code throwing warnings --- includes/class-solrpower-sync.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/includes/class-solrpower-sync.php b/includes/class-solrpower-sync.php index 17172fd1..4e91d601 100644 --- a/includes/class-solrpower-sync.php +++ b/includes/class-solrpower-sync.php @@ -104,9 +104,6 @@ function handle_modified( $post_id ) { */ function handle_delete( $post_id ) { $post_info = get_post( $post_id ); - $plugin_s4wp_settings = solr_options(); - $delete_page = $plugin_s4wp_settings['s4wp_delete_page']; - $delete_post = $plugin_s4wp_settings['s4wp_delete_post']; if ( is_multisite() ) { $this->delete( get_current_blog_id() . '_' . $post_info->ID ); From 10f47444089a9eb04e3b101d520e2d39d0533134 Mon Sep 17 00:00:00 2001 From: Phil Tyler Date: Thu, 5 Dec 2024 13:07:49 -0800 Subject: [PATCH 2/2] phpcbf --- includes/class-solrpower-sync.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-solrpower-sync.php b/includes/class-solrpower-sync.php index 4e91d601..01b00997 100644 --- a/includes/class-solrpower-sync.php +++ b/includes/class-solrpower-sync.php @@ -103,7 +103,7 @@ function handle_modified( $post_id ) { * @param integer $post_id ID for the post. */ function handle_delete( $post_id ) { - $post_info = get_post( $post_id ); + $post_info = get_post( $post_id ); if ( is_multisite() ) { $this->delete( get_current_blog_id() . '_' . $post_info->ID );