Make WordPress Core


Ignore:
Timestamp:
07/10/2020 05:58:49 AM (4 years ago)
Author:
whyisjake
Message:

Menus: Ensure that category menus with special characters can be updated.

Slashes and HTML encoding could cause some menus not to be updated.

Fixes #48011.

Props zaheerahmad, achyuthajoy, desrosj, pento, SergeyBiryukov, donmhico, audrasjb, birgire, mikeschroder.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/nav-menu.php

    r48109 r48416  
    493493        }
    494494
    495         if ( $args['menu-item-title'] == $original_title ) {
     495        if ( wp_unslash( $args['menu-item-title'] ) == wp_specialchars_decode( $original_title ) ) {
    496496            $args['menu-item-title'] = '';
    497497        }
Note: See TracChangeset for help on using the changeset viewer.