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/widgets/class-meta.php

    r5566 r5841  
    5050            <li><?php printf( __( 'Active installs: %s', 'wporg-plugins' ), '<strong>' . Template::active_installs( false ) . '</strong>' ); ?></li>
    5151
    52             <?php if ( $requires = (string) get_post_meta( $post->ID, 'requires', true ) ) : ?>
     52            <?php if ( $requires = (string) get_post_meta( $post->ID, 'requires', true ) ) : ?>
    5353                <li><?php
    5454                _e( 'Requires WordPress Version:', 'wporg-plugins' );
    5555                echo '<strong>' . esc_html( $requires ) . '</strong>';
    5656                ?></li>
    57             <?php endif; ?>
    58 
    59 
     57            <?php endif; ?>
    6058
    6159            <?php if ( $tested_up_to = (string) get_post_meta( $post->ID, 'tested', true ) ) : ?>
    6260                <li><?php printf( __( 'Tested up to: %s', 'wporg-plugins' ), '<strong>' . $tested_up_to . '</strong>' ); ?></li>
     61            <?php endif; ?>
     62
     63            <?php if ( $requires_php = (string) get_post_meta( $post->ID, 'requires_php', true ) ) : ?>
     64                <li><?php
     65                _e( 'Requires PHP Version:', 'wporg-plugins' );
     66                echo '<strong>' . esc_html( $requires_php ) . '</strong>';
     67                ?></li>
    6368            <?php endif; ?>
    6469
Note: See TracChangeset for help on using the changeset viewer.