[wp-trac] [WordPress Trac] #19055: Post type check on top of wp-admin/edit.php enhancement
WordPress Trac
wp-trac at lists.automattic.com
Thu Oct 27 19:55:00 UTC 2011
#19055: Post type check on top of wp-admin/edit.php enhancement
------------------------------------+------------------------------
Reporter: markoheijnen | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version:
Severity: normal | Resolution:
Keywords: dev-feedback has-patch |
------------------------------------+------------------------------
Comment (by kawauso):
Replying to [comment:6 CoenJacobs]:
> Replying to [comment:5 kawauso]:
> > Attached a patch that condenses it down to just
> > {{{
> > $post_type = isset( $_GET['post_type'] ) ? $_GET['post_type'] :
'post';
> > }}}
> > and checks that instead.
> That still defaults to the post type: post. That is exactly what we're
trying to get away from.
It defaults to it but it's still subject to the same in_array() check as
in your proposed fix, so still hits wp_die() if show_ui is false.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19055#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list