[wp-trac] [WordPress Trac] #13229: Search Custom Post Type in Media Library
WordPress Trac
wp-trac at lists.automattic.com
Tue May 4 08:23:19 UTC 2010
#13229: Search Custom Post Type in Media Library
----------------------------+-----------------------------------------------
Reporter: lucaskeiser | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Unassigned
Component: Administration | Version: 3.0
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
Changes (by markoheijnen):
* cc: markoheijnen (added)
Comment:
I did look at the code and was wondering why there are hard checks on if
it is an page or an post.
Files that need to be change
/wp-admin/includes/template.php find_posts_div line 3287 - 3290
/wp-admin/js/media.js line 34-38
/wp-admin/admin-ajax.php line 1256
I think the solution is to remove all the hard checks and work with an
filter.
Add an variable or an supports option to register_post_type.
Also the message 'No posts found.' should change so posts will be the name
of the post_type.
At admin-ajax you check if it allowed to do the action.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13229#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list