Opened 17 years ago
Closed 17 years ago
#10335 closed defect (bug) (fixed)
Kubrick's sidebar.php contains incorrect comments and "echo bloginfo"
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.9 | Priority: | normal |
| Severity: | normal | Version: | 2.9 |
| Component: | Template | Keywords: | has-patch commit |
| Focuses: | Cc: |
Description
Here is an extract from wp-content/themes/default/sidebar.php:
<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
<p>You have searched the
<a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a>
blog archives for <strong>'<?php the_search_query(); ?>'</strong>.
If you are unable to find anything in these search results,
you can try one of these links.</p>
Two errors within this:
- The comment at the start is wrong. Probably a copy-and-paste bug.
echo bloginfo()is used, which is redundant.bloginfo()already echoes the output -- if you don't want to echo it, useget_bloginfo()
Patch attached.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Fixes for sidebar.php