#59590 closed defect (bug) (fixed)
PHP error in class-wp-plugins-list-table.php after r56599
Reported by: | petitphp | Owned by: | costdev |
---|---|---|---|
Milestone: | 6.4 | Priority: | normal |
Severity: | normal | Version: | 6.4 |
Component: | Administration | Keywords: | has-patch commit |
Focuses: | administration | Cc: |
Description
Originally reported in #57791 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:1282This 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.
Attachments (1)
Change History (11)
This ticket was mentioned in PR #5456 on WordPress/wordpress-develop by @sabernhardt.
11 months ago
#4
- Keywords has-patch added; needs-patch removed
Combines markup on the same line and restores the comma removed in r56599.
@petitphp commented on PR #5456:
11 months ago
#5
@sabernhardt There are a lot of unrelated merge commits, can you try rebasing your branch to the latest version of trunk ?
#6
@
11 months ago
- Keywords commit added
- Owner set to costdev
- Status changed from new to reviewing
Thanks for creating the ticket @petitphp , for reporting it @TobiasBg and for patching it @sabernhardt.
While this just needs a .
replaced with a comma, merging the two strings make sense here.
Self-assigning for commit.
@sabernhardt commented on PR #5456:
11 months ago
#7
I tried rebasing within GitHub Desktop, but it did not change the PR. If it might help, I uploaded the diff from this PR.
@sabernhardt commented on PR #5456:
11 months ago
#10
Committed in r56824
Props to @TobiasBg for reporting the issue.