Closed pbiron closed 4 years ago
While this is ready to be reviewed, it's not quite ready to be merged. It still needs at least 2 things:
wpAjax.unserialize()
I've got some other things to attend to, I'll get to those as soon as I can.
@audrasjb Can you please review the way I did the strings in wp_autoupdates_toggle_auto_updates()
? I not sure they are done in a way that is helpful to translators.
Thinking this is ready to merge with couple of tiny changes/improvements. Can be refined more while or after the core patch if needed.
I'm just about done with replacing wpAjax.unserialize()
with @data
attributes. Will push that shortly.
@azaozz I think it can be merged now, and any other changes that are necessary can be done in a separate PR.
Fixes #102, #94
This simplifies Ajax:
enable/disable
handlers into a singletoggle
handlerHTML injection
. that is, the markup for all "states" is output from PHP when the screen is originally rendered and the JS basically just shows/hides the relevant parts depending on whether it isenabling
ordisabling
It also addresses the "unexpected/quite annoying jump/shift" when the Ajax is processing, as reported in #94. It does that with the proposed solution in https://github.com/WordPress/wp-autoupdates/issues/94#issuecomment-623570523
Also fixes several other WPCS-related issues and an a11y problem where
@aria-label
wasn't correct in one place.If this gets accepted, then we can close #99.