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/network/themes.php

    r29856 r31200  
    268268?>
    269269
    270 <form method="get" action="">
     270<form method="get">
    271271<?php $wp_list_table->search_box( __( 'Search Installed Themes' ), 'theme' ); ?>
    272272</form>
     
    279279?>
    280280
    281 <form method="post" action="">
     281<form method="post">
    282282<input type="hidden" name="theme_status" value="<?php echo esc_attr($status) ?>" />
    283283<input type="hidden" name="paged" value="<?php echo esc_attr($page) ?>" />
Note: See TracChangeset for help on using the changeset viewer.