[wp-trac] [WordPress Trac] #18785: Modernize screen functions
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 24 07:08:17 UTC 2011
#18785: Modernize screen functions
------------------------------+-----------------------
Reporter: nacin | Owner: nacin
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 3.3
Component: Administration | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch commit |
------------------------------+-----------------------
Comment (by nacin):
[attachment:18785.diff] is much easier to examine.
* Replaces the innards of convert_to_screen() with WP_Screen::get(
$hook_name )->set_current_screen().
* Removes the static-ness of help_tabs, options, help_sidebar. This
required a simple find-replace which makes up for a good portion of the
diff.
* Introduces WP_Screen::get() and WP_Screen::set_current_screen(), which
is the original constructor split into two, as well as some fairy dust to
correct post_type and taxonomy values.
* Replaces a mess of code in wp-admin/post.php with some elegance.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18785#comment:66>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list