Make WordPress Core


Ignore:
Timestamp:
02/22/2016 12:13:53 AM (9 years ago)
Author:
westonruter
Message:

Customize: Fix previewing and updating of nav menu items containing slashed/slashable characters.

Prevents slashes from being added when a user without unfiltered_html previews a nav menu item containing an apostrophe or some other slashable character, and prevents the loss of an intentional slash (e.g. "\o/") when saving a nav menu item, regardless of capability.

Fixes #35869.

File:
1 edited

Legend:

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

    r36496 r36608  
    344344/**
    345345 * Save the properties of a menu item or create a new one.
     346 *
     347 * The menu-item-title, menu-item-description, and menu-item-attr-title are expected
     348 * to be pre-slashed since they are passed directly into <code>wp_insert_post()</code>.
    346349 *
    347350 * @since 3.0.0
Note: See TracChangeset for help on using the changeset viewer.