[wp-trac] [WordPress Trac] #50885: Setting a pre_get_posts query post_type to array results in broken wp-admin filters

WordPress Trac noreply at wordpress.org
Tue Aug 11 01:27:01 UTC 2020


#50885: Setting a pre_get_posts query post_type to array results in broken wp-admin
filters
--------------------------+------------------------------
 Reporter:  matpratta     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  5.4.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  administration
--------------------------+------------------------------

Comment (by matpratta):

 Hello @SergeyBiryukov!

 Thanks for pointing e in the right direction with the link! I had figured
 out about using the `! is_admin()` part but didn't know about the latter
 part!

 Anyways, hope the report helps somehow since that "Array" on the URL feels
 really out of place :)

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


More information about the wp-trac mailing list