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

WordPress Trac noreply at wordpress.org
Tue Oct 10 09:10:52 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):

 With an incompatible PHP version (just set a plugin's "Requires PHP"
 header to e.g. 8.4), I'm now getting
 {{{
 Uncaught ArgumentCountError: 2 arguments are required, 1 given in
 /var/www/html/wordpress/wp-admin/includes/class-wp-plugins-list-
 table.php:1282
 }}}

 This is caused by the removal of the comma at the end of line 1285 in wp-
 admin/includes/class-wp-plugins-list-table.php, which was done in
 https://core.trac.wordpress.org/changeset/56599#file4, when only the HTML
 code should have been removed. `printf()` has only one argument then.

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


More information about the wp-trac mailing list