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..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,6 +49,13 @@
'; if ( 'publish' === get_post_status() || current_user_can( 'plugin_admin_view', $post ) ) { @@ -77,6 +84,15 @@ esc_html__( 'Test Preview', 'wporg-plugins' ) ); } + if ( $donate_link ) { + $buttons .= sprintf( + ' +
%2$s
+ ', + esc_url( $donate_link ), + esc_html__( 'Donate', 'wporg-plugins' ) + ); + } echo do_blocks( $buttons ); // phpcs:ignore -- Output escaped while building string. ?>