Make WordPress Core


Ignore:
Timestamp:
01/02/2016 03:33:15 AM (9 years ago)
Author:
dd32
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.

Merge [36137] to the 4.4 branch.
Props afercia.
Fixes #35112.

Location:
branches/4.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4

  • branches/4.4/src/wp-admin/includes/class-wp-screen.php

    r36104 r36145  
    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.