Make WordPress Core

Changeset 42998


Ignore:
Timestamp:
04/24/2018 11:40:25 AM (7 years ago)
Author:
flixos90
Message:

Plugins: Show the required PHP version in the plugin details view, if specified.

Props xkon.
Fixes #43650.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin-install.php

    r42829 r42998  
    643643                    <strong><?php _e( 'Requires WordPress Version:' ); ?></strong>
    644644                    <?php
    645                     /* translators: %s: WordPress version */
     645                    /* translators: %s: version number */
    646646                    printf( __( '%s or higher' ), $api->requires );
    647647                    ?>
     
    649649            <?php } if ( ! empty( $api->tested ) ) { ?>
    650650                <li><strong><?php _e( 'Compatible up to:' ); ?></strong> <?php echo $api->tested; ?></li>
     651            <?php } if ( ! empty( $api->requires_php ) ) { ?>
     652                <li>
     653                    <strong><?php _e( 'Requires PHP Version:' ); ?></strong>
     654                    <?php
     655                    /* translators: %s: version number */
     656                    printf( __( '%s or higher' ), $api->requires_php );
     657                    ?>
     658                </li>
    651659            <?php } if ( isset( $api->active_installs ) ) { ?>
    652660                <li><strong><?php _e( 'Active Installations:' ); ?></strong>
Note: See TracChangeset for help on using the changeset viewer.