Making WordPress.org


Ignore:
Timestamp:
08/25/2017 08:17:03 AM (6 years ago)
Author:
tellyworth
Message:

Plugin directory: soft launch support for Requires PHP header in readme.txt. Props @SergeyBiryukov

See #2952

File:
1 edited

Legend:

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

    r5473 r5841  
    100100        $result['requires'] = get_post_meta( $post_id, 'requires', true ) ?: false;
    101101        $result['tested'] = get_post_meta( $post_id, 'tested', true ) ?: false;
     102        $result['requires_php'] = get_post_meta( $post_id, 'requires_php', true ) ?: false;
    102103        $result['compatibility'] = array();
    103104        $result['rating'] = ( get_post_meta( $post_id, 'rating', true ) ?: 0 ) * 20; // Stored as 0.0 ~ 5.0, API outputs as 0..100
Note: See TracChangeset for help on using the changeset viewer.