Making WordPress.org


Ignore:
Timestamp:
04/12/2023 05:32:20 AM (22 months ago)
Author:
dd32
Message:

Plugin Directory: When a plugin has an empty or malformed Requires Plugins header, don't store empty slug keys.

See #6921.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php

    r12533 r12534  
    378378                    'header_textdomain'        => $this->plugin['TextDomain'],
    379379                    'header_description'       => $this->plugin['Description'],
    380                     'requires_plugins'         => array_map( 'trim', explode( ',', $this->plugin['RequiresPlugins'] ) ),
     380                    'requires_plugins'         => array_filter( array_map( 'trim', explode( ',', $this->plugin['RequiresPlugins'] ) ) ),
    381381                    'assets_screenshots'       => array(),
    382382                    'assets_icons'             => array(),
Note: See TracChangeset for help on using the changeset viewer.