- Timestamp:
- 09/17/2023 03:21:07 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r56571 r56599 1283 1283 '<tr class="plugin-update-tr">' . 1284 1284 '<td colspan="%s" class="plugin-update colspanchange">' . 1285 '<div class="update-message notice inline notice-error notice-alt"><p>',1286 1285 esc_attr( $this->get_column_count() ) 1287 1286 ); 1288 1287 1288 $incompatible_message = ''; 1289 1289 if ( ! $compatible_php && ! $compatible_wp ) { 1290 _e( 'This plugin does not work with your versions of WordPress and PHP.' );1290 $incompatible_message .= __( 'This plugin does not work with your versions of WordPress and PHP.' ); 1291 1291 if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { 1292 printf(1292 $incompatible_message .= sprintf( 1293 1293 /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */ 1294 1294 ' ' . __( '<a href="%1$s">Please update WordPress</a>, and then <a href="%2$s">learn more about updating PHP</a>.' ), … … 1296 1296 esc_url( wp_get_update_php_url() ) 1297 1297 ); 1298 wp_update_php_annotation( '</p><p><em>', '</em>');1298 $incompatible_message .= wp_update_php_annotation( '</p><p><em>', '</em>', false ); 1299 1299 } elseif ( current_user_can( 'update_core' ) ) { 1300 printf(1300 $incompatible_message .= sprintf( 1301 1301 /* translators: %s: URL to WordPress Updates screen. */ 1302 1302 ' ' . __( '<a href="%s">Please update WordPress</a>.' ), … … 1304 1304 ); 1305 1305 } elseif ( current_user_can( 'update_php' ) ) { 1306 printf(1306 $incompatible_message .= sprintf( 1307 1307 /* translators: %s: URL to Update PHP page. */ 1308 1308 ' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ), 1309 1309 esc_url( wp_get_update_php_url() ) 1310 1310 ); 1311 wp_update_php_annotation( '</p><p><em>', '</em>');1311 $incompatible_message .= wp_update_php_annotation( '</p><p><em>', '</em>', false ); 1312 1312 } 1313 1313 } elseif ( ! $compatible_wp ) { 1314 _e( 'This plugin does not work with your version of WordPress.' );1314 $incompatible_message .= __( 'This plugin does not work with your version of WordPress.' ); 1315 1315 if ( current_user_can( 'update_core' ) ) { 1316 printf(1316 $incompatible_message .= sprintf( 1317 1317 /* translators: %s: URL to WordPress Updates screen. */ 1318 1318 ' ' . __( '<a href="%s">Please update WordPress</a>.' ), … … 1321 1321 } 1322 1322 } elseif ( ! $compatible_php ) { 1323 _e( 'This plugin does not work with your version of PHP.' );1323 $incompatible_message .= __( 'This plugin does not work with your version of PHP.' ); 1324 1324 if ( current_user_can( 'update_php' ) ) { 1325 printf(1325 $incompatible_message .= sprintf( 1326 1326 /* translators: %s: URL to Update PHP page. */ 1327 1327 ' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ), 1328 1328 esc_url( wp_get_update_php_url() ) 1329 1329 ); 1330 wp_update_php_annotation( '</p><p><em>', '</em>');1330 $incompatible_message .= wp_update_php_annotation( '</p><p><em>', '</em>', false ); 1331 1331 } 1332 1332 } 1333 1333 1334 echo '</p></div></td></tr>'; 1334 wp_admin_notice( 1335 $incompatible_message, 1336 array( 1337 'type' => 'error', 1338 'additional_classes' => array( 'notice-alt', 'inline', 'update-message' ), 1339 ) 1340 ); 1341 1342 echo '</td></tr>'; 1335 1343 } 1336 1344
Note: See TracChangeset
for help on using the changeset viewer.