diff --git a/packages/block-library/src/calendar/index.php b/packages/block-library/src/calendar/index.php index c6ba095a926df..3e0e48c65b28a 100644 --- a/packages/block-library/src/calendar/index.php +++ b/packages/block-library/src/calendar/index.php @@ -85,7 +85,7 @@ function block_core_calendar_has_published_posts() { } // On single sites we try our own cached option first. - $has_published_posts = get_option( 'gutenberg_calendar_block_has_published_posts', null ); + $has_published_posts = get_option( 'wp_calendar_block_has_published_posts', null ); if ( null !== $has_published_posts ) { return (bool) $has_published_posts; } @@ -103,7 +103,7 @@ function block_core_calendar_has_published_posts() { function block_core_calendar_update_has_published_posts() { global $wpdb; $has_published_posts = (bool) $wpdb->get_var( "SELECT 1 as test FROM {$wpdb->posts} WHERE post_type = 'post' AND post_status = 'publish' LIMIT 1" ); - update_option( 'gutenberg_calendar_block_has_published_posts', $has_published_posts ); + update_option( 'wp_calendar_block_has_published_posts', $has_published_posts ); return $has_published_posts; }