Skip to content

Commit

Permalink
Cache empty notoptions
Browse files Browse the repository at this point in the history
  • Loading branch information
joemcgill committed Dec 23, 2024
1 parent 56f63ff commit e3c900e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wp-includes/option.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ] ) ) {
Expand Down

0 comments on commit e3c900e

Please sign in to comment.