Make WordPress Core


Ignore:
Timestamp:
02/23/2016 01:01:43 AM (10 years ago)
Author:
westonruter
Message:

Customize: Prevent dropping backslashes from input on general settings and settings for nav menus and some widgets.

Ensures that intentional backslashes (e.g. "\o/") can be used in:

  • Site title
  • Site description
  • Nav menu name
  • Custom Menu widget title
  • Tag Cloud widget title
  • Text widget body if can't unfiltered_html

The latter three are also fixed on the widgets admin page.

Fixes #35898.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets/class-wp-widget-tag-cloud.php

    r35576 r36622  
    9999    public function update( $new_instance, $old_instance ) {
    100100        $instance = array();
    101         $instance['title'] = sanitize_text_field( stripslashes( $new_instance['title'] ) );
     101        $instance['title'] = sanitize_text_field( $new_instance['title'] );
    102102        $instance['taxonomy'] = stripslashes($new_instance['taxonomy']);
    103103        return $instance;
Note: See TracChangeset for help on using the changeset viewer.