Changeset 47835 for trunk/src/wp-admin/update-core.php
- Timestamp:
- 05/20/2020 06:47:24 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update-core.php
r47808 r47835 329 329 <tbody class="plugins"> 330 330 <?php 331 332 $auto_updates = array(); 333 if ( wp_is_auto_update_enabled_for_type( 'plugin' ) ) { 334 $auto_updates = (array) get_site_option( 'auto_update_plugins', array() ); 335 $auto_update_notice = ' | ' . wp_get_auto_update_message(); 336 } 337 331 338 foreach ( (array) $plugins as $plugin_file => $plugin_data ) { 332 339 $plugin_data = (object) _get_plugin_data_markup_translate( $plugin_file, (array) $plugin_data, false, true ); … … 420 427 ); 421 428 echo ' ' . $details . $compat . $upgrade_notice; 429 if ( in_array( $plugin_file, $auto_updates, true ) ) { 430 echo $auto_update_notice; 431 } 422 432 ?> 423 433 </p></td> … … 479 489 <tbody class="plugins"> 480 490 <?php 491 $auto_updates = array(); 492 if ( wp_is_auto_update_enabled_for_type( 'theme' ) ) { 493 $auto_updates = (array) get_site_option( 'auto_update_themes', array() ); 494 $auto_update_notice = ' | ' . wp_get_auto_update_message(); 495 } 496 481 497 foreach ( $themes as $stylesheet => $theme ) { 482 498 $checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) ); 499 483 500 ?> 484 501 <tr> … … 502 519 $theme->update['new_version'] 503 520 ); 521 if ( in_array( $stylesheet, $auto_updates, true ) ) { 522 echo $auto_update_notice; 523 } 504 524 ?> 505 525 </p></td>
Note: See TracChangeset
for help on using the changeset viewer.