Searching, sorting and paginating don't clear messages
|Reported by:||nacin||Owned by:||scribu|
|Cc:||scribu, ryan, jane|
Trash a post. Then search. You'll still see the "Item moved to the Trash." message.
Granted, in the case of trashing there is still an undo link. However, that's not going to be the case for many other actions. For example, plugin or theme activation/deactivation. I'm searching for a theme and paginating among many themes, and yet still see "2 themes enabled" staring me down. It's very distracting.
If this is not the proper UX -- I can't imagine it is -- then an ajax action (searching, sorting, paginating) needs to unhook div.updated and div.error. I'm not sure of a clearer or cleaner way to do it.
Maybe not a blocker for 3.1, but it is a regression. In 3.0 all of these actions resulted in page refreshes, clearing the slate. Here though, it doesn't, and it's really tough to follow a message that lingers.
(NB: It also probably should reset the pop state URL to remove whichever arguments are left, but it's too difficult to detect which arguments need to go, even just across our screens. We'd need to encapsulate the typical remove_querg_arg from wp_get_referer logic.)