[wp-trac] [WordPress Trac] #19828: allowing to insert help tab in specific position

WordPress Trac noreply at wordpress.org
Sat Sep 5 10:58:05 UTC 2015


#19828: allowing to insert help tab in specific position
---------------------------------------------+-------------------------
 Reporter:  tfnab                            |       Owner:  swissspidy
     Type:  enhancement                      |      Status:  assigned
 Priority:  normal                           |   Milestone:  4.4
Component:  Administration                   |     Version:  3.3.1
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch good-first-bug commit  |     Focuses:
---------------------------------------------+-------------------------
Changes (by swissspidy):

 * keywords:  has-patch good-first-bug needs-unit-tests => has-patch good-
     first-bug commit


Comment:

 What [attachment:19828.2.diff 19828.2.diff] does:

 * Makes the `_sort_help_tabs` callback method protected, to match other
 sort callbacks in core.
 * Uses `uasort` to preserve the array keys
 * Adjusts the `test_get_help_tabs` unit test
 * Adds a new `test_help_tabs_priority` test.

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


More information about the wp-trac mailing list