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/plugin-install.php

    r31110 r31200  
    177177    }
    178178
    179     ?><form class="search-form search-plugins" method="get" action="">
     179    ?><form class="search-form search-plugins" method="get">
    180180        <input type="hidden" name="tab" value="search" />
    181181        <?php if ( $type_selector ) : ?>
     
    223223    ?>
    224224    <p class="install-help"><?php _e( 'If you have marked plugins as favorites on WordPress.org, you can browse them here.' ); ?></p>
    225     <form method="get" action="">
     225    <form method="get">
    226226        <input type="hidden" name="tab" value="favorites" />
    227227        <p>
     
    254254
    255255    ?>
    256     <form id="plugin-filter" action="" method="post">
     256    <form id="plugin-filter" method="post">
    257257        <?php $wp_list_table->display(); ?>
    258258    </form>
Note: See TracChangeset for help on using the changeset viewer.