false, 'timeout' => 60 ); $connection = wp_remote_get( $api_url, $params ); if ( is_wp_error( $connection ) ) { $count = $default_count; } else { $response = json_decode( $connection[ 'body' ], true ); if ( isset( $response[ 'followers_count' ] ) ) { $count = intval( $response[ 'followers_count' ] ); } else { $count = $default_count; } } set_transient( 'apsc_dribbble', $count, $cache_period ); } else { $count = $dribbble_count; }