Make WordPress Core

Changeset 1148 in tests for trunk/tests/comment/slashes.php


Ignore:
Timestamp:
11/21/2012 03:01:28 PM (14 years ago)
Author:
ryan
Message:

Pinking shears and eol-style

File:
1 edited

Legend:

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

    r1041 r1148  
    1313                $this->old_current_user = get_current_user_id();
    1414                wp_set_current_user( $this->author_id );
    15                
     15
    1616                // it is important to test with both even and odd numbered slashes as
    1717                // kses does a strip-then-add slashes in some of it's function calls
     
    3737                $post_id = $this->factory->post->create();
    3838
    39                 // not testing comment_author_email or comment_author_url 
     39                // not testing comment_author_email or comment_author_url
    4040                // as slashes are not permitted in that data
    4141                $data = array(
     
    7474                ));
    7575
    76                 // not testing comment_author_email or comment_author_url 
     76                // not testing comment_author_email or comment_author_url
    7777                // as slashes are not permitted in that data
    7878                $_POST = array();
     
    8181                $_POST['content'] = $this->slash_7;
    8282                $_POST = add_magic_quotes( $_POST );
    83                
     83
    8484                edit_comment();
    8585                $comment = get_comment( $comment_id );
     
    9393                $_POST['content'] = $this->slash_4;
    9494                $_POST = add_magic_quotes( $_POST );
    95                
     95
    9696                edit_comment();
    9797                $comment = get_comment( $comment_id );
     
    107107        function test_wp_insert_comment() {
    108108                $post_id = $this->factory->post->create();
    109                
     109
    110110                $comment_id = wp_insert_comment(array(
    111111                        'comment_post_ID' => $post_id,
     
    138138                        'comment_post_ID' => $post_id
    139139                ));
    140                
     140
    141141                wp_update_comment(array(
    142142                        'comment_ID' => $comment_id,
Note: See TracChangeset for help on using the changeset viewer.