Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#34271 closed defect (bug) (invalid)

Searching for a pages returns posts.

Reported by: danmicamediacom's profile dan@… Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.3.1
Component: Query Keywords:
Focuses: administration Cc:

Description

I have a page wholesale title is "Wholesale home page"

I go over to the pages tab, I can see that page on page 2 of the pages list. I search for "wholesale" in the search box, press the "search pages" button..

and that page whose title is "Wholesale home page" does not come up. In fact the results that come up are all POSTS.

Change History (4)

#1 @johnbillion
10 years ago

  • Keywords reporter-feedback added

Thanks for the ticket, Dan.

Can you reproduce this issue with all of your plugins deactivated and one of WordPress' default themes (such as Twenty Fifteen) enabled?

#2 @dan@…
10 years ago

Seems like it's an issue with the theme. So you can close the ticket. Just so I understand. I have a custom search.php page in my theme. I didn't think that would effect admin search. But it appears to do so. Am i correct in this assumption.

Then I would like to make this a feature question. Admin search should not be effected by your themes search. Admin search should do what it says it's going to do.

#3 @johnbillion
10 years ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Thanks for the feedback.

A custom search.php in your theme shouldn't affect the admin area because this file doesn't get loaded in the admin area. Your theme's functions.php file does load in the admin area though, so I suspect this may be the cause of your problem if it's making unbounded changes to the search results query.

#4 @SergeyBiryukov
10 years ago

  • Component changed from General to Query
Note: See TracTickets for help on using tickets.