Making WordPress.org

Changeset 8977


Ignore:
Timestamp:
06/20/2019 03:22:13 PM (6 years ago)
Author:
dd32
Message:

Plugin Directory: Tide Sync: Handle the case of an empty tide summary report.

See #4309.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-tide-sync.php

    r8975 r8977  
    5454
    5555        $data = self::fetch_data( $plugin_slug, $plugin->version );
    56         if ( $data->content === "<p>pending</p>" ) {
    57             // Not yet available, Check back later.
     56        if ( ! $data ) {
     57            return false;
     58        }
     59
     60        // Not yet available, Check back later.
     61        if ( $data->content === '<p>pending</p>' ) {
    5862            return self::requeue( $plugin_data );
    5963        }
Note: See TracChangeset for help on using the changeset viewer.