Plugin Directory

Changeset 670829


Ignore:
Timestamp:
02/20/2013 05:26:56 PM (13 years ago)
Author:
SnackTools
Message:

jetpack conflict fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • notifysnack/trunk/notifysnack.php

    r666387 r670829  
    131131            if( wp_verify_nonce( $_REQUEST[$this->namespace . '_update_wpnonce'], $this->namespace . '_options' ) ) {
    132132                $data = array();
     133
    133134                foreach( $_POST as $key => $val ) {
    134                     $data[$key] = $this->sanitize_script( $val );
     135                    $data[$key] = $this->sanitize_notifyscript( $val );
    135136                }
    136137               
     
    241242    }
    242243       
    243     private function sanitize_script( $str="" ) {
     244    private function sanitize_notifyscript( $str="" ) {
    244245        if ( !function_exists( 'wp_kses' ) ) {
    245             require_once( ABSPATH . 'wp-includes/kses.php' );
    246         }
     246             require_once( ABSPATH . 'wp-includes/kses.php' );
     247        }
     248
    247249        global $allowedposttags;
    248250        global $allowedprotocols;
     
    250252        if ( is_string( $str ) ) {
    251253            $str = htmlentities( stripslashes( $str ), ENT_QUOTES, 'UTF-8' );
    252         }
    253        
    254         $str = wp_kses( $str, $allowedposttags, $allowedprotocols );
    255        
     254            $str = wp_kses( $str, $allowedposttags, $allowedprotocols );
     255        }
     256       
    256257        return $str;
    257258    }
Note: See TracChangeset for help on using the changeset viewer.