Permalink
Browse files

Fixed ‘undefined variable’ debug errors

  • Loading branch information...
splorp committed Mar 25, 2013
1 parent e13bf79 commit f0af6bff33c14873ff7b0705e5a018ffed618dde
Showing with 6 additions and 4 deletions.
  1. +1 −1 functions.php
  2. +3 −1 readme.md
  3. +2 −2 searchform.php
View
@@ -215,7 +215,7 @@ function register_my_menus() {
// Replace default post class verbosity
function simple_post_class() {
- $post = get_post($post_id);
+ global $post;
$c = array();
// hentry for hAtom compliance
View
@@ -64,7 +64,7 @@ The [HTML5 Shiv](https://github.com/afarkas/html5shiv) script is licensed under
## Version History
-### 0.2.1
+### 0.2.1 — The “Engorged” Release
+ Theme now requires WordPress 3.0 or later
+ Added support for archives page template
@@ -80,6 +80,8 @@ The [HTML5 Shiv](https://github.com/afarkas/html5shiv) script is licensed under
+ Replaced deprecated `wp_specialchars` function with `esc_html`
+ Replaced deprecated `automatic_feed_links` function with `add_theme_support`
+ Fixed ‘undefined index’ debug errors in theme admin functions
++ Fixed ‘undefined variable’ debug error in `simple_post_class` function
++ Fixed ‘undefined variable’ debug error in `searchform.php`
### 0.2.0 - The “Flavourless” Release
View
@@ -5,7 +5,7 @@
*/
?>
-<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
- <input type="text" value="<?php echo esc_html($s); ?>" name="s" />
+<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
+ <input type="text" value="<?php echo esc_html(the_search_query()); ?>" name="s" />
<input type="submit" value="Search" />
</form>

0 comments on commit f0af6bf

Please sign in to comment.