You appear to be a bot. Output may be restricted
Description
Reply with a JSON messageThe requester is expecting something useful in the result; the 'slave' post ID we also return any other rubbish created using bw_echo() as a field called 'narrative' This should make it easier for the client to check what it receives. This logic doesn't handle fatal errors or other plain text / HTML that's been accidentally produced
Usage
oik_clone_reply_with_json( $target_id );
Parameters
- $target_id
- ( ID ) required – the ID of the post created/updated
Returns
voidSource
File name: oik-clone/admin/oik-clone-json.phpLines:
1 to 9 of 9
function oik_clone_reply_with_json( $target_id ) { $narrative = bw_ret(); $result = array( "narrative" => $narrative , "slave" => $target_id ); $json = json_encode( $result ); e( $json ); bw_trace2( $json, "json" ); }View on GitHub