IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 324 | 324 | * @since 2.9.0 |
| 325 | 325 | */ |
| 326 | 326 | function wp_plugin_update_rows() { |
| 327 | | if ( !current_user_can('update_plugins' ) ) |
| 328 | | return; |
| 329 | | |
| 330 | 327 | $plugins = get_site_transient( 'update_plugins' ); |
| 331 | 328 | if ( isset($plugins->response) && is_array($plugins->response) ) { |
| 332 | 329 | $plugins = array_keys( $plugins->response ); |
| … |
… |
|
| 377 | 374 | |
| 378 | 375 | if ( ! current_user_can( 'update_plugins' ) ) { |
| 379 | 376 | /* translators: 1: plugin name, 2: details URL, 3: additional link attributes, 4: version number */ |
| 380 | | printf( __( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a>.' ), |
| | 377 | printf( _x( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a>.', 'plugin' ), |
| 381 | 378 | $plugin_name, |
| 382 | 379 | esc_url( $details_url ), |
| 383 | 380 | sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', |
| … |
… |
|
| 399 | 396 | ); |
| 400 | 397 | } else { |
| 401 | 398 | /* translators: 1: plugin name, 2: details URL, 3: additional link attributes, 4: version number, 5: update URL, 6: additional link attributes */ |
| 402 | | printf( __( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a> or <a href="%5$s" %6$s>update now</a>.' ), |
| | 399 | printf( _x( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a> or <a href="%5$s" %6$s>update now</a>.', 'plugin' ), |
| 403 | 400 | $plugin_name, |
| 404 | 401 | esc_url( $details_url ), |
| 405 | 402 | sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', |
| … |
… |
|
| 522 | 519 | echo '<tr class="plugin-update-tr' . $active . '" id="' . esc_attr( $theme->get_stylesheet() . '-update' ) . '" data-slug="' . esc_attr( $theme->get_stylesheet() ) . '"><td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange"><div class="update-message notice inline notice-warning notice-alt"><p>'; |
| 523 | 520 | if ( ! current_user_can( 'update_themes' ) ) { |
| 524 | 521 | /* translators: 1: theme name, 2: details URL, 3: additional link attributes, 4: version number */ |
| 525 | | printf( __( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a>.'), |
| | 522 | printf( _x( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a>.', 'theme'), |
| 526 | 523 | $theme['Name'], |
| 527 | 524 | esc_url( $details_url ), |
| 528 | 525 | sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', |
| … |
… |
|
| 544 | 541 | ); |
| 545 | 542 | } else { |
| 546 | 543 | /* translators: 1: theme name, 2: details URL, 3: additional link attributes, 4: version number, 5: update URL, 6: additional link attributes */ |
| 547 | | printf( __( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a> or <a href="%5$s" %6$s>update now</a>.' ), |
| | 544 | printf( _x( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a> or <a href="%5$s" %6$s>update now</a>.', 'theme' ), |
| 548 | 545 | $theme['Name'], |
| 549 | 546 | esc_url( $details_url ), |
| 550 | 547 | sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', |