-
Notifications
You must be signed in to change notification settings - Fork 40
Support ClassicPress News widget #65
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
Conversation
Signed-off-by: xxsimoxx <simone@gieffeedizioni.it>
Signed-off-by: xxsimoxx <simone@gieffeedizioni.it>
Signed-off-by: xxsimoxx <simone@gieffeedizioni.it>
joedolson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to check ! function_exists( 'wp_print_community_events_markup' ), as that would support any case where this was removed, rather than being specific to Classic Press. Thoughts?
Signed-off-by: xxsimoxx <simone@gieffeedizioni.it>
|
Sure, I agree to the proposed change and just pushed a commit. |
Signed-off-by: Joe Dolson <design@joedolson.com>
joedolson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a comment to provide context for this, as I can easily imagine future me saying "why would this function not exist?"
ClassicPress is a fork of WordPress, without blocks.
Since ClassicPress have it's own news system, this prevents a fatal error in the dashboard.
wp_print_community_events_markup()is not present in ClassicPress as the Community Events widget.Before
After