You appear to be a bot. Output may be restricted
Description
Sends data to WordPress.com via an XMLRPC request.
Usage
$mixed|WP_Error = Actions::send_data( $data, $codec_name, $sent_timestamp, $queue_id, $checkout_duration, $preprocess_duration, $queue_size, $buffer_id );
Parameters
- $data
- ( object ) required – Data relating to a sync action.
- $codec_name
- ( string ) required – The name of the codec that encodes the data.
- $sent_timestamp
- ( float ) required – Current server time so we can compensate for clock differences.
- $queue_id
- ( string ) required – The queue the action belongs to, sync or full_sync.
- $checkout_duration
- ( float ) required – Time spent retrieving queue items from the DB.
- $preprocess_duration
- ( float ) required – Time spent converting queue items into data to send.
- $queue_size
- ( int ) optional – The size of the sync queue at the time of processing.
- $buffer_id
- ( string ) optional – The ID of the Queue buffer checked out for processing.
Returns
mixed|WP_Error The result of the sending request.
Source
File name: jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-actions.php
Lines:
101 to 114 of 114
if ( Identity_Crisis::init()->check_response_for_idc( $response ) ) { return new WP_Error( 'sync_error_idc', esc_html__( 'Sync has been blocked from WordPress.com because it would cause an identity crisis', 'jetpack-sync' ) ); } // Record last successful sync. update_option( self::LAST_SUCCESS_PREFIX . $queue_id, microtime( true ), false ); return $response; }