Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Johann Wagner

    (@johann-wagner)

    Hier bitte :

    display-widgets.php -> dw_update_widget_options() l. 267

    Change

    if(isset($new_instance['dw_logout']))
            $instance['dw_logout'] =  $new_instance['dw_logout'];
        if(isset($new_instance['dw_login']))
            $instance['dw_login'] = $new_instance['dw_login'];

    Into

    if(isset($new_instance['dw_logout']))
            $instance['dw_logout'] =  $new_instance['dw_logout'];
        else
            $instance['dw_logout'] =  0;
    
        if(isset($new_instance['dw_login']))
            $instance['dw_login'] = $new_instance['dw_login'];
        else
            $instance['dw_login'] = 0;

    Hi,

    Thanks for indicating WP Widget Cache.

    Got the same error, here’s a bugfix for simply-instagram-functions.php line 187

    /**
    * Get the most recent media published by a user.
    */
    function sInstGetRecentMedia( $user_id, $access_token )
    {
    	$apiurl = "https://api.instagram.com/v1/users/" . $user_id . "/media/recent/?access_token=" . $access_token;
    
    	$response = wp_remote_get( $apiurl );
            if(is_array($response) && array_key_exists('body', $response))
            {
                $data = json_decode( $response['body'], true );
                return $data;
            }
            else
            {
                return FALSE;
            }
    }
Viewing 2 replies - 1 through 2 (of 2 total)