Make WordPress Core

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


Ignore:
Timestamp:
03/03/2013 09:10:38 PM (11 years ago)
Author:
ryan
Message:

Revert parts of [1215] to reflects changes for #WP21767

File:
1 edited

Legend:

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

    r1215 r1230  
    4141        $_POST['content'] = $this->slash_5;
    4242        $_POST['excerpt'] = $this->slash_7;
    43         $_POST = wp_slash( $_POST ); // the edit_post() function will strip slashes
     43        $_POST = add_magic_quotes( $_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 = wp_slash( $_POST );
     57        $_POST = add_magic_quotes( $_POST );
    5858
    5959        $post_id = edit_post();
     
    7575            'post_content' => $this->slash_3,
    7676            'post_excerpt' => $this->slash_5,
    77             'post_type' => 'post'
     77            'post_type' => 'post',
     78            'slashed' => false,
    7879        ));
    7980        $post = get_post( $id );
Note: See TracChangeset for help on using the changeset viewer.