Remove automatically db updates by theme

Due to conflicts with wp.org theme guidelines
This commit is contained in:
koenemann 2017-11-27 09:13:21 +01:00
parent 464086a40b
commit 21aa3dc318
2 changed files with 0 additions and 34 deletions

View File

@ -88,8 +88,6 @@ if ( ! function_exists( 'understrap_setup' ) ) :
// Set up the WordPress Theme logo feature.
add_theme_support( 'custom-logo' );
// Check and setup theme default settings.
setup_theme_default_settings();
}
endif; // understrap_setup.
add_action( 'after_setup_theme', 'understrap_setup' );

View File

@ -1,32 +0,0 @@
<?php
/**
* Check and setup theme's default settings
*
* @package understrap
*
*/
if ( ! function_exists( 'understrap_setup_theme_default_settings' ) ) :
function understrap_setup_theme_default_settings() {
// check if settings are set, if not set defaults.
// Caution: DO NOT check existence using === always check with == .
// Latest blog posts style.
$understrap_posts_index_style = get_theme_mod( 'understrap_posts_index_style' );
if ( '' == $understrap_posts_index_style ) {
set_theme_mod( 'understrap_posts_index_style', 'default' );
}
// Sidebar position.
$understrap_sidebar_position = get_theme_mod( 'understrap_sidebar_position' );
if ( '' == $understrap_sidebar_position ) {
set_theme_mod( 'understrap_sidebar_position', 'right' );
}
// Container width.
$understrap_container_type = get_theme_mod( 'understrap_container_type' );
if ( '' == $understrap_container_type ) {
set_theme_mod( 'understrap_container_type', 'container' );
}
}
endif;