From c038a6d361ed2b9a49a58b6f4aa53e50fc15a485 Mon Sep 17 00:00:00 2001 From: Chris Abraham Date: Tue, 25 Jun 2024 11:46:11 +0700 Subject: [PATCH] Revert "put in some debug stuff" This reverts commit 090830506d93767fe06bfd847e7fe7b123f26631. --- .../wp-mu-plugins/lf-mu/admin/partials/sync-presentations.php | 2 +- .../mu-plugins/wp-mu-plugins/lf-mu/includes/class-lf-mu.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/sync-presentations.php b/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/sync-presentations.php index 57beb44..1d663bc 100644 --- a/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/sync-presentations.php +++ b/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/sync-presentations.php @@ -91,7 +91,7 @@ $query->the_post(); $params['ID'] = get_the_ID(); // post to update. } -var_dump($params); + $newid = wp_insert_post( $params ); // will insert or update the post as needed. if ( $newid ) { diff --git a/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/includes/class-lf-mu.php b/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/includes/class-lf-mu.php index 0023fcb..9c9b186 100644 --- a/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/includes/class-lf-mu.php +++ b/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/includes/class-lf-mu.php @@ -183,7 +183,7 @@ private function define_admin_hooks() { // $this->loader->add_action( 'lf_sync_people', $plugin_admin, 'sync_people' ); //phpcs:ignore. // Example of how to run a sync locally on demand. - $this->loader->add_action( 'init', $plugin_admin, 'sync_presentations' ); //phpcs:ignore. + // $this->loader->add_action( 'init', $plugin_admin, 'sync_presentations' ); //phpcs:ignore. // $this->loader->add_action( 'init', $plugin_admin, 'sync_people' ); //phpcs:ignore. $this->loader->add_filter( 'dashboard_glance_items', $plugin_admin, 'custom_glance_items', 10, 1 );