Make WordPress Core

Changeset 1230 in tests for trunk/includes/factory.php


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/factory.php

    r1215 r1230  
    7878
    7979    function create_object( $args ) {
    80         return wp_insert_comment( $args );
     80        return wp_insert_comment( $this->addslashes_deep( $args ) );
    8181    }
    8282
    8383    function update_object( $comment_id, $fields ) {
    8484        $fields['comment_ID'] = $comment_id;
    85         return wp_update_comment( $fields );
     85        return wp_update_comment( $this->addslashes_deep( $fields ) );
    8686    }
    8787
Note: See TracChangeset for help on using the changeset viewer.