Make WordPress Core

Ticket #58226: 58226.2.diff

File 58226.2.diff, 1.7 KB (added by joedolson, 22 months ago)

Remove all empty form action attributes

  • src/wp-admin/options-privacy.php

     
    270270                                </label>
    271271                        </th>
    272272                        <td>
    273                                 <form class="wp-create-privacy-page" method="post" action="">
     273                                <form class="wp-create-privacy-page" method="post">
    274274                                        <input type="hidden" name="action" value="create-privacy-page" />
    275275                                        <?php
    276276                                        wp_nonce_field( 'create-privacy-page' );
     
    293293                                </label>
    294294                        </th>
    295295                        <td>
    296                                 <form method="post" action="">
     296                                <form method="post">
    297297                                        <input type="hidden" name="action" value="set-privacy-page" />
    298298                                        <?php
    299299                                        wp_dropdown_pages(
  • src/wp-admin/widgets-form.php

     
    478478
    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
    484484                                                        $attributes = array( 'id' => 'inactive-widgets-control-remove' );
  • src/wp-login.php

     
    364364                if ( ! empty( $languages ) ) {
    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">
    370370                                                <span class="dashicons dashicons-translation" aria-hidden="true"></span>