Plugins: Show the required PHP version in the plugin details view, if specified.
Props xkon. Fixes #43650. git-svn-id: https://develop.svn.wordpress.org/trunk@42998 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f9e4467b3d
commit
f3150c77c5
|
@ -642,12 +642,20 @@ function install_plugin_information() {
|
|||
<li>
|
||||
<strong><?php _e( 'Requires WordPress Version:' ); ?></strong>
|
||||
<?php
|
||||
/* translators: %s: WordPress version */
|
||||
/* translators: %s: version number */
|
||||
printf( __( '%s or higher' ), $api->requires );
|
||||
?>
|
||||
</li>
|
||||
<?php } if ( ! empty( $api->tested ) ) { ?>
|
||||
<li><strong><?php _e( 'Compatible up to:' ); ?></strong> <?php echo $api->tested; ?></li>
|
||||
<?php } if ( ! empty( $api->requires_php ) ) { ?>
|
||||
<li>
|
||||
<strong><?php _e( 'Requires PHP Version:' ); ?></strong>
|
||||
<?php
|
||||
/* translators: %s: version number */
|
||||
printf( __( '%s or higher' ), $api->requires_php );
|
||||
?>
|
||||
</li>
|
||||
<?php } if ( isset( $api->active_installs ) ) { ?>
|
||||
<li><strong><?php _e( 'Active Installations:' ); ?></strong>
|
||||
<?php
|
||||
|
|
Loading…
Reference in New Issue