Make WordPress Core


Ignore:
Timestamp:
03/01/2013 04:28:40 PM (13 years ago)
Author:
ryan
Message:

Revert 23416, 23419, 23445 except for wp_reset_vars() changes. We are going a different direction with the slashing cleanup, so resetting to a clean slate. see #21767

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-widgets.php

    r23454 r23554  
    414414                        $instance['text'] =  $new_instance['text'];
    415415                else
    416                         $instance['text'] = wp_kses_post( $new_instance['text'] );
     416                        $instance['text'] = stripslashes( wp_filter_post_kses( addslashes($new_instance['text']) ) ); // wp_filter_post_kses() expects slashed
    417417                $instance['filter'] = isset($new_instance['filter']);
    418418                return $instance;
     
    10581058
    10591059        function update( $new_instance, $old_instance ) {
    1060                 $instance['title'] = strip_tags( $new_instance['title'] );
    1061                 $instance['taxonomy'] =  $new_instance['taxonomy'];
     1060                $instance['title'] = strip_tags(stripslashes($new_instance['title']));
     1061                $instance['taxonomy'] = stripslashes($new_instance['taxonomy']);
    10621062                return $instance;
    10631063        }
     
    11201120
    11211121        function update( $new_instance, $old_instance ) {
    1122                 $instance['title'] = strip_tags( $new_instance['title'] );
     1122                $instance['title'] = strip_tags( stripslashes($new_instance['title']) );
    11231123                $instance['nav_menu'] = (int) $new_instance['nav_menu'];
    11241124                return $instance;
Note: See TracChangeset for help on using the changeset viewer.