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/includes/dashboard.php

    r31075 r31200  
    156156
    157157function _wp_dashboard_control_callback( $dashboard, $meta_box ) {
    158     echo '<form action="" method="post" class="dashboard-widget-control-form">';
     158    echo '<form method="post" class="dashboard-widget-control-form">';
    159159    wp_dashboard_trigger_widget_control( $meta_box['id'] );
    160160    wp_nonce_field( 'edit-dashboard-widget_' . $meta_box['id'], 'dashboard-widget-nonce' );
Note: See TracChangeset for help on using the changeset viewer.