Make WordPress Core


Ignore:
Timestamp:
01/16/2024 05:29:58 PM (4 months ago)
Author:
joedolson
Message:

Administration: Remove empty form action attributes.

Remove the action attribute in the login language selector, privacy forms, and classic widget forms.

An empty action attribute is invalid HTML4 and unsupported HTML5. The action attribute is optional, but must have a valid URL when provided.

Props Malae, audrasjb, bartkleinreesink, nicolefurlan, shubhamsedani, costdev, peterwilsoncc, rajinsharwar, joedolson.
Fixes #58226.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/widgets-form.php

    r56573 r57295  
    479479                <?php if ( $is_inactive_widgets ) { ?>
    480480                <div class="remove-inactive-widgets">
    481                     <form action="" method="post">
     481                    <form method="post">
    482482                        <p>
    483483                            <?php
Note: See TracChangeset for help on using the changeset viewer.