Skip to content

Commit a161ca4

Browse files
Plugins: Show the required PHP version in the plugin details view, if specified.
Props xkon. Merges [42998] to the 4.9 branch. Fixes #43650. git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43029 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 578b1c9 commit a161ca4

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/wp-admin/includes/plugin-install.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,12 +584,20 @@ function install_plugin_information() {
584584
<li>
585585
<strong><?php _e( 'Requires WordPress Version:' ); ?></strong>
586586
<?php
587-
/* translators: %s: WordPress version */
587+
/* translators: %s: version number */
588588
printf( __( '%s or higher' ), $api->requires );
589589
?>
590590
</li>
591591
<?php } if ( ! empty( $api->tested ) ) { ?>
592592
<li><strong><?php _e( 'Compatible up to:' ); ?></strong> <?php echo $api->tested; ?></li>
593+
<?php } if ( ! empty( $api->requires_php ) ) { ?>
594+
<li>
595+
<strong><?php _e( 'Requires PHP Version:' ); ?></strong>
596+
<?php
597+
/* translators: %s: version number */
598+
printf( __( '%s or higher' ), $api->requires_php );
599+
?>
600+
</li>
593601
<?php } if ( isset( $api->active_installs ) ) { ?>
594602
<li><strong><?php _e( 'Active Installations:' ); ?></strong> <?php
595603
if ( $api->active_installs >= 1000000 ) {

0 commit comments

Comments
 (0)