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/class-plugin-directory.php

    r5725 r5841  
    365365        register_meta( 'post', 'requires', array(
    366366            'description'       => __( 'The minimum version of WordPress the plugin needs to run.', 'wporg-plugins' ),
     367            'single'            => true,
     368            // TODO 'sanitize_callback' => 'absint',
     369            'show_in_rest'      => true,
     370        ) );
     371
     372        register_meta( 'post', 'requires_php', array(
     373            'description'       => __( 'The minimum version of PHP the plugin needs to run.', 'wporg-plugins' ),
    367374            'single'            => true,
    368375            // TODO 'sanitize_callback' => 'absint',
Note: See TracChangeset for help on using the changeset viewer.