Selaa lähdekoodia

AltoFocus: set correct value for `featured-content[show-all]` option. (#5309)

The expected type of the option is a string, not an integer.
David Biňovec 3 vuotta sitten
vanhempi
commit
c8ed0dc498
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      altofocus/inc/customizer.php

+ 1 - 1
altofocus/inc/customizer.php

@@ -124,6 +124,6 @@ add_action( 'featured_content_default_settings', 'altofocus_featured_content_def
  */
 function altofocus_change_featured_content_default_settings() {
 	set_theme_mod( 'featured-content[show-all]', 1 );
-	update_option( 'featured-content[show-all]', 1 );
+	update_option( 'featured-content[show-all]', '1' );
 }
 add_action( 'after_setup_theme', 'altofocus_change_featured_content_default_settings' );