[wp-trac] [WordPress Trac] #19691: Cannot modify admin messages for /wp-admin/edit.php

WordPress Trac noreply at wordpress.org
Mon Oct 12 23:52:52 UTC 2015


#19691: Cannot modify admin messages for /wp-admin/edit.php
------------------------------------------------+--------------------------
 Reporter:  mikeschinkel                        |       Owner:
     Type:  enhancement                         |      Status:  new
 Priority:  normal                              |   Milestone:  Awaiting
Component:  Administration                      |  Review
 Severity:  normal                              |     Version:  3.3
 Keywords:  dev-feedback has-patch 2nd-opinion  |  Resolution:
                                                |     Focuses:
------------------------------------------------+--------------------------
Changes (by MikeSchinkel):

 * keywords:  dev-feedback needs-refresh => dev-feedback has-patch 2nd-
               opinion


Comment:

 In revising the patch I decided to take it a different direction.  Rather
 than add one hook that tried to normalize across each use-case I've named
 a different hook for each use-case.  In hindsight I think that makes a lot
 more sense and will minimize unintentional side efforts when people use
 these hooks.

 It also means I did not have to enable single message locations to output
 multiple messages, which means no chance for backward compatibility
 issues.

 These are the multi-message filters added:

 - `'site_info_admin_messages'`
 - `'new_site_admin_messages'`
 - `'site_settings_admin_messages'`
 - `'edit_comments_admin_messages'`
 - `'nav_menu_admin_messages'`
 - `'new_user_admin_errors'`
 - `'users_admin_messages'`


 These are the single message filters added:

 - `'edit_tag_admin_message'`
 - `'upload_admin_message'`
 - `'widget_admin_message'`
 - `'widget_admin_error'`

--
Ticket URL: <https://core.trac.wordpress.org/ticket/19691#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list