WordPress.org

Make WordPress Core

Changeset 48906


Ignore:
Timestamp:
08/29/2020 12:41:00 AM (14 months ago)
Author:
SergeyBiryukov
Message:

Administration: Correct the padding for "Warning: these pages should not be the same" messages on Reading Settings screen.

Replace the legacy .error class with a more appropriate .notice-warning.

Props musicaljoeker, shital-patel, man4toman, garrett-eclipse, SergeyBiryukov.
Fixes #50766.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-reading.php

    r47859 r48906  
    138138</ul>
    139139    <?php if ( 'page' === get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) === get_option( 'page_on_front' ) ) : ?>
    140     <div id="front-page-warning" class="error inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same!' ); ?></p></div>
     140    <div id="front-page-warning" class="notice notice-warning inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same!' ); ?></p></div>
    141141    <?php endif; ?>
    142142    <?php if ( get_option( 'wp_page_for_privacy_policy' ) === get_option( 'page_for_posts' ) || get_option( 'wp_page_for_privacy_policy' ) === get_option( 'page_on_front' ) ) : ?>
    143     <div id="privacy-policy-page-warning" class="error inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same as your Privacy Policy page!' ); ?></p></div>
     143    <div id="privacy-policy-page-warning" class="notice notice-warning inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same as your Privacy Policy page!' ); ?></p></div>
    144144    <?php endif; ?>
    145145</fieldset></td>
Note: See TracChangeset for help on using the changeset viewer.