use home_url('/') instead of bloginfo('url').
This commit is contained in:
@ -117,14 +117,14 @@ add_action('widgets_init', 'cbsonline_widgets_init');
|
||||
|
||||
// tweak bogo plugin
|
||||
// - disable flags
|
||||
add_filter('bogo_use_flags', 'bogo_use_flags_false');
|
||||
function bogo_use_flags_false()
|
||||
add_filter('bogo_use_flags', 'cbsonline_bogo_use_flags_false');
|
||||
function cbsonline_bogo_use_flags_false()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// - remove ' (United States)' strings from en_US language
|
||||
add_filter('bogo_language_switcher', 'replace_bogo_text');
|
||||
function replace_bogo_text($output)
|
||||
add_filter('bogo_language_switcher', 'cbsonline_replace_bogo_text');
|
||||
function cbsonline_replace_bogo_text($output)
|
||||
{
|
||||
return str_replace(' (United States)', '', $output);
|
||||
}
|
||||
|
Reference in New Issue
Block a user