protected function _createObject( $args ) {
		$comment_id = wp_insert_comment( $this->_addSlashesDeep( $args ) );
		if ( $comment_id && ! is_wp_error( $comment_id ) ) {
			$this->_debug( 'Generated comment ID: ' . $comment_id );
		} elseif ( is_wp_error( $comment_id ) ) {
			$this->_debug(
				'Comment generation failed with message [%s] %s',
				$comment_id->get_error_code(),
				$comment_id->get_error_messages()
			);
		} else {
			$this->_debug( 'Comment generation failed' );
		}

		return $comment_id;
	}
protected function _createObject( $args ) {
		$comment_id = wp_insert_comment( $this->_addSlashesDeep( $args ) );
		if ( $comment_id && ! is_wp_error( $comment_id ) ) {
			$this->_debug( 'Generated comment ID: ' . $comment_id );
		} elseif ( is_wp_error( $comment_id ) ) {
			$this->_debug(
				'Comment generation failed with message [%s] %s',
				$comment_id->get_error_code(),
				$comment_id->get_error_messages()
			);
		} else {
			$this->_debug( 'Comment generation failed' );
		}

		return $comment_id;
	}
protected function _createObject ( $ args ) { $ comment_id = wp_insert_comment ( $ this -> _addSlashesDeep ( $ args ) ) ; if ( $ comment_id && ! is_wp_error ( $ comment_id ) ) { $ this -> _debug ( 'Generated comment ID: ' . $ comment_id ) ; } elseif ( is_wp_error ( $ comment_id ) ) { $ this -> _debug ( 'Comment generation failed with message [%s] %s' , $ comment_id -> get_error_code ( ) , $ comment_id -> get_error_messages ( ) ) ; } else { $ this -> _debug ( 'Comment generation failed' ) ; } return $ comment_id ; }
Generates a new comment.

@since 1.0.0

@access protected
@param array $args The array of arguments to use during a new comment creation.
@return int|boolean The newly created comment's ID on success, otherwise FALSE.
Generates a new comment .