Make WordPress Core


Ignore:
Timestamp:
01/16/2024 05:29:58 PM (9 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-login.php

    r57142 r57295  
    365365            ?>
    366366            <div class="language-switcher">
    367                 <form id="language-switcher" action="" method="get">
     367                <form id="language-switcher" method="get">
    368368
    369369                    <label for="language-switcher-locales">
Note: See TracChangeset for help on using the changeset viewer.