Changeset 45117
- Timestamp:
- 04/05/2019 04:59:34 PM (6 years ago)
- Location:
- trunk/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/admin-header.php
r44639 r45117 51 51 /* translators: Admin screen title. 1: Admin screen name, 2: Network or site name */ 52 52 $admin_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $title, $admin_title ); 53 } 54 55 if ( wp_is_recovery_mode() ) { 56 /* translators: %s: Admin screen title. */ 57 $admin_title = sprintf( __( '%s — Recovery Mode' ), $admin_title ); 53 58 } 54 59 -
trunk/src/wp-admin/css/colors/_admin.scss
r43019 r45117 349 349 } 350 350 351 /* Admin Bar: recovery mode */ 352 353 #wpadminbar #wp-admin-bar-recovery-mode { 354 color: $adminbar-recovery-exit-text; 355 background-color: $adminbar-recovery-exit-background; 356 } 357 358 #wpadminbar #wp-admin-bar-recovery-mode .ab-item, 359 #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { 360 color: $adminbar-recovery-exit-text; 361 } 362 363 #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover >.ab-item, 364 #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, 365 #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, 366 #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { 367 color: $adminbar-recovery-exit-text; 368 background-color: $adminbar-recovery-exit-background-alt; 369 } 370 351 371 /* Admin Bar: my account */ 352 372 -
trunk/src/wp-admin/css/colors/_variables.scss
r32051 r45117 56 56 $adminbar-input-background: lighten( $menu-background, 7% ) !default; 57 57 58 $adminbar-recovery-exit-text: $menu-bubble-text !default; 59 $adminbar-recovery-exit-background: $menu-bubble-background !default; 60 $adminbar-recovery-exit-background-alt: mix(black, $adminbar-recovery-exit-background, 10%) !default; 61 58 62 $menu-customizer-text: mix( $base-color, $text-color, 40% ) !default; -
trunk/src/wp-admin/includes/admin-filters.php
r44973 r45117 121 121 add_action( 'admin_notices', 'paused_themes_notice', 5 ); 122 122 add_action( 'admin_notices', 'maintenance_nag', 10 ); 123 add_action( 'admin_notices', 'wp_recovery_mode_nag', 1 ); 123 124 124 125 add_filter( 'update_footer', 'core_update_footer' ); -
trunk/src/wp-admin/includes/update.php
r44980 r45117 830 830 <?php 831 831 } 832 833 /** 834 * Displays a notice when the user is in recovery mode. 835 * 836 * @since 5.2.0 837 */ 838 function wp_recovery_mode_nag() { 839 if ( ! wp_is_recovery_mode() ) { 840 return; 841 } 842 843 ?> 844 <div class="notice notice-info"> 845 <p> 846 <?php esc_html_e( 'You are in recovery mode. This means there may be an error with a theme or plugin. To exit recovery mode, log out or use the Exit button.' ); ?> 847 </p> 848 </div> 849 <?php 850 } -
trunk/src/wp-includes/class-wp-recovery-mode.php
r44973 r45117 83 83 $this->is_initialized = true; 84 84 85 add_action( 'wp_logout', array( $this, 'exit_recovery_mode' ) ); 85 86 add_action( 'login_form_' . self::EXIT_ACTION, array( $this, 'handle_exit_recovery_mode' ) ); 86 87 -
trunk/src/wp-includes/css/admin-bar.css
r44793 r45117 383 383 #wpadminbar ul li:last-child .ab-item { 384 384 box-shadow: none; 385 } 386 387 /** 388 * Recovery Mode 389 */ 390 #wpadminbar #wp-admin-bar-recovery-mode { 391 color: #fff; 392 background-color: #ca4a1f; 393 } 394 395 #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover >.ab-item, 396 #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, 397 #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, 398 #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { 399 color: #fff; 400 background-color: #c0461e; 385 401 } 386 402 -
trunk/src/wp-login.php
r44973 r45117 64 64 /* translators: Login screen title. 1: Login screen name, 2: Network or site name */ 65 65 $login_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $title, $login_title ); 66 67 if ( wp_is_recovery_mode() ) { 68 /* translators: %s: Login screen title. */ 69 $login_title = sprintf( __( '%s — Recovery Mode' ), $login_title ); 70 } 66 71 67 72 /**
Note: See TracChangeset
for help on using the changeset viewer.