Make WordPress Core


Ignore:
Timestamp:
05/23/2016 09:39:13 AM (9 years ago)
Author:
ocean90
Message:

Menus: Use new colors for error/info notices.

Props barryceelen.
Fixes #36857.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/nav-menu.php

    r37488 r37529  
    917917        }
    918918
    919         if ( $some_pending_menu_items )
    920             $result .= '<div class="updated inline"><p>' . __('Click Save Menu to make pending menu items public.') . '</p></div>';
    921 
    922         if ( $some_invalid_menu_items )
    923             $result .= '<div class="error inline"><p>' . __('There are some invalid menu items. Please check or delete them.') . '</p></div>';
     919        if ( $some_pending_menu_items ) {
     920            $result .= '<div class="notice notice-info notice-alt inline"><p>' . __( 'Click Save Menu to make pending menu items public.' ) . '</p></div>';
     921        }
     922
     923        if ( $some_invalid_menu_items ) {
     924            $result .= '<div class="notice notice-error notice-alt inline"><p>' . __( 'There are some invalid menu items. Please check or delete them.' ) . '</p></div>';
     925        }
    924926
    925927        $result .= '<ul class="menu" id="menu-to-edit"> ';
Note: See TracChangeset for help on using the changeset viewer.