Closed westonruter closed 7 years ago
I was testing this and I came across something unexpected in relation to deleting settings out of a changeset. What I did was:
blogname
and hit Save Draft.post_content
got wiped out. ⚠️ I can't seem to reproduce that anymore.
Another issue I am seeing now. When I publish a changeset from the edit post screen, I then get:
You can’t edit this item because it is in the Trash. Please restore it and try again.
I see. I was testing on a WP Engine install and revisions are disabled on their platform. That means that changesets don't get prevented from being transitioned to the trash
status.
Workaround we can add for WPEngine:
add_filter( 'wp_revisions_to_keep', function( $num, $post ) {
if ( 'customize_changeset' === $post->post_type && 0 === $num ) {
$num = 1;
}
return $num;
}, 10, 2 );
Bump tested up to
?
ack -Q 0.6.0-rc1
and replace with0.6.0
where appropriate (this needs to be automated)0.6.0
onmaster
, with ZIP build viagrunt build; cd build; zip -r ../customize-snapshots-0.6.0.zip *; cd -; cp customize-snapshots-0.6.0.zip ~/Downloads/customize-snapshots.zip
, and with link to readme on tag tree: https://github.com/xwp/wp-customize-snapshots/blob/0.6.0/readme.md#changelogmaster
branch to go ✅ .grunt deploy
. Remember to look at SVN diff.pbpaste | sed "s/$PREV_NEW/$NEXT_NEW/g" | sed "s/$PREV_OLD/$PREV_NEW/g" | sed 's:\[x:\[ :' | pbcopy