From e3c900ed807c6cc92a848f31a0e4d4709bf97885 Mon Sep 17 00:00:00 2001 From: Joe McGill Date: Mon, 23 Dec 2024 08:08:21 -0600 Subject: [PATCH] Cache empty notoptions --- src/wp-includes/option.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/option.php b/src/wp-includes/option.php index 638c77a3b33d3..4b26504b76356 100644 --- a/src/wp-includes/option.php +++ b/src/wp-includes/option.php @@ -178,6 +178,7 @@ function get_option( $option, $default_value = false ) { if ( ! is_array( $notoptions ) ) { $notoptions = array(); + wp_cache_set( 'notoptions', $notoptions, 'options' ); } if ( isset( $notoptions[ $option ] ) ) {