WordPress.org

Make WordPress Core

Ticket #32812: 32812.diff

File 32812.diff, 726 bytes (added by westonruter, 6 years ago)
  • src/wp-includes/class-wp-customize-setting.php

    diff --git src/wp-includes/class-wp-customize-setting.php src/wp-includes/class-wp-customize-setting.php
    index 01b84c8..b154874 100644
    class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting { 
    14391439                        $menu_item_value[ $key ] = implode( ' ', array_map( 'sanitize_html_class', $value ) );
    14401440                }
    14411441
    1442                 foreach ( array( 'title', 'attr_title', 'description', 'original_title' ) as $key ) {
    1443                         // @todo Should esc_attr() the attr_title as well?
     1442                foreach ( array( 'description', 'original_title' ) as $key ) {
    14441443                        $menu_item_value[ $key ] = sanitize_text_field( $menu_item_value[ $key ] );
    14451444                }
    14461445