[wp-trac] [WordPress Trac] #11515: Admin needs standardized way of handling messages (notices) displayed to the user
WordPress Trac
noreply at wordpress.org
Tue Nov 1 14:39:44 UTC 2016
#11515: Admin needs standardized way of handling messages (notices) displayed to
the user
------------------------------------------+-----------------------------
Reporter: filosofo | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Administration | Version: 3.0
Severity: normal | Resolution:
Keywords: error-message admin-messages | Focuses:
------------------------------------------+-----------------------------
Comment (by gschoppe):
Replying to [comment:18 obenland]:
I think using transients is the wrong way to go, because if multiple users
are sharing an account, they can have race conditions that cause one user
to receive another's notices.
I built out a persistent notice class based on using sessions to store the
notices. I think it is a much more flexible option, moving forward. It's
built as a drop-in solution, so that it can be included by themes and
plugins now, with an eye toward future integration with core.
https://gist.github.com/gschoppe/dd7d12577974166529ea0139f1f53939
--
Ticket URL: <https://core.trac.wordpress.org/ticket/11515#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list