[wp-hackers] Admin notices
scribu
mail at scribu.net
Mon Apr 11 17:05:44 UTC 2011
On Mon, Apr 11, 2011 at 7:28 PM, Jeremy Clarke <jer at simianuprising.com>wrote:
> This is probably the ticket you were thinking of, it has discussion on
> relevant topics:
>
> Move show_message() into WP_Error class and add support for various
> WP_Error features that are missing<http://core.trac.wordpress.org/ticket/12254>
> It doesn't directly solve the admin_notices issue, but support for that use
> case is obvious once the show_message() situation is worked out. A WP_Error
> based messaging system could be used by plugins in admin_notices to avoid
> display inconsistency even if they weren't using a more global error
> registration API.
>
> I imagine transients would be the best way to implement a system for adding
> a message at any time and having it shown on the next pageload in
> admin_notices, though you would probably want to also use _POST to make sure
> it's the same user who caused the message to be shown.
>
It wasn't that one, but a ticket that mentioned transients as you say.
Anyway, found an even simpler proposal:
http://core.trac.wordpress.org/ticket/12738 (notice helper)
--
http://scribu.net
More information about the wp-hackers
mailing list