Updated all instances of home_url() with esc_url()
This commit is contained in:
@@ -227,7 +227,7 @@ function roots_nice_search_redirect() {
|
||||
|
||||
$search_base = $wp_rewrite->search_base;
|
||||
if (is_search() && !is_admin() && strpos($_SERVER['REQUEST_URI'], "/{$search_base}/") === false) {
|
||||
wp_redirect(home_url("/{$search_base}/" . urlencode(get_query_var('s'))));
|
||||
wp_redirect(esc_url(home_url("/{$search_base}/" . urlencode(get_query_var('s')))));
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ class Roots_Vcard_Widget extends WP_Widget {
|
||||
}
|
||||
?>
|
||||
<p class="vcard">
|
||||
<a class="fn org url" href="<?php echo home_url('/'); ?>"><?php bloginfo('name'); ?></a><br>
|
||||
<a class="fn org url" href="<?php echo esc_url(home_url('/')); ?>"><?php bloginfo('name'); ?></a><br>
|
||||
<span class="adr">
|
||||
<span class="street-address"><?php echo $instance['street_address']; ?></span><br>
|
||||
<span class="locality"><?php echo $instance['locality']; ?></span>,
|
||||
|
||||
Reference in New Issue
Block a user