You appear to be a bot. Output may be restricted
Description
Helper to keep it DRY
Usage
Tests_Ajax_CustomizeManager::make_ajax_call( $action );
Parameters
- $action
- ( string ) required – Action.
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/ajax/CustomizeManager.php
Lines:
1 to 12 of 12
protected function make_ajax_call( $action ) { $this->_last_response_parsed = null; $this->_last_response = ''; try { $this->_handleAjax( $action ); } catch ( WPAjaxDieContinueException $e ) { unset( $e ); } if ( $this->_last_response ) { $this->_last_response_parsed = json_decode( $this->_last_response, true ); } }