[wp-trac] [WordPress Trac] #39625: Give an error message when a non-image is uploaded for featured image
WordPress Trac
noreply at wordpress.org
Sat Jun 28 22:28:06 UTC 2025
#39625: Give an error message when a non-image is uploaded for featured image
-------------------------------------------------+-------------------------
Reporter: karmatosed | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future
| Release
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-screenshots | Focuses:
changes-requested |
-------------------------------------------------+-------------------------
Changes (by SirLouen):
* keywords: has-patch needs-testing needs-screenshots => has-patch needs-
screenshots changes-requested
Comment:
== Test Report
=== Description
❌ This report can't validate that the indicated patch works as expected.
Patch tested: https://github.com/WordPress/wordpress-
develop/pull/9125.diff
=== Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.29.0
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 137.0.0.0
- OS: Windows 10/11
- Theme: Twenty Fifteen 4.0
- MU Plugins: None activated
- Plugins:
* Classic Editor 1.6.7
* Test Reports 1.2.0
=== Testing Instructions
- Following
[https://core.trac.wordpress.org/ticket/39625?replyto=10#comment:10 these
instructions] for the Block Editor
=== Expected Results
- Images should not be able to be uploaded
=== Actual Results
1. ✅ In the classic Editor an error appears
2. ❌ In the block Editor, no error appear. It's possible to set a txt
file as the featured image
(check Supp Artifacts).
=== Additional Notes
- Not only not solving what @westonruter reported, but I could set the TXT
as a featured image in blocks editor
- For how this patch it is, it was only targeting Classic Editor, but
Block editor in also relevant nowadays (in fact is tending to deprecate
Classic one)
cc @worldweb
=== Supplemental Artifacts
Results
==== Classic Editor
[[Image(https://i.imgur.com/bNpT7wT.png)]]
==== Blocks Editor
[[Image(https://i.imgur.com/MIqkuGb.png)]]
[[Image(https://i.imgur.com/1dfDanC.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39625#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list