Make WordPress Core


Ignore:
Timestamp:
01/16/2015 04:15:52 AM (9 years ago)
Author:
wonderboymusic
Message:

In HTML5, the action attribute is no longer required. Remove this attribute when empty.

The admin HTML is served with the HTML5 doctype.

"The action and formaction content attributes, if specified, must have a value that is a valid non-empty URL potentially surrounded by spaces."
http://www.w3.org/html/wg/drafts/html/master/forms.html#attr-fs-action

Props voldemortensen.
Fixes #30126.

File:
1 edited

Legend:

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

    r30356 r31200  
    685685        <div class="clear"></div>
    686686
    687         <form id="nav-menu-meta" action="" class="nav-menu-meta" method="post" enctype="multipart/form-data">
     687        <form id="nav-menu-meta" class="nav-menu-meta" method="post" enctype="multipart/form-data">
    688688            <input type="hidden" name="menu" id="nav-menu-meta-object-id" value="<?php echo esc_attr( $nav_menu_selected_id ); ?>" />
    689689            <input type="hidden" name="action" value="add-menu-item" />
     
    695695    <div id="menu-management-liquid">
    696696        <div id="menu-management">
    697             <form id="update-nav-menu" action="" method="post" enctype="multipart/form-data">
     697            <form id="update-nav-menu" method="post" enctype="multipart/form-data">
    698698                <div class="menu-edit <?php if ( $add_new_screen ) echo 'blank-slate'; ?>">
    699699                    <?php
Note: See TracChangeset for help on using the changeset viewer.