Browse files

Use home_url() instead of site_url()

  • Loading branch information...
1 parent 178b520 commit 6b75b39682600c79242afb155395bb7e7baa7e77 @justintadlock committed Aug 24, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 404.php
  2. +1 −1 functions.php
View
2 404.php
@@ -41,7 +41,7 @@
<div class="entry-content">
<p>
- <?php printf( __( 'You tried going to %1$s, and it doesn\'t exist. All is not lost! You can search for what you\'re looking for.', 'news' ), '<code>' . site_url( esc_url( $_SERVER['REQUEST_URI'] ) ) . '</code>' ); ?>
+ <?php printf( __( 'You tried going to %1$s, and it doesn\'t exist. All is not lost! You can search for what you\'re looking for.', 'news' ), '<code>' . home_url( esc_url( $_SERVER['REQUEST_URI'] ) ) . '</code>' ); ?>
</p>
<?php get_search_form(); ?>
View
2 functions.php
@@ -177,7 +177,7 @@ function news_enqueue_script() {
function news_nav_menu_add_items( $menu, $args ) {
if ( 'secondary' == $args->theme_location ) {
- $links = '<li class="loginout">' . wp_loginout( site_url( esc_url( $_SERVER['REQUEST_URI'] ) ), false ) . '</li>';
+ $links = '<li class="loginout">' . wp_loginout( home_url( esc_url( $_SERVER['REQUEST_URI'] ) ), false ) . '</li>';
$menu = str_replace( '</ul></div>', $links . '</ul></div>', $menu );
}

0 comments on commit 6b75b39

Please sign in to comment.