From d40ec0c03de39c9688f1ceae38ad5bfd21d2d498 Mon Sep 17 00:00:00 2001 From: Nikunj Hatkar Date: Wed, 9 Apr 2025 17:00:07 +0530 Subject: [PATCH 1/2] Add donate button near download button --- .../template-parts/plugin-single.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/template-parts/plugin-single.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/template-parts/plugin-single.php index b28bcffb99..fa68d84736 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/template-parts/plugin-single.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/template-parts/plugin-single.php @@ -49,6 +49,7 @@
'; if ( 'publish' === get_post_status() || current_user_can( 'plugin_admin_view', $post ) ) { @@ -77,6 +78,15 @@ esc_html__( 'Test Preview', 'wporg-plugins' ) ); } + if ( $donate_link ) { + $buttons .= sprintf( + ' + + ', + esc_url( $donate_link ), + esc_html__( 'Donate', 'wporg-plugins' ) + ); + } echo do_blocks( $buttons ); // phpcs:ignore -- Output escaped while building string. ?>
From 20d8d1a5de439a43bfa6d38ee856321ac6740352 Mon Sep 17 00:00:00 2001 From: Nikunj Hatkar Date: Mon, 21 Apr 2025 17:14:26 +0530 Subject: [PATCH 2/2] Added phpdoc comment --- .../pub/wporg-plugins-2024/template-parts/plugin-single.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/template-parts/plugin-single.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/template-parts/plugin-single.php index fa68d84736..ece9438ebe 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/template-parts/plugin-single.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/template-parts/plugin-single.php @@ -49,7 +49,13 @@
'; if ( 'publish' === get_post_status() || current_user_can( 'plugin_admin_view', $post ) ) {