Making WordPress.org


Ignore:
Timestamp:
01/10/2017 10:13:25 PM (8 years ago)
Author:
dd32
Message:

Plugin Directory: Add default meta fallback values where needed to avoid PHP warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php

    r4620 r4622  
    187187        update_post_meta( $plugin->ID, 'assets_banners_color', wp_slash( $banner_average_color ) );
    188188
    189         $current_stable_tag = get_post_meta( $plugin->ID, 'stable_tag', true );
     189        $current_stable_tag = get_post_meta( $plugin->ID, 'stable_tag', true ) ?: 'trunk';
    190190
    191191        $this->rebuild_invalidate_zips( $plugin_slug, $stable_tag, $current_stable_tag, $svn_changed_tags );
Note: See TracChangeset for help on using the changeset viewer.