[wp-trac] [WordPress Trac] #11515: Admin needs standardized way of handling messages (notices) displayed to the user

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 13 19:35:23 UTC 2010


#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          |    Keywords:  error-message admin-messages
----------------------------+-----------------------------------------------
Changes (by edward mindreantre):

 * cc: edward, mindreantre (added)


Comment:

 Excuse me for being a retard, but can't one use the $session array to
 store stuff?

 We need a message api.

 addErrorMessage(message);
 addInfoMessage('The plugin has been activated.');
 addErrorMessage(__('Your post is too long!', PLUGINNAME));

 if (!hasErrorMessages())
  echo 'doing stuff';
 else
  echo displayMessages();

 Something like that, eh?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11515#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list