Skip to content

Commit

Permalink
Issue #24 - use oik_remote class, replaces oik-remote.inc
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Dec 6, 2018
1 parent 79cd2fe commit ffc1395
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions admin/oik-save-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ function oik_clone_clone( $id, $load_media=false, $slaves=null ) {
if ( $loading_necessary ) {
oik_require( "admin/oik-clone-actions.php", "oik-clone" );
oik_require( "admin/oik-clone-media.php", "oik-clone" );
oik_require( "includes/oik-remote.inc" );
//oik_require( "includes/oik-remote.inc" );
oik_require_lib( "class-oik-remote" );
oik_require( "admin/oik-clone-relationships.php", "oik-clone" );
// @TODO oik_clone_tree_filters();
add_filter( "oik_clone_build_list", "oik_clone_build_list_informal_relationships", 11, 2 );
Expand Down Expand Up @@ -186,7 +187,7 @@ function oik_clone_clone( $id, $load_media=false, $slaves=null ) {
*/
function oik_clone_determine_slave_id( $target, $result ) {
bw_trace2( null, null, true, BW_TRACE_DEBUG );
$result = bw_json_decode( $result );
$result = oik_remote::bw_json_decode( $result );
$slave_id = bw_array_get( $result, "slave", $target );
bw_trace2( $slave_id, "slave id", false, BW_TRACE_DEBUG );
if ( !$slave_id ) {
Expand Down Expand Up @@ -334,7 +335,7 @@ function oik_clone_update_slave_simple( $id, $payload, $slave, $target, $mapping
$args = array( "body" => $body
, 'timeout' => 30
);
$result = bw_remote_post( $url, $args );
$result = oik_remote::bw_remote_post( $url, $args );
bw_trace2( $result );
return( $result );
}
Expand Down

0 comments on commit ffc1395

Please sign in to comment.