Ticket #44350: 44350.13.diff
File 44350.13.diff, 1.8 KB (added by , 6 years ago) |
---|
-
src/wp-admin/update-core.php
294 294 $compat .= '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: Unknown' ), $core_update_version ); 295 295 } 296 296 } 297 298 $compatible_php = false; 299 ( empty( $plugin_data->update->requires_php ) || version_compare( phpversion(), $plugin_data->update->requires_php, '>=' ) ); 300 301 if ( ! $compatible_php && current_user_can( 'update_php' ) ) { 302 $compat .= '<br />' . __( 'This update doesn’t work with your version of PHP.' ) . ' '; 303 /* translators: %s: Update PHP page URL */ 304 $compat .= sprintf( 305 __( '<a href="%s">Learn more about updating PHP.</a>' ), 306 esc_url( wp_get_update_php_url() ) 307 ); 308 $compat .= '<br /><span class="description">' . wp_get_update_php_annotation() . '</span>'; 309 } 310 297 311 // Get the upgrade notice for the new plugin version. 298 312 if ( isset( $plugin_data->update->upgrade_notice ) ) { 299 313 $upgrade_notice = '<br />' . strip_tags( $plugin_data->update->upgrade_notice ); … … 315 329 ?> 316 330 <tr> 317 331 <td class="check-column"> 332 <?php if ( $compatible_php ) : ?> 318 333 <input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $plugin_file ); ?>" /> 319 334 <label for="<?php echo $checkbox_id; ?>" class="screen-reader-text"> 320 335 <?php … … 325 340 ); 326 341 ?> 327 342 </label> 343 <?php endif; ?> 328 344 </td> 329 345 <td class="plugin-title"><p> 330 346 <?php echo $icon; ?> 331 347 <strong><?php echo $plugin_data->Name; ?></strong> 332 348 <?php 333 349 /* translators: 1: plugin version, 2: new version */ … … 340 356 ?> 341 357 </p></td> 342 358 </tr> 343 359 <?php 344 360 } 345 361 ?> 346 362 </tbody>