Plugin Directory

Changeset 2148703


Ignore:
Timestamp:
08/30/2019 08:55:58 PM (7 years ago)
Author:
Nuanced Media
Message:

v2.3.1 - Fixing a couple small bugs

Location:
wp-meetup/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-meetup/trunk/README.txt

    r2136702 r2148703  
    5050
    5151== Changelog ==
     52= 2.3.1 =
     53* Very minor bug fixes
     54
    5255= 2.3.0 =
    5356* Updated authentication method to OAuth2 to accommodate Meetup.com's API key deprecation
  • wp-meetup/trunk/includes/api.php

    r2136701 r2148703  
    210210            $response_body         = wp_remote_retrieve_body($response);
    211211            $response_body_decoded = (empty($response_body) ? '' : json_decode($response_body));
     212
     213            if ($response_body === '[]') {
     214                return array();
     215            }
    212216
    213217            // If there's trouble decoding the response, record that error (in addition to any other errors we encounter).
  • wp-meetup/trunk/wp-meetup.php

    r2136701 r2148703  
    55 * Plugin URI: https://nuancedmedia.com/wordpress-meetup-plugin/
    66 * Description: Pulls events from Meetup.com onto your blog to be displayed in a calendar, list, or widgets.
    7  * Version: 2.3.0
     7 * Version: 2.3.1
    88 * Author: Nuanced Media
    99 * Author URI: http://nuancedmedia.com/
  • wp-meetup/trunk/wpm-options.php

    r2136701 r2148703  
    346346     * Check if the OAuth2 access token is stored.
    347347     *
     348     * @since 2.3.1
    348349     * @since 2.3.0
    349350     *
     
    351352     */
    352353    public function has_access_token() {
    353         return (! empty($this->get_option('oauth2_access_token')));
     354        $access_token = $this->get_option('oauth2_access_token');
     355        return (! empty($access_token));
    354356    }
    355357
Note: See TracChangeset for help on using the changeset viewer.