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

    r31188 r31200  
    10271027        ?>
    10281028        <div id="screen-options-wrap" class="hidden" tabindex="-1" aria-label="<?php esc_attr_e('Screen Options Tab'); ?>">
    1029         <form id="adv-settings" action="" method="post">
     1029        <form id="adv-settings" method="post">
    10301030        <?php if ( isset( $wp_meta_boxes[ $this->id ] ) || $this->get_option( 'per_page' ) || ( $columns && empty( $columns['_title'] ) ) ) : ?>
    10311031            <h5><?php _e( 'Show on screen' ); ?></h5>
Note: See TracChangeset for help on using the changeset viewer.