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/readme/class-parser.php

    r5565 r5841  
    3131     */
    3232    public $tested = '';
     33
     34    /**
     35     * @var string
     36     */
     37    public $requires_php = '';
    3338
    3439    /**
     
    118123        'requires'          => 'requires',
    119124        'requires at least' => 'requires',
     125        'requires php'      => 'requires_php',
    120126        'tags'              => 'tags',
    121127        'contributors'      => 'contributors',
     
    227233        if ( ! empty( $headers['tested'] ) ) {
    228234            $this->tested = $headers['tested'];
     235        }
     236        if ( ! empty( $headers['requires_php'] ) ) {
     237            $this->requires_php = $headers['requires_php'];
    229238        }
    230239        if ( ! empty( $headers['contributors'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.