Browse Source

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 years ago
parent
commit
c8ed0dc498
1 changed files with 1 additions and 1 deletions
  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() {
 function altofocus_change_featured_content_default_settings() {
 	set_theme_mod( 'featured-content[show-all]', 1 );
 	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' );
 add_action( 'after_setup_theme', 'altofocus_change_featured_content_default_settings' );