WordPress.org

Plugin Directory

Changeset 632646


Ignore:
Timestamp:
12/01/12 10:04:40 (17 months ago)
Author:
casben79
Message:

1.6 tweak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-slick-slider/tags/1.6/wp-slick-slider.php

    r632643 r632646  
    297297         
    298298        //Dont save on autosave: 
    299     if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) { 
     299    if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) { 
    300300        return $post_id; 
    301301    } 
     
    304304    if(isset($_POST['post_type']) && $_POST['post_type'] == 'wpss_slides'): 
    305305 
    306             $slide_type = $_POST['slide-type']; 
    307         $slide_order = $_POST['slide-order']; 
     306            $slide_type = wp_kses( $_POST['slide-type'], array() ); 
     307        $slide_order = wp_kses( $_POST['slide-order'], array() ); 
    308308        $slide_order = ( empty( $slide_order ) || $slide_order == 0 ) ? 0 : $slide_order ; 
    309309 
Note: See TracChangeset for help on using the changeset viewer.