From b2b2593eebe32cd6a2deeca1aad1038a1b7dc049 Mon Sep 17 00:00:00 2001 From: prcdevgitbot Date: Wed, 9 Oct 2024 22:20:21 +0000 Subject: [PATCH] See https://github.com/pewresearch/prc-platform/commit/294fc1580eac43d2f7a95e17885c1527fb8bd63e from refs/tags/v1.0.18 --- includes/post-report-package/class-post-report-package.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/post-report-package/class-post-report-package.php b/includes/post-report-package/class-post-report-package.php index 0405c2d..dbe13a1 100644 --- a/includes/post-report-package/class-post-report-package.php +++ b/includes/post-report-package/class-post-report-package.php @@ -90,8 +90,8 @@ public function init($loader = null) { $loader->add_filter( 'prc_api_endpoints', $this, 'register_rest_endpoint' ); $loader->add_action( 'enqueue_block_editor_assets', $this, 'enqueue_panel_assets' ); $loader->add_action( 'prc_platform_on_incremental_save', $this, 'set_child_posts', 10, 1 ); - $loader->add_action( 'prc_platform_on_update', $this, 'update_children', 10, 1 ); - $loader->add_action( 'prc_platform_on_update', $this, 'clear_toc_cache_on_update', 100, 1 ); + $loader->add_action( 'prc_platform_on_rest_update', $this, 'update_children', 10, 1 ); + $loader->add_action( 'prc_platform_on_rest_update', $this, 'clear_toc_cache_on_update', 100, 1 ); $loader->add_filter( 'rest_post_query', $this, 'hide_back_chapter_posts_restfully', 10, 2 ); $loader->add_filter( 'the_title', $this, 'indicate_back_chapter_post', 10, 2 ); // $this->loader->add_filter( 'wpseo_disable_adjacent_rel_links', $post_report_package, 'disable_yoast_adjacent_rel_links_on_report_package' );