Skip to content

Commit a615c5c

Browse files
committed
Plugin Directory: Release Confirmation: Switch the form to a POST, to allow additional parameters.
See #8009. git-svn-id: https://meta.svn.wordpress.org/sites/trunk@14499 74240141-8908-4e6f-9713-ba540dce6ec7
1 parent f10e4ad commit a615c5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-release-confirmation.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ static function get_actions( $plugin, $data ) {
297297
$discard_link = get_revalidation_js_url( $discard_link );
298298

299299
$buttons[] = sprintf(
300-
'<a href="%s" class="wp-element-button button approve-release" data-2fa-required data-2fa-message="%s">%s</a>',
300+
'<button formaction="%s" class="wp-element-button button approve-release" data-2fa-required data-2fa-message="%s">%s</button>',
301301
$confirm_link,
302302
esc_attr(
303303
sprintf(
@@ -311,7 +311,7 @@ static function get_actions( $plugin, $data ) {
311311
);
312312

313313
$buttons[] = sprintf(
314-
'<a href="%s" class="wp-element-button button approve-release" data-2fa-required data-2fa-message="%s">%s</a>',
314+
'<button formaction="%s" class="wp-element-button button approve-release" data-2fa-required data-2fa-message="%s">%s</button>',
315315
$discard_link,
316316
esc_attr(
317317
sprintf(
@@ -332,7 +332,7 @@ static function get_actions( $plugin, $data ) {
332332
) {
333333
// Plugin reviewers can undo a discard within 48hrs.
334334
$buttons[] = sprintf(
335-
'<a href="%s" class="wp-element-button button undo-discard">%s</a>',
335+
'<button formaction="%s" class="wp-element-button button undo-discard">%s</buttona>',
336336
Template::get_release_confirmation_link( $data['tag'], $plugin, 'undo-discard' ),
337337
__( 'Undo Discard', 'wporg-plugins' )
338338
);

0 commit comments

Comments
 (0)