[wp-trac] [WordPress Trac] #19080: CPT identifier class name missing from #icon-edit DIV

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 31 21:14:19 UTC 2011


#19080: CPT identifier class name missing from #icon-edit DIV
------------------------------------+-----------------------
 Reporter:  fjarrett                |       Owner:  nacin
     Type:  defect (bug)            |      Status:  accepted
 Priority:  normal                  |   Milestone:  3.3
Component:  UI                      |     Version:  3.3
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+-----------------------

Comment (by nacin):

 Further chatter resulted in 19080.3.diff. We can assume with few or no
 side effects that if post_type_exists( $hook_name ), then it's post.php
 /post-new.php.

 [attachment:19080.4.diff] fixes some copy/paste typos. Passes the existing
 unit tests. Works for meta boxes. Establishes a consistency where $taxnow
 and $typenow is set based on the existence of the tax and type. There's a
 chance that a post type won't be registered until admin_init, but
 set_current_screen() isn't much farther down in admin.php and it'll be
 corrected then. If this causes a problem then sanitize_key() can be
 restored.

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


More information about the wp-trac mailing list