[wp-trac] [WordPress Trac] #32708: Customizer Menus: add hooks to the WP_Customize_Nav_Menus class so it can be extended

WordPress Trac noreply at wordpress.org
Wed Jul 22 19:05:04 UTC 2015


#32708: Customizer Menus: add hooks to the WP_Customize_Nav_Menus class so it can
be extended
-------------------------------------+---------------------------
 Reporter:  imath                    |       Owner:  valendesigns
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.3
Component:  Customize                |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+---------------------------

Comment (by westonruter):

 In [attachment:32708.4.diff]:

 * Flatten available_item_types() return array; normalize variable use for
 'type' vs 'object'
 * Also prevent objects of different types with the same name from
 colliding
 * Add assertion for setting value's `type_label` property
 * Use non-static call to available_item_types; supply missing return tag,
 remove unnecessary (array) fix coding standards
 * Add `@since` tags and some other missing PhpDoc tags.
 * Clean whitespace
 * Use strict equality operators

 See diff of additional changes: https://github.com/xwp/wordpress-
 develop/compare/8dbba45...7781f1d

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


More information about the wp-trac mailing list