WordPress.org

Make WordPress Core

Ticket #13198: twentyten-searchform-add-trailingslash-home_url-path.patch

File twentyten-searchform-add-trailingslash-home_url-path.patch, 747 bytes (added by zeo, 8 years ago)

Add trailing slash to home_url path in 2010's searchform.php form

  • wp-content/themes/twentyten/searchform.php

     
    1111 */
    1212?>
    1313
    14     <form id="searchform" name="searchform" method="get" action="<?php echo home_url(); ?>">
     14    <form id="searchform" name="searchform" method="get" action="<?php echo home_url( '/' ) ?>">
    1515                <div>
    1616                        <label for="s"><?php _e( 'Search', 'twentyten' ); ?></label>
    1717                        <input type="text" id="s" name="s" />
    1818                        <input type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'twentyten' ); ?>" />
    1919                </div>
    20     </form>
    21  No newline at end of file
     20    </form>