Make WordPress Core

Changeset 1215 in tests for trunk/tests/post/slashes.php


Ignore:
Timestamp:
02/14/2013 10:51:37 PM (14 years ago)
Author:
ryan
Message:

Update for [WP23416]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/post/slashes.php

    r1148 r1215  
    4141                $_POST['content'] = $this->slash_5;
    4242                $_POST['excerpt'] = $this->slash_7;
    43                 $_POST = add_magic_quotes( $_POST ); // the edit_post() function will strip slashes
     43                $_POST = wp_slash( $_POST ); // the edit_post() function will strip slashes
    4444
    4545                $post_id = edit_post();
    … …  
    5555                $_POST['content'] = $this->slash_4;
    5656                $_POST['excerpt'] = $this->slash_6;
    57                 $_POST = add_magic_quotes( $_POST );
     57                $_POST = wp_slash( $_POST );
    5858
    5959                $post_id = edit_post();
Note: See TracChangeset for help on using the changeset viewer.