Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Likecoin shortcode display when widgets are disabled on page/post #261

Merged
merged 3 commits into from
Jan 9, 2024

Conversation

yuliyang
Copy link
Contributor

@yuliyang yuliyang commented Jan 9, 2024

Bug report

If I insert shortcode [likecoin] anywhere in posts or pages, and I have "LikeCoin widget" options disabled (Show in Posts/Pages), the shortcode will not display.
I added a param to likecoin_add_likebutton to consider shortcode when displaying the widget.

Copy link
Member

@williamchong williamchong left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution

likecoin/public/likecoin-button.php Outdated Show resolved Hide resolved
likecoin/public/likecoin-button.php Outdated Show resolved Hide resolved
@williamchong williamchong force-pushed the fix-shortcode-display branch from 420e5d0 to 5128e76 Compare January 9, 2024 16:06
@williamchong williamchong force-pushed the fix-shortcode-display branch from 0c980c4 to 9d63ef1 Compare January 9, 2024 16:10
@williamchong williamchong merged commit 002f60b into likecoin:master Jan 9, 2024
3 checks passed
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