diff --git a/inc/options/class-wpseo-options.php b/inc/options/class-wpseo-options.php index 68330227a56..b3380307395 100644 --- a/inc/options/class-wpseo-options.php +++ b/inc/options/class-wpseo-options.php @@ -225,6 +225,9 @@ public static function get_option( $option_name ) { * @return mixed|null Returns value if found, $default if not. */ public static function get( $key, $default = null ) { + if ( ! self::$backfill ) { + self::get_instance(); + } self::$backfill->remove_hooks(); $option = self::get_all(); @@ -459,6 +462,9 @@ public static function save_option( $wpseo_options_group_name, $option_name, $op * @return array The lookup table. */ private static function get_lookup_table() { + if ( ! self::$backfill ) { + self::get_instance(); + } $lookup_table = array(); self::$backfill->remove_hooks();