fix: missing theme config (#269)

pull/287/head
Seaton Jiang 2020-08-09 14:36:52 +08:00
parent 19cfd708a4
commit f14d7aeafa
No known key found for this signature in database
GPG Key ID: FC3D886E252D902B
2 changed files with 1 additions and 23 deletions

View File

@ -71,18 +71,7 @@ if (!function_exists('kratos_option')):
function kratos_option($name, $default = false)
{
$option_name = '';
// Gets option name as defined in the theme
if (function_exists('optionsframework_option_name')) {
$option_name = optionsframework_option_name();
}
// Fallback option name
if ('' == $option_name) {
$option_name = get_option('stylesheet');
$option_name = preg_replace("/\W/", "_", strtolower($option_name));
}
$option_name = 'kratos';
// Get option settings from database
$options = get_option($option_name);

View File

@ -26,17 +26,6 @@ class Options_Framework {
$name = 'kratos';
// Gets option name as defined in the theme
if ( function_exists( 'optionsframework_option_name' ) ) {
$name = optionsframework_option_name();
}
// Fallback
if ( '' == $name ) {
$name = get_option( 'stylesheet' );
$name = preg_replace( "/\W/", "_", strtolower( $name ) );
}
return apply_filters( 'options_framework_option_name', $name );
}