WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/16/2015 04:15:52 AM (7 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/edit-tags.php

    r31121 r31200  
    312312<div id="ajax-response"></div>
    313313
    314 <form class="search-form" action="" method="get">
     314<form class="search-form" method="get">
    315315<input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" />
    316316<input type="hidden" name="post_type" value="<?php echo esc_attr($post_type); ?>" />
     
    325325<div id="col-right">
    326326<div class="col-wrap">
    327 <form id="posts-filter" action="" method="post">
     327<form id="posts-filter" method="post">
    328328<input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" />
    329329<input type="hidden" name="post_type" value="<?php echo esc_attr($post_type); ?>" />
Note: See TracChangeset for help on using the changeset viewer.