[wp-trac] [WordPress Trac] #27881: Compatibility with Hack

WordPress Trac noreply at wordpress.org
Mon May 19 05:03:47 UTC 2014


#27881: Compatibility with Hack
----------------------------+--------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  4.0
Component:  General         |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:
----------------------------+--------------------

Comment (by wonderboymusic):

 In [changeset:"28500"]:
 {{{
 #!CommitTicketReference repository="" revision="28500"
 Fix some `hackificator` odds and ends in `wp-admin`:

 * `wp-activate.php` and `wp-admin/themes.php` don't need the closing PHP
 tag
 * Switch single quotes for HTML attribute values to double in a few places
 * Convert `include_once file.php` syntax to `include_once( 'file.php' )`
 * Add access modifiers to methods/members in: `_WP_List_Table_Compat`,
 `Walker_Nav_Menu_Edit`, `Walker_Nav_Menu_Checklist`, `WP_Screen`,
 `Walker_Category_Checklist`
 * `edit_user()` doesn't need to import the `$wpdb` global
 * `wp_list_widgets()` doesn't need to import the `$sidebars_widgets`
 global
 * switch/endswitch syntax is not supported in Hack
 * A `<ul>` in `wp-admin/users.php` is unclosed

 See #27881.
 }}}

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


More information about the wp-trac mailing list