Ticket #50686: 50686.1.diff
File 50686.1.diff, 5.7 KB (added by , 4 years ago) |
---|
-
src/wp-admin/css/forms.css
238 238 color: #72777c; 239 239 } 240 240 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 { 245 247 border-color: #dc3232 !important; 246 248 box-shadow: 0 0 2px rgba(204, 0, 0, 0.8); 247 249 } -
src/wp-admin/includes/nav-menu.php
299 299 <input type="hidden" value="custom" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-type]" /> 300 300 <p id="menu-item-url-wrap" class="wp-clearfix"> 301 301 <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://" /> 303 303 </p> 304 304 305 305 <p id="menu-item-name-wrap" class="wp-clearfix"> -
src/wp-admin/includes/template.php
813 813 $cur_hh = current_time( 'H' ); 814 814 $cur_mn = current_time( 'i' ); 815 815 816 $month = '<label><span class="screen-reader-text">' . __( 'Month' ) . '</span><select ' . ( $multi ? '' : 'id="mm" ' ) . 'name="mm"' . $tab_index_attribute . ">\n";816 $month = '<label><span class="screen-reader-text">' . __( 'Month' ) . '</span><select class="form-required" ' . ( $multi ? '' : 'id="mm" ' ) . 'name="mm"' . $tab_index_attribute . ">\n"; 817 817 for ( $i = 1; $i < 13; $i = $i + 1 ) { 818 818 $monthnum = zeroise( $i, 2 ); 819 819 $monthtext = $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) ); … … 823 823 } 824 824 $month .= '</select></label>'; 825 825 826 $day = '<label><span class="screen-reader-text">' . __( 'Day' ) . '</span><input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" /></label>';827 $year = '<label><span class="screen-reader-text">' . __( 'Year' ) . '</span><input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" /></label>';828 $hour = '<label><span class="screen-reader-text">' . __( 'Hour' ) . '</span><input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" /></label>';829 $minute = '<label><span class="screen-reader-text">' . __( 'Minute' ) . '</span><input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" /></label>';826 $day = '<label><span class="screen-reader-text">' . __( 'Day' ) . '</span><input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>'; 827 $year = '<label><span class="screen-reader-text">' . __( 'Year' ) . '</span><input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>'; 828 $hour = '<label><span class="screen-reader-text">' . __( 'Hour' ) . '</span><input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>'; 829 $minute = '<label><span class="screen-reader-text">' . __( 'Minute' ) . '</span><input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>'; 830 830 831 831 echo '<div class="timestamp-wrap">'; 832 832 /* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */ -
src/wp-admin/nav-menus.php
961 961 <div id="nav-menu-header"> 962 962 <div class="major-publishing-actions wp-clearfix"> 963 963 <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; ?> /> 965 965 <div class="publishing-action"> 966 966 <?php submit_button( empty( $nav_menu_selected_id ) ? __( 'Create Menu' ) : __( 'Save Menu' ), 'primary large menu-save', 'save_menu', false, array( 'id' => 'save_menu_header' ) ); ?> 967 967 </div><!-- END .publishing-action -->