Making WordPress.org


Ignore:
Timestamp:
04/12/2023 05:24:19 AM (12 months ago)
Author:
dd32
Message:

Plugin Directory: Store required plugins as an array, and an additional flag for when dependencies are not met by published WordPress.org-hosted plugins.

See #6921, [12532].

File:
1 edited

Legend:

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

    r12157 r12533  
    113113        }
    114114
    115         $result['requires']      = get_post_meta( $post_id, 'requires', true ) ?: false;
    116         $result['tested']        = get_post_meta( $post_id, 'tested', true ) ?: false;
    117         $result['requires_php']  = get_post_meta( $post_id, 'requires_php', true ) ?: false;
    118         $result['compatibility'] = array();
     115        $result['requires']         = get_post_meta( $post_id, 'requires', true ) ?: false;
     116        $result['tested']           = get_post_meta( $post_id, 'tested', true ) ?: false;
     117        $result['requires_php']     = get_post_meta( $post_id, 'requires_php', true ) ?: false;
     118        $result['requires_plugins'] = get_post_meta( $post_id, 'requires_plugins', true ) ?: [];
     119        $result['compatibility']    = array();
    119120
    120121        if ( class_exists( '\WPORG_Ratings' ) ) {
Note: See TracChangeset for help on using the changeset viewer.