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/list-table.php

    r25254 r28500  
    8585 */
    8686class _WP_List_Table_Compat extends WP_List_Table {
    87     var $_screen;
    88     var $_columns;
     87    public $_screen;
     88    public $_columns;
    8989
    90     function _WP_List_Table_Compat( $screen, $columns = array() ) {
     90    public function _WP_List_Table_Compat( $screen, $columns = array() ) {
    9191        if ( is_string( $screen ) )
    9292            $screen = convert_to_screen( $screen );
     
    100100    }
    101101
    102     function get_column_info() {
     102    public function get_column_info() {
    103103        $columns = get_column_headers( $this->_screen );
    104104        $hidden = get_hidden_columns( $this->_screen );
     
    108108    }
    109109
    110     function get_columns() {
     110    public function get_columns() {
    111111        return $this->_columns;
    112112    }
Note: See TracChangeset for help on using the changeset viewer.