WordPress.org

Making WordPress.org


Ignore:
Timestamp:
06/15/2017 09:29:28 AM (2 years ago)
Author:
Otto42
Message:

Plugin Directory: Add missing requires data to achieve parity with what shows on the plugin install screen in core. Fixes #2865

File:
1 edited

Legend:

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

    r5457 r5566  
    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 ) ) : ?>
     53                <li><?php
     54                _e( 'Requires WordPress Version:', 'wporg-plugins' );
     55                echo '<strong>' . esc_html( $requires ) . '</strong>';
     56                ?></li>
     57            <?php endif; ?>
     58
     59
     60
    5261            <?php if ( $tested_up_to = (string) get_post_meta( $post->ID, 'tested', true ) ) : ?>
    5362                <li><?php printf( __( 'Tested up to: %s', 'wporg-plugins' ), '<strong>' . $tested_up_to . '</strong>' ); ?></li>
Note: See TracChangeset for help on using the changeset viewer.