Making WordPress.org

Changeset 13126


Ignore:
Timestamp:
01/19/2024 12:07:27 AM (16 months ago)
Author:
dd32
Message:

Plugin Directory: Tools: Allow the authorcards tool to accept input from GET to allow it to be linked to from other pages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/tools/class-author-cards.php

    r12523 r13126  
    7676        }
    7777
    78         $usernames = ! empty( $_POST['users'] ) ? $_POST['users'] : '';
     78        $usernames = ! empty( $_REQUEST['users'] ) ? $_REQUEST['users'] : '';
    7979
    8080        echo '<div class="wrap author-cards">';
     
    8383        echo '<p>' . __( 'This is a tool to display an author card for one or more specified users.', 'wporg-plugins' ) . '</p>';
    8484
    85         echo '<form method="post">';
     85        echo '<form method="GET">';
    8686        echo '<table class="form-table"><tbody><tr>';
    8787        echo '<th scope="row"><label for="users">' . __( 'Users', 'wporg-plugins' ) . '</label></th><td>';
     88        echo '<input name="page" type="hidden" value="' . esc_attr( $_REQUEST['page'] ) . '">';
    8889        echo '<input name="users" type="text" id="users" value="' . esc_attr( $usernames ) . '" class="regular-text">';
    8990        echo '<p>' . __( 'Comma-separated list of user slugs, logins, and/or email addresses.', 'wporg-plugins' ) . '</p>';
    9091        echo '</td></tr></tbody></table>';
    91         echo '<p class="submit"><input type="submit" name="submit" id="submit" class="button button-primary" value="' . esc_attr__( 'Submit', 'wporg-plugins' ) . '"></p>';
     92        echo '<p class="submit"><input type="submit" id="submit" class="button button-primary" value="' . esc_attr__( 'Submit', 'wporg-plugins' ) . '"></p>';
    9293        echo '</form>';
    9394
Note: See TracChangeset for help on using the changeset viewer.