Changeset 1245 for trunk/wp-blog-header.php
- Timestamp:
- 05/09/2004 05:47:02 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-blog-header.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-blog-header.php
r1236 r1245 516 516 $single = 1; 517 517 } 518 if ($s && empty($paged)) { // If they were doing a search and got one result 519 header('Location: ' . get_permalink($posts[0]->ID)); 520 } 518 if ($s && empty($paged)) { // If they were doing a search and got one result 519 if (!strstr($_SERVER['PHP_SELF'], 'wp-admin')) // And not in admin section 520 header('Location: ' . get_permalink($posts[0]->ID)); 521 } 521 522 } 522 523 } // end if posts.
Note: See TracChangeset
for help on using the changeset viewer.