Bladeren bron

Default featured images to false and leverage theme mod values that have already been set (#7567)

* Default featured images to false and leverage theme mod values that have already been set
* defaulting all options to be available, defaulting page display to false (or previous theme mod value)

Co-authored-by: Aurorum  <43215253+Aurorum@users.noreply.github.com>
Jason Crist 1 jaar geleden
bovenliggende
commit
b5de7d829f
1 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  1. 4 1
      varia/functions.php

+ 4 - 1
varia/functions.php

@@ -225,7 +225,7 @@ if ( ! function_exists( 'varia_setup' ) ) :
 				'enable_theme_default' => true,
 			)
 		);
-		
+
 		// Add support for Content Options.
 		add_theme_support( 'jetpack-content-options', array(
 			'blog-display' => 'content',
@@ -233,7 +233,10 @@ if ( ! function_exists( 'varia_setup' ) ) :
 				'archive'         => true,
 				'archive-default' => true,
 				'post'            => true,
+				'post-default'    => true,
 				'page'            => true,
+				//featured images on pages boolean was previously managed by Varia rather than jetpack.  If that value has been set default to that.
+				'page-default'    => get_theme_mod( 'show_featured_image_on_pages', false ),
 			),
 		) );
 	}