#15512 closed defect (bug) (duplicate)
wp-admin colors-classic .alt .alternate error
| Reported by: | webaware | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 3.0.1 |
| Severity: | minor | Keywords: | colors classic admin alternate has-patch has-unit-tests |
| Cc: | Focuses: |
Description
CSS classes .alt and .alternate specify row colour shading for alternate rows in tables. This fails in the classic (blue) admin colour scheme due to a missing comma in the CSS.
.alt /* <-- comma needed there, missing from CSS file */
.alternate {
background-color: #edfbfc;
}
Change History (3)
This ticket was mentioned in PR #15859 on WordPress/wordpress-develop by @desrosj.
30 hours ago
#2
- Keywords has-patch has-unit-tests added
Adds two multisite tests showing that client-side media processing rejects sub-sizes the server would have generated itself, when they are in an output format the network does not allow for upload.
test_server_sub_sizes_in_output_format_not_allowed_by_network()(passes): withupload_filetypesset tojpg jpeg png gifand animage_editor_output_formatfilter mapping JPEG to WebP, the image editor writes a WebP thumbnail. Sub-sizes go straight to disk, so the network's file types never apply.test_sideload_sub_size_in_output_format_not_allowed_by_network()(fails): the same WebP thumbnail, sideloaded as the browser would after transcoding it toimage_output_format, is checked against the allowed types and rejected:
{"code":"rest_upload_sideload_error","message":"Sorry, you are not allowed to upload this file type.","data":{"status":500}}
Networks created before WordPress 5.8 have no webp in upload_filetypes (and none before 6.5 have avif), and upgrades never add them. On those networks, every sub-size of a JPEG upload fails with a WebP or AVIF output plugin active, so the whole upload fails.
The tests are tagged ms-required. To run them: npm run test:php -- -c tests/phpunit/multisite.xml --filter not_allowed_by_network
Tests only, no fix yet. One option is to allow the attachment's own image_output_format during a sideload.
Trac ticket: TBD
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Investigating the issue while reviewing #15512, and drafting the tests and this description. To be reviewed by me.
🤖 Generated with Claude Code
This ticket was mentioned in PR #15860 on WordPress/wordpress-develop by @desrosj.
30 hours ago
#3
Adds two multisite tests showing that client-side media processing checks each sub-size against the site's upload space quota, while the classic path only checks the original.
test_server_sub_sizes_after_multisite_upload_space_is_used()(passes): the original is uploaded while there is space left, the quota is then set to zero, andwp_update_image_subsizes()still writes the thumbnail.test_sideload_sub_size_after_multisite_upload_space_is_used()(fails): the same situation, but the thumbnail is sideloaded as the browser would, andcheck_upload_size()rejects it:
{"code":"rest_upload_limited_space","message":"Not enough space to upload. 2 KB needed.","data":{"status":400}}
On a site close to its quota, this can leave an attachment with missing sub-sizes that the classic path would have generated.
The tests are tagged ms-required. To run them: npm run test:php -- -c tests/phpunit/multisite.xml --filter after_multisite_upload_space_is_used
Tests only, no fix yet. The failing test assumes the sideload should match the classic path. It is also reasonable to argue that the quota check is correct and the classic path is the lenient one. In that case, the test should expect the rejection, along with a clear error and no half-processed attachment.
Trac ticket: TBD
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Investigating the issue while reviewing #15512, and drafting the tests and this description. To be reviewed by me.
🤖 Generated with Claude Code
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This is fixed in 3.1. Thanks for the report.
#15207