-
Notifications
You must be signed in to change notification settings - Fork 37
Conversation
@westonruter I don't see any DB write on trashed posts now. However, in my testing I deleted all posts/pages and created my very first page with the Customizer, then deleted it and Saved but a |
@fjarrett thanks very much for that video! Also, it looks like there is a problem with your Select2 dropdown, that the styles haven't been enqueued. |
@westonruter Running WP 4.7-alpha-38196 no plugins installed except Customize Posts, and Twenty Sixteen. Could it be because I have no posts in the database? |
@fjarrett I don't see how. In the source, do you see a reference to |
@westonruter Nothing in the console and nothing in the source. |
@westonruter I was able to delete, and then go back and restore a post by changing the status. Looks solid. Have you considered a (restore) link in place where the (move to trash) link was? Also after deleting and going away or refreshing, I don't see a way to restore without going to the old wp-admin interface. |
One other observation, changing to trash manually doesn't collapse the section like it does if you click the link. I am not sure if it needs to be consistent, just noticing. |
It did come to mind. But I figured for now it was just as easy to have them change status back to something else, rather than keep track of what the previous pre-trash status was (which is easy, but nonetheless). Maybe we should consider that for a future enhancement.
That's true. I suppose we could address that by allowing trashed posts to appear in the Select2 dropdown results. That would be simple to do.
Yes, this was intentional. |
This has been addressed in 915a306, 1deeeb9, and 4f5cb05. You can now access trashed posts in the Select2 dropdown. Selecting one of these trashed posts causes it to be loaded with the pre-trashed status and slug supplied and this new setting marked dirty from the start. |
This is added in 5bbe6d2: I'm not totally sure it is really useful. |
This issue should be fixed in 9852605 |
Agreed. My first thought was feature parity. I don't want to ever give anyone an excuse to exit the customizer. |
Looks good! 👍 |
@westonruter Wonderful. Works great for me. |
Thanks for testing!!
|
…nd improve for test_preview_customize_draft
…-dev-lib#198 from branch feature/exclude-build-dir-from-unit-test-coverage xwp/wp-dev-lib@4aba13a...02966db
trash
.post_status
property totrash
and then collapses the post section, to add a similar experience to clicking this same link on the edit post admin screen where clicking the link moves the user to the post list table. The collapse is done after a half-second delay to show the user that clicking the link just changes the dropdown, giving them a clue to restore the post by changing the status back to something other thantrash
.Fixes #172.