Plugins: Show the required PHP version in the plugin details view, if specified.
Props xkon. Merges [42998] to the 4.9 branch. Fixes #43650. Built from https://develop.svn.wordpress.org/branches/4.9@43029 git-svn-id: http://core.svn.wordpress.org/branches/4.9@42858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
40bd08b50f
commit
e40df25f76
|
@ -584,12 +584,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
|
||||
if ( $api->active_installs >= 1000000 ) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9.6-alpha-43028';
|
||||
$wp_version = '4.9.6-alpha-43029';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue