From 026427ef78e6845a4c93f6fb151d4a607d378ad3 Mon Sep 17 00:00:00 2001 From: Chris Abraham Date: Mon, 21 Oct 2024 14:25:49 -0400 Subject: [PATCH] Turn off auto-tagging projects Signed-off-by: Chris Abraham --- .../wp-mu-plugins/lf-mu/admin/class-lf-mu-admin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/class-lf-mu-admin.php b/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/class-lf-mu-admin.php index 00ac00e2..5425494b 100644 --- a/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/class-lf-mu-admin.php +++ b/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/class-lf-mu-admin.php @@ -155,7 +155,7 @@ public function display_plugin_setup_page() { public function validate( $input ) { // This command used to tag all blog posts with projects when you save the settings in the admin. - $this->tag_blog_posts_with_projects(); // phpcs:ignore. + // $this->tag_blog_posts_with_projects(); // phpcs:ignore. $options = get_option( $this->plugin_name ); @@ -289,9 +289,9 @@ private function tag_blog_posts_with_projects() { ) ); foreach ( $myposts as $post ) { - // if ( get_the_terms( $post->ID, 'lf-project' ) ) { - // continue; - // } + if ( get_the_terms( $post->ID, 'lf-project' ) ) { + continue; + } // only add projects if there are none already assigned. $project_tags = $this->get_project_tags( $post->post_content, $projects );