Ticket #1076 (closed defect (bug): fixed)

Opened 7 years ago

Last modified 5 years ago

is_seach logic in default theme which has search.php template

Reported by: MC_incubus Owned by: mdawaffe
Priority: normal Milestone: 2.1
Component: Template Version: 1.5
Severity: trivial Keywords: has-patch commit template
Cc:

Description

in the default 1.5 (kubrick) theme, in the archives.php template, there is this:

<?php /* If this is a search */ } elseif (is_search()) { ?>

<h2 class="pagetitle">Search Results</h2>

But because there is a search.php template, all is_search() true requests should go there, so this logic does nothing in archives.php

Hat tip to dmclark in #wordpress for finding this

Attachments

1076.diff Download (737 bytes) - added by mdawaffe 5 years ago.

Change History

  • Patch set to No
  • Keywords has-patch commit template added
  • Owner changed from anonymous to mdawaffe
  • Status changed from new to assigned
  • Milestone set to 2.1

Patched.

comment:3   ryan5 years ago

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [4166]) Remove is_search() check that will never be reached. fixes #1076

Note: See TracTickets for help on using tickets.