Making WordPress.org

Changeset 13468

Timestamp:
04/08/2024 12:44:49 AM (4 months ago)
Author:
adamwood
Message:

Plugin BBPress Term Subscription: Update button style

Use block styles for term subscription button.
In a child theme of wporg-parent-2021 the primary button styles are applied.
If not, the default .button styles should still apply.

Closes https://github.com/WordPress/wordpress.org/issues/211

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-term-subscription/inc/class-plugin.php

    r12388 r13468  
    930930        }
    931931
    932         return sprintf(
    933             "<div class='wporg-bbp-term-subscription'><a href='%s' class='%s' onclick='%s'>%s</a></div>",
     932        return do_blocks( sprintf(
     933            '<!-- wp:button -->
     934            <div class="wp-block-button is-small"><a href="%s" class="%s wp-block-button__link wp-element-button" onclick="%s">%s</a></div>
     935            <!-- /wp:button -->',
    934936            $url,
    935937            esc_attr( $r['class'] ),
    936938            esc_attr( $js_confirm ),
    937939            esc_html( $text )
    938         );
     940        );
    939941    }
    940942}
Note: See TracChangeset for help on using the changeset viewer.