Skip to content

Conversation

nikunj8866
Copy link

@nikunj8866 nikunj8866 commented Apr 9, 2025

Meta Trac: https://meta.trac.wordpress.org/ticket/7928
Issue: #501

This PR improves donation visibility by placing a more prominent "Donate" button next to the "Download" button on plugin pages. This aims to better support plugin developers by making the donation option more accessible to users.

if ( $donate_link ) {
$buttons .= sprintf(
'<!-- wp:button {"className":"is-small is-style-outline plugin-donate download-button"} -->
<div class="wp-block-button is-small is-style-outline plugin-donate download-button"><a class="wp-block-button__link wp-element-button" href="%1$s">%2$s</a></div>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the right way to do the html. Are those classes default

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I've followed the button HTML structure consistent with the existing elements such as Download, Live Preview, and Test Preview.

@nikunj8866 nikunj8866 requested a review from bramburn April 21, 2025 11:46
@bramburn
Copy link

bramburn commented Apr 21, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants