Ticket #9718: use-trailingslashit.diff
| File use-trailingslashit.diff, 2.5 KB (added by zeo, 4 years ago) |
|---|
-
wp-includes/general-template.php
118 118 if ( '' != locate_template(array('searchform.php'), true) ) 119 119 return; 120 120 121 $form = '<form role="search" method="get" id="searchform" action="' . get_option('home') . '/" >121 $form = '<form role="search" method="get" id="searchform" action="' . trailingslashit(get_option('home')) . '" > 122 122 <div><label class="hidden" for="s">' . __('Search for:') . '</label> 123 123 <input type="text" value="' . attr(apply_filters('the_search_query', get_search_query())) . '" name="s" id="s" /> 124 124 <input type="submit" id="searchsubmit" value="'.attr(__('Search')).'" /> -
wp-content/themes/classic/sidebar.php
15 15 <?php wp_list_categories('title_li=' . __('Categories:')); ?> 16 16 <li id="search"> 17 17 <label for="s"><?php _e('Search:'); ?></label> 18 <form id="searchform" method="get" action="<?php bloginfo('home'); ?>">18 <form id="searchform" method="get" action="<?php echo trailingslashit(bloginfo('url')); ?>"> 19 19 <div> 20 20 <input type="text" name="s" id="s" size="15" /><br /> 21 21 <input type="submit" value="<?php _e('Search'); ?>" /> -
wp-content/themes/classic/header.php
24 24 25 25 <body <?php body_class(); ?>> 26 26 <div id="rap"> 27 <h1 id="header"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>27 <h1 id="header"><a href="<?php echo trailingslashit(bloginfo('url')); ?>"><?php bloginfo('name'); ?></a></h1> 28 28 29 29 <div id="content"> 30 30 <!-- end header --> -
wp-content/themes/default/header.php
38 38 39 39 <div id="header" role="banner"> 40 40 <div id="headerimg"> 41 <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>41 <h1><a href="<?php echo trailingslashit(get_option('home')); ?>"><?php bloginfo('name'); ?></a></h1> 42 42 <div class="description"><?php bloginfo('description'); ?></div> 43 43 </div> 44 44 </div>