Update theme-settings.php

If someone tries to override in child temp
This commit is contained in:
Oral UNAL 2017-08-05 00:39:22 +03:00 committed by GitHub
parent 9baf0b29fb
commit c5a142b762
1 changed files with 21 additions and 18 deletions

View File

@ -5,7 +5,9 @@
* @package understrap * @package understrap
* *
*/ */
function setup_theme_default_settings() {
if ( ! function_exists( 'setup_theme_default_settings' ) ) :
function setup_theme_default_settings() {
// check if settings are set, if not set defaults. // check if settings are set, if not set defaults.
// Caution: DO NOT check existence using === always check with == . // Caution: DO NOT check existence using === always check with == .
@ -26,4 +28,5 @@ function setup_theme_default_settings() {
if ( '' == $understrap_container_type ) { if ( '' == $understrap_container_type ) {
set_theme_mod( 'understrap_container_type', 'container' ); set_theme_mod( 'understrap_container_type', 'container' );
} }
} }
endif;