WordPress.org

Make WordPress Core

Ticket #18517: 18517.diff

File 18517.diff, 1.1 KB (added by pragunbhutani, 7 years ago)
  • wp-admin/js/nav-menu.js

     
    528528
    529529                        processMethod = processMethod || api.addMenuItemToBottom;
    530530
    531                         if ( '' == url || 'http://' == url )
     531                        //Highlight the form field with red if URL is empty
     532                        if ( '' == url || 'http://' == url )    {
     533                                $('#menu-item-url-wrap').addClass('form-invalid');
    532534                                return false;
     535                        }
    533536
    534537                        // Show the ajax spinner
    535538                        $('.customlinkdiv .spinner').show();
  • wp-admin/css/wp-admin.css

     
    526526.nav-menus-php .list-container,
    527527.menu-item-handle,
    528528.link-to-original,
     529.customlinkdiv .form-invalid,
    529530.nav-menus-php .major-publishing-actions .form-invalid,
    530531.press-this #message,
    531532#TB_window,
     
    73587359        text-decoration: none;
    73597360}
    73607361
     7362.customlinkdiv .form-invalid,
    73617363.nav-menus-php .major-publishing-actions .form-invalid {
    73627364        padding-left: 4px;
    73637365        margin-left: -4px;