[wp-trac] [WordPress Trac] #35570: Search for Post/Pages isn't working

WordPress Trac noreply at wordpress.org
Mon Jan 25 08:00:58 UTC 2016


#35570: Search for Post/Pages isn't working
-------------------------------------+------------------------------
 Reporter:  mumbomedia               |       Owner:
     Type:  feature request          |      Status:  closed
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Query                    |     Version:  4.4.1
 Severity:  normal                   |  Resolution:  worksforme
 Keywords:  reporter-feedback close  |     Focuses:  administration
-------------------------------------+------------------------------
Changes (by mumbomedia):

 * keywords:  reporter-feedback => reporter-feedback close
 * status:  new => closed
 * resolution:   => worksforme
 * type:  defect (bug) => feature request


Comment:

 Replying to [comment:1 SergeyBiryukov]:
 > Hi @mumbomedia, welcome to Trac!
 >
 > I could not reproduce the issue on a clean install. Does it still happen
 with all plugins disabled and a default theme (Twenty Sixteen or Twenty
 Fifteen) activated?

 -No, I did the changes you've suggested step by step.
 1. I deactivated all plugins -> Result: No changes
 2. I switched to default theme Twenty Fifteen -> Result: Search is working
 3. I switched back to my parents theme -> Result: Search is working

 Thanks to you I found the code that is causing it.
 I have deactivate the search in the functions.php of my child theme,
 because I don't want to use the default search on the frontend (users
 view). But on backend (admins view) the search should work as expected. So
 I have to determine if the request cames either from front- or backend. I
 will look in the codex if there is a function which tells me if I am on
 front- or backend.

 If your have any idea how to solved this feel free to let me know it.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35570#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list