WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/31/2015 11:51:09 AM (5 years ago)
Author:
afercia
Message:

Admin: Restore the "Show advanced menu properties" checkboxes IDs.

These checkboxes are used on the Menus screen options and the Customizer Menus options.
Their IDs were removed in [34991] but they're needed to get the checkboxes to be saved
via AJAX. Also, avoids a useless AJAX call.

Fixes #35112 for trunk.

File:
1 edited

Legend:

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

    r36089 r36137  
    999999         *
    10001000         * @since 4.4.0
    1001          * 
     1001         *
    10021002         * @param bool      $show_button Whether to show Screen Options submit button.
    10031003         *                               Default false.
     
    10881088            $id = "$column-hide";
    10891089            echo '<label>';
    1090             echo '<input class="hide-column-tog" name="' . $id . '" type="checkbox" value="' . $column . '"' . checked( ! in_array( $column, $hidden ), true, false ) . ' />';
     1090            echo '<input class="hide-column-tog" name="' . $id . '" type="checkbox" id="' . $id . '" value="' . $column . '"' . checked( ! in_array( $column, $hidden ), true, false ) . ' />';
    10911091            echo "$title</label>\n";
    10921092        }
Note: See TracChangeset for help on using the changeset viewer.