[wp-trac] [WordPress Trac] #57791: Create function to output admin notices

WordPress Trac noreply at wordpress.org
Thu Sep 14 09:44:17 UTC 2023


#57791: Create function to output admin notices
-------------------------------------------------+-------------------------
 Reporter:  joedolson                            |       Owner:  joedolson
     Type:  task (blessed)                       |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.4
Component:  Administration                       |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:
  feedback                                       |  administration
-------------------------------------------------+-------------------------

Comment (by TobiasBg):

 I'm now seeing
 {{{
 Warning: Undefined variable $updated_args in /var/www/html/wordpress/wp-
 admin/plugins.php on line 702
 }}}
 warnings on /wp-admin/plugins.php.

 Seems to be caused by [56573], where the definition of the `$updated_args`
 array in that file is inside an `else` clause but then the variable is
 used in subsequent `elseif` clauses as well. This probably just needs to
 be moved before the `if`.

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


More information about the wp-trac mailing list