Making WordPress.org

Changeset 13018


Ignore:
Timestamp:
12/06/2023 05:30:15 AM (3 years ago)
Author:
tellyworth
Message:

Plugin Directory: fix empty blueprint postmeta

See #7251.

File:
1 edited

Legend:

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

    r13016 r13018  
    354354
    355355                // Store the content of blueprint files, if they're available and valid.
    356                 if ( isset( $assets['blueprint'] ) ) {
     356                if ( isset( $assets['blueprint'] ) && count( $assets['blueprint'] ) > 0 ) {
    357357                        update_post_meta( $plugin->ID, 'assets_blueprints', wp_slash( $assets['blueprint'] ) );
    358358                } else {
Note: See TracChangeset for help on using the changeset viewer.