Make WordPress Core

Changeset 761


Ignore:
Timestamp:
01/12/2004 11:59:14 AM (22 years ago)
Author:
saxmatt
Message:

Don't redirect searchs if browsing paged results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-blog-header.php

    r760 r761  
    356356            $single = 1;
    357357        }
    358         if ($s) { // If they were doing a search and got one result
     358        if ($s && empty($paged)) { // If they were doing a search and got one result
    359359            header('Location: ' . get_permalink($posts[0]->ID));
    360360        }
Note: See TracChangeset for help on using the changeset viewer.