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

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

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 ] -->