Changeset 44939
- Timestamp:
- 03/20/2019 02:58:03 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update-core.php
r44700 r44939 295 295 } 296 296 } 297 298 $compatible_php = ( empty( $plugin_data->update->requires_php ) || version_compare( phpversion(), $plugin_data->update->requires_php, '>=' ) ); 299 300 if ( ! $compatible_php && current_user_can( 'update_php' ) ) { 301 $compat .= '<br>' . __( 'This update doesn’t work with your version of PHP.' ) . ' '; 302 /* translators: %s: Update PHP page URL */ 303 $compat .= sprintf( 304 __( '<a href="%s">Learn more about updating PHP.</a>' ), 305 esc_url( wp_get_update_php_url() ) 306 ); 307 $compat .= '</p><p><em>' . wp_get_update_php_annotation() . '</em>'; 308 } 309 297 310 // Get the upgrade notice for the new plugin version. 298 311 if ( isset( $plugin_data->update->upgrade_notice ) ) { … … 316 329 <tr> 317 330 <td class="check-column"> 331 <?php if ( $compatible_php ) : ?> 318 332 <input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $plugin_file ); ?>" /> 319 333 <label for="<?php echo $checkbox_id; ?>" class="screen-reader-text"> … … 326 340 ?> 327 341 </label> 342 <?php endif; ?> 328 343 </td> 329 344 <td class="plugin-title"><p> 330 345 <?php echo $icon; ?> 331 346 <strong><?php echo $plugin_data->Name; ?></strong> 332 347 <?php … … 337 352 $plugin_data->update->new_version 338 353 ); 339 354 echo ' ' . $details . $compat . $upgrade_notice; 340 355 ?> 341 356 </p></td> 342 357 </tr> 343 358 <?php 344 359 } 345 360 ?>
Note: See TracChangeset
for help on using the changeset viewer.