diff --git a/src/wp-includes/blocks/calendar.php b/src/wp-includes/blocks/calendar.php index 28eba2afcd361..b66f361b795b8 100644 --- a/src/wp-includes/blocks/calendar.php +++ b/src/wp-includes/blocks/calendar.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; }