Ticket #57999: 57999-notice.diff
File 57999-notice.diff, 1.1 KB (added by , 19 months ago) |
---|
-
src/wp-admin/update-core.php
1031 1031 1032 1032 <?php 1033 1033 if ( $upgrade_error ) { 1034 echo '<div class="error"><p>';1035 1034 if ( 'themes' === $upgrade_error ) { 1036 _e( 'Please select one or more themes to update.' ); 1035 $themes = get_theme_updates(); 1036 if ( ! empty( $themes ) ) { 1037 $classes = 'error'; 1038 $message = __( 'Please select one or more themes to update.' ); 1039 } else { 1040 $classes = 'notice notice-info'; 1041 $message = __( 'Your themes are all up to date.' ); 1042 } 1037 1043 } else { 1038 _e( 'Please select one or more plugins to update.' ); 1044 $plugins = get_plugin_updates(); 1045 if ( ! empty( $plugins ) ) { 1046 $classes = 'error'; 1047 $message = __( 'Please select one or more plugins to update.' ); 1048 } else { 1049 $classes = 'notice notice-info'; 1050 $message = __( 'Your plugins are all up to date.' ); 1051 } 1039 1052 } 1040 echo '</p></div>';1053 printf( '<div class="%s"><p>%s</p></div>', $classes, $message ); 1041 1054 } 1042 1055 1043 1056 $last_update_check = false;