use home_url('/') instead of bloginfo('url').

This commit is contained in:
CBS Information System 2020-11-01 18:47:16 +09:00
parent 248cc6bdd9
commit 0c8b959a3e
4 changed files with 8 additions and 8 deletions

View File

@ -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);
}

View File

@ -51,7 +51,7 @@ biz_vektor_get_theme_options(); ?>
<?php endif; ?>
</div>
<form role="search" method="get" id="searchform" class="searchform" action="<?php bloginfo('url'); ?>">
<form role="search" method="get" id="searchform" class="searchform" action="<?php echo esc_url(home_url('/')); ?>">
<div>
<input type="submit" id="searchsubmit" value="Search" />
<label class="screen-reader-text" for="s">検索:</label>

View File

@ -48,10 +48,10 @@ if ($postTopUrl) {
<?php $locale = get_locale();
if ('en_US' == $locale ) { ?>
<!--英語表示の時-->
<p class="entryListTopList"><a href="<?php bloginfo('url'); ?>/announcements/">→View ALL</a></p>
<p class="entryListTopList"><a href="<?php echo esc_url(home_url('/')); ?>announcements/">→View ALL</a></p>
<?php } else { ?>
<!--日本語表示の時 -->
<p class="entryListTopList"><a href="<?php bloginfo('url'); ?>/announcements/">→お知らせ一覧</a></p>
<p class="entryListTopList"><a href="<?php echo esc_url(home_url('/')); ?>announcements/">→お知らせ一覧</a></p>
<?php } ?>
</div><!-- [ /#topBlog ] -->

View File

@ -6,7 +6,7 @@
<div id="content" class="content wide">
<div class="error404">
<form role="search" method="get" id="searchform" class="searchform" action="<?php bloginfo('url'); ?>">
<form role="search" method="get" id="searchform" class="searchform" action="<?php echo esc_url(home_url('/')); ?>">
<div>
<input type="submit" id="searchsubmit" value="Search" />
<label class="screen-reader-text" for="s">検索:</label>