Plugin Directory

Changeset 1113619


Ignore:
Timestamp:
03/16/2015 03:43:14 AM (11 years ago)
Author:
webpurify
Message:

Removed deprecated functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • webpurifytextreplace/trunk/WebPurifyTextReplace-options.php

    r1043856 r1113619  
    6363
    6464    if ( !empty( $ar ) ) {
    65         $update_comment = 'UPDATE ' . $table_name . ' SET comment_content = \'' . mysql_escape_string( $ar ) . '\' where comment_ID = ' . (int)$commentID;
     65        $update_comment = 'UPDATE ' . $table_name . ' SET comment_content = \'' . mysql_real_escape_string( $ar ) . '\' where comment_ID = ' . (int)$commentID;
    6666        $results = $wpdb->query( $update_comment );
    6767    }
     
    8383
    8484    if ( !empty( $ar ) ) {
    85         $update_post = 'UPDATE ' . $table_name . ' SET post_content = \'' . mysql_escape_string( $ar ) . '\' where ID = ' . (int)$postID;
     85        $update_post = 'UPDATE ' . $table_name . ' SET post_content = \'' . mysql_real_escape_string( $ar ) . '\' where ID = ' . (int)$postID;
    8686        $results = $wpdb->query( $update_post );
    8787    }
Note: See TracChangeset for help on using the changeset viewer.