WordPress.org

Make WordPress Core

Changeset 17143


Ignore:
Timestamp:
12/25/10 18:42:59 (3 years ago)
Author:
nacin
Message:

Revert to esc_html when escaping the textarea for nav menu item description. see #15454.

File:
1 edited

Legend:

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

    r16452 r17143  
    162162                    <label for="edit-menu-item-description-<?php echo $item_id; ?>"> 
    163163                        <?php _e( 'Description' ); ?><br /> 
    164                         <textarea id="edit-menu-item-description-<?php echo $item_id; ?>" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[<?php echo $item_id; ?>]"><?php echo esc_textarea( $item->description ); ?></textarea> 
     164                        <textarea id="edit-menu-item-description-<?php echo $item_id; ?>" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[<?php echo $item_id; ?>]"><?php echo esc_html( $item->description ); // textarea_escaped ?></textarea> 
    165165                        <span class="description"><?php _e('The description will be displayed in the menu if the current theme supports it.'); ?></span> 
    166166                    </label> 
Note: See TracChangeset for help on using the changeset viewer.