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/nav-menu.php

    r28300 r28500  
    2020     * @param array  $args   Not used.
    2121     */
    22     function start_lvl( &$output, $depth = 0, $args = array() ) {}
     22    public function start_lvl( &$output, $depth = 0, $args = array() ) {}
    2323
    2424    /**
     
    3333     * @param array  $args   Not used.
    3434     */
    35     function end_lvl( &$output, $depth = 0, $args = array() ) {}
     35    public function end_lvl( &$output, $depth = 0, $args = array() ) {}
    3636
    3737    /**
     
    4747     * @param int    $id     Not used.
    4848     */
    49     function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
     49    public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
    5050        global $_wp_nav_menu_max_depth;
    5151        $_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth;
     
    236236 */
    237237class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu {
    238     function __construct( $fields = false ) {
     238    public function __construct( $fields = false ) {
    239239        if ( $fields ) {
    240240            $this->db_fields = $fields;
     
    253253     * @param array  $args   Not used.
    254254     */
    255     function start_lvl( &$output, $depth = 0, $args = array() ) {
     255    public function start_lvl( &$output, $depth = 0, $args = array() ) {
    256256        $indent = str_repeat( "\t", $depth );
    257257        $output .= "\n$indent<ul class='children'>\n";
     
    269269     * @param array  $args   Not used.
    270270     */
    271     function end_lvl( &$output, $depth = 0, $args = array() ) {
     271    public function end_lvl( &$output, $depth = 0, $args = array() ) {
    272272        $indent = str_repeat( "\t", $depth );
    273273        $output .= "\n$indent</ul>";
     
    287287     * @param int    $id     Not used.
    288288     */
    289     function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
     289    public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
    290290        global $_nav_menu_placeholder;
    291291
Note: See TracChangeset for help on using the changeset viewer.