Permalink
Browse files

misc cleanup

  • Loading branch information...
1 parent 725bf5d commit 4227c51c11d4c48abea9711463a5a6bc9a1448f1 @alexkingorg alexkingorg committed Nov 1, 2010
Showing with 5 additions and 4 deletions.
  1. +1 −1 error/exit.php
  2. +3 −2 footer/home.php
  3. +1 −1 posts/search.php
View
@@ -20,5 +20,5 @@
?>
<html>
-<body><?php echo htmlspecialchars($str); ?></body>
+<body><?php echo esc_html($str); ?></body>
</html>
View
@@ -21,11 +21,12 @@
cfct_form('search');
?>
-<hr />
+<hr />
+
<h2 id="pages" class="table-title"><?php _e('Pages'); ?></h2>
<ul class="disclosure table group">
- <?php wp_list_pages('title_li=&depth=1&child_of='.$parent); ?>
+ <?php wp_list_pages('title_li=&depth=1&child_of=0') ?>
</ul>
<hr />
View
@@ -22,7 +22,7 @@
$s = get_query_var('s');
-$search_title = '<a href="'.get_bloginfo('url').'/?s='.attribute_escape($s).'" title="">'.htmlspecialchars($s).'</a>';
+$search_title = '<a href="'.esc_attr(site_url('?s='.$s).'">'.esc_html($s).'</a>';
?>

0 comments on commit 4227c51

Please sign in to comment.