Make WordPress Core

Ticket #50686: 50686.diff

File 50686.diff, 3.3 KB (added by helen, 4 years ago)
  • src/wp-admin/css/forms.css

     
    238238        color: #72777c;
    239239}
    240240
    241 .form-invalid input,
    242 .form-invalid input:focus,
    243 .form-invalid select,
    244 .form-invalid select:focus {
     241.form-invalid .form-required,
     242.form-invalid .form-required:focus,
     243.form-invalid.form-required input,
     244.form-invalid.form-required input:focus,
     245.form-invalid.form-required select,
     246.form-invalid.form-required select:focus {
    245247        border-color: #dc3232 !important;
    246248        box-shadow: 0 0 2px rgba(204, 0, 0, 0.8);
    247249}
  • src/wp-admin/includes/nav-menu.php

     
    299299                <input type="hidden" value="custom" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-type]" />
    300300                <p id="menu-item-url-wrap" class="wp-clearfix">
    301301                        <label class="howto" for="custom-menu-item-url"><?php _e( 'URL' ); ?></label>
    302                         <input id="custom-menu-item-url" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-url]" type="text"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="code menu-item-textbox" placeholder="https://" />
     302                        <input id="custom-menu-item-url" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-url]" type="text"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="code menu-item-textbox form-required" placeholder="https://" />
    303303                </p>
    304304
    305305                <p id="menu-item-name-wrap" class="wp-clearfix">
    306306                        <label class="howto" for="custom-menu-item-name"><?php _e( 'Link Text' ); ?></label>
    307                         <input id="custom-menu-item-name" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-title]" type="text"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="regular-text menu-item-textbox" />
     307                        <input id="custom-menu-item-name" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-title]" type="text"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="regular-text menu-item-textbox form-required" />
    308308                </p>
    309309
    310310                <p class="button-controls wp-clearfix">
  • src/wp-admin/nav-menus.php

     
    961961                                        <div id="nav-menu-header">
    962962                                                <div class="major-publishing-actions wp-clearfix">
    963963                                                        <label class="menu-name-label" for="menu-name"><?php _e( 'Menu Name' ); ?></label>
    964                                                         <input name="menu-name" id="menu-name" type="text" class="menu-name regular-text menu-item-textbox" <?php echo $menu_name_val . $menu_name_aria_desc; ?> />
     964                                                        <input name="menu-name" id="menu-name" type="text" class="menu-name regular-text menu-item-textbox form-required" required="required" <?php echo $menu_name_val . $menu_name_aria_desc; ?> />
    965965                                                        <div class="publishing-action">
    966966                                                                <?php submit_button( empty( $nav_menu_selected_id ) ? __( 'Create Menu' ) : __( 'Save Menu' ), 'primary large menu-save', 'save_menu', false, array( 'id' => 'save_menu_header' ) ); ?>
    967967                                                        </div><!-- END .publishing-action -->