Making WordPress.org

Changeset 12179


Ignore:
Timestamp:
11/01/2022 08:10:26 AM (4 years ago)
Author:
dd32
Message:

Plugin Directory: Remove legacy plugin_status meta field.

This field isn't used, and is out-of-sync with the plugin post_status for the vast majority of plugins.

See #6494.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
Files:
2 edited

Legend:

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

    r12133 r12179  
    242242                update_post_meta( $plugin->ID, 'assets_banners',     wp_slash( $assets['banner'] ) );
    243243                update_post_meta( $plugin->ID, 'last_updated',       wp_slash( $plugin->post_modified_gmt ) );
    244                 update_post_meta( $plugin->ID, 'plugin_status',      wp_slash( $plugin->post_status ) );
    245244
    246245                // Calculate the 'plugin color' from the average color of the banner if provided. This is used for fallback icons.
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php

    r12165 r12179  
    376376                                        'downloads'                => 0,
    377377                                        'last_updated'             => gmdate( 'Y-m-d H:i:s' ),
    378                                         'plugin_status'            => 'new',
    379378                                        'rating'                   => 0,
    380379                                        'ratings'                  => array(),
Note: See TracChangeset for help on using the changeset viewer.