[wp-trac] [WordPress Trac] #13229: Search Custom Post Type in Media Library

WordPress Trac wp-trac at lists.automattic.com
Mon May 24 21:05:08 UTC 2010


#13229: Search Custom Post Type in Media Library
-------------------------+--------------------------------------------------
 Reporter:  lucaskeiser  |       Owner:           
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  3.0      
Component:  Post Types   |     Version:  3.0      
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------

Comment(by ryan):

 I don't think you need to check _builtin, just public = true and then skip
 over attachment in the loop. That way the special casing for post and page
 can be removed.  Using the not_found label is good. I forgot that was
 added.  In situations where we'd have to create a one-off label, I
 wouldn't bother.  not_found fits this situation though.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13229#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list