WordPress.org

Make WordPress Core

Ticket #32812: 32812.1.diff

File 32812.1.diff, 820 bytes (added by westonruter, 6 years ago)

Refresh

  • src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php

    diff --git src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php
    index 463da87..b73ed5f 100644
    class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting { 
    638638                        $menu_item_value[ $key ] = implode( ' ', array_map( 'sanitize_html_class', $value ) );
    639639                }
    640640
    641                 foreach ( array( 'title', 'attr_title', 'description', 'original_title' ) as $key ) {
    642                         // @todo Should esc_attr() the attr_title as well?
     641                foreach ( array( 'description', 'original_title' ) as $key ) {
    643642                        $menu_item_value[ $key ] = sanitize_text_field( $menu_item_value[ $key ] );
    644643                }
    645644