Repository navigation
On This Day dashboard widget follow up - #14866
peterwilsoncc wants to merge 23 commits into
Conversation
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
| $( '#wp-on-this-day-posts-form form button' ).on( 'click.postboxes', function( event ) { | ||
| event.preventDefault(); | ||
| var enabled = '1' === $( this ).prop( 'value' ); | ||
|
|
||
| postboxes.setOnThisDayDisplay( enabled ); | ||
| postboxes.save_on_this_day_display( enabled ); | ||
| } ); |
There was a problem hiding this comment.
Is this better in another location?
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
Co-authored-by: Weston Ruter <westonruter@gmail.com>
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Weston Ruter <westonruter@gmail.com>
|
@propsbot add Joen, fcoveram |
Co-authored-by: Weston Ruter <westonruter@gmail.com>
Makes the following changes to the On This Day dashboard widget:
wpprefix in a bunch of places (mainly IDs and classes)remove_filterwhere it's not needed, use theget_echo()helper.Trac ticket: https://core.trac.wordpress.org/ticket/65116
Use of AI Tools
get_echo()helper