protected function _updateObject( $post_id, $fields ) {
		$fields['ID'] = $post_id;
		$updated = wp_update_post( $fields );
		if ( $updated && ! is_wp_error( $updated ) ) {
			$this->_debug( 'Updated post ' . $post_id );
		} elseif ( is_wp_error( $updated ) ) {
			$this->_debug(
				'Update failed for post %d with message [%s] %s',
				$post_id,
				$updated->get_error_code(),
				$updated->get_error_message()
			);
		} else {
			$this->_debug( 'Update failed for post ' . $post_id );
		}

		return $updated;
	}
protected function _updateObject( $post_id, $fields ) {
		$fields['ID'] = $post_id;
		$updated = wp_update_post( $fields );
		if ( $updated && ! is_wp_error( $updated ) ) {
			$this->_debug( 'Updated post ' . $post_id );
		} elseif ( is_wp_error( $updated ) ) {
			$this->_debug(
				'Update failed for post %d with message [%s] %s',
				$post_id,
				$updated->get_error_code(),
				$updated->get_error_message()
			);
		} else {
			$this->_debug( 'Update failed for post ' . $post_id );
		}

		return $updated;
	}
protected function _updateObject ( $ post_id , $ fields ) { $ fields [ 'ID' ] = $ post_id ; $ updated = wp_update_post ( $ fields ) ; if ( $ updated && ! is_wp_error ( $ updated ) ) { $ this -> _debug ( 'Updated post ' . $ post_id ) ; } elseif ( is_wp_error ( $ updated ) ) { $ this -> _debug ( 'Update failed for post %d with message [%s] %s' , $ post_id , $ updated -> get_error_code ( ) , $ updated -> get_error_message ( ) ) ; } else { $ this -> _debug ( 'Update failed for post ' . $ post_id ) ; } return $ updated ; }
Updates generated object.

@since 1.0.0

@access protected
@param mixed $post_id The post id to update.
@param array $fields The array of fields to update.
@return mixed Updated post ID on success, otherwise 0 or a WP_Error object.
Updates generated object .