Default Themes use Different Search Techniques – Why?
-
I have found two different searches between the Classic Theme and the Default Theme. What’s the difference and why are they different? Is one “better” than the other?
Classic:
<form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<div>
<input type="text" name="s" id="s" size="15" /><br />
<input type="submit" name="submit" value="<?php _e('Search'); ?>" />
</div>
</form>Default:
<form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<div><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
<input type="submit" id="searchsubmit" name="Submit" value="Go!" />
</div>
</form>
- The topic ‘Default Themes use Different Search Techniques – Why?’ is closed to new replies.