Make WordPress Core


Ignore:
Timestamp:
05/19/2014 05:03:44 AM (11 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r28411 r28500  
    3636     * @param array  $args   An array of arguments. @see wp_terms_checklist()
    3737     */
    38     function start_lvl( &$output, $depth = 0, $args = array() ) {
     38    public function start_lvl( &$output, $depth = 0, $args = array() ) {
    3939        $indent = str_repeat("\t", $depth);
    4040        $output .= "$indent<ul class='children'>\n";
     
    5252     * @param array  $args   An array of arguments. @see wp_terms_checklist()
    5353     */
    54     function end_lvl( &$output, $depth = 0, $args = array() ) {
     54    public function end_lvl( &$output, $depth = 0, $args = array() ) {
    5555        $indent = str_repeat("\t", $depth);
    5656        $output .= "$indent</ul>\n";
     
    7070     * @param int    $id       ID of the current term.
    7171     */
    72     function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
     72    public function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
    7373        if ( empty( $args['taxonomy'] ) ) {
    7474            $taxonomy = 'category';
     
    107107     * @param array  $args     An array of arguments. @see wp_terms_checklist()
    108108     */
    109     function end_el( &$output, $category, $depth = 0, $args = array() ) {
     109    public function end_el( &$output, $category, $depth = 0, $args = array() ) {
    110110        $output .= "</li>\n";
    111111    }
Note: See TracChangeset for help on using the changeset viewer.