Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2c7ce70
allowedMimeTypes: filter types that are not supported by the server.
adamsilverstein May 8, 2024
93c4813
Cleanup
adamsilverstein May 8, 2024
760f13f
Use Yoda consitionals, I must
adamsilverstein May 8, 2024
a8e1e2e
Merge branch 'trunk' into ticket/61167
adamsilverstein May 8, 2024
67c71f1
Merge branch 'trunk' into ticket/61167
adamsilverstein Feb 14, 2025
a510e39
revert previous version
adamsilverstein Feb 14, 2025
ff2e0c0
Error when an (image) upload’s mime type is unsupported
adamsilverstein Feb 14, 2025
0bfaf95
phpcbf
adamsilverstein Feb 14, 2025
86e9f38
Customize: Accessibility: Restore heading semantics in sections.
joedolson Feb 14, 2025
27c455a
Coding Standards: Use strict comparison in `wp_get_comment_status()`.
SergeyBiryukov Feb 15, 2025
c7c17c3
Coding Standards: Use strict comparison in `pingback()`.
SergeyBiryukov Feb 16, 2025
fe8630b
Security: Switch to using bcrypt for hashing user passwords and BLAKE…
johnbillion Feb 17, 2025
18910a5
Docs: Correct formatting for `get_the_date` and `get_the_time` DocBlo…
SergeyBiryukov Feb 17, 2025
738772d
General: Fix `force_ssl_admin()` to always return bool.
swissspidy Feb 17, 2025
a88eff4
Security: Remove use of `innerHTML` in the `the_block_template_skip_l…
johnbillion Feb 17, 2025
eb41d06
Test uploading unsupported image type
adamsilverstein Feb 17, 2025
595a95d
remove namespace copied from gutenberg PR
adamsilverstein Feb 17, 2025
29cfa8c
Merge branch 'trunk' into ticket/61167
adamsilverstein Feb 17, 2025
36c52a5
phpcbf
adamsilverstein Feb 17, 2025
a14653d
ensure file type set before using
adamsilverstein Feb 17, 2025
d8db732
Add and test new wp_prevent_unsupported_image_uploads filter
adamsilverstein Feb 17, 2025
60639c5
Add wp_prevent_unsupported_image_uploads filter to media.php
adamsilverstein Feb 20, 2025
c22a952
Cleanup
adamsilverstein Feb 20, 2025
305352b
phpcbf
adamsilverstein Feb 20, 2025
d15c5f7
Merge branch 'trunk' into ticket/61167
adamsilverstein Mar 5, 2025
54f2a7d
Merge branch 'ticket/61167' of github.com:adamsilverstein/wordpress-d…
adamsilverstein Mar 5, 2025
8969678
phpcbf
adamsilverstein Mar 5, 2025
036f1a1
Merge branch 'trunk' into ticket/61167
adamsilverstein Mar 17, 2025
cdb9d8b
Add missing `@since` tag
adamsilverstein Mar 17, 2025
d9ca746
Add mime type as a second parameter and rename filter
adamsilverstein Mar 17, 2025
d7c5b64
update doc block
adamsilverstein Mar 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
phpcbf
  • Loading branch information
adamsilverstein committed Mar 5, 2025
commit 8969678586f9576a108837b4a88f8d1687a0cb77
4 changes: 2 additions & 2 deletions tests/phpunit/tests/rest-api/rest-attachments-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -2581,11 +2581,11 @@ public function test_upload_unsupported_image_type() {

/**
* Test that the `wp_prevent_unsupported_image_uploads` filter enables uploading of unsupported image types.
*
*
* @ticket 61167
*/
public function test_upload_unsupported_image_type_with_filter() {

// Only run this test when the editor doesn't support AVIF.
if ( wp_image_editor_supports( array( 'AVIF' ) ) ) {
$this->markTestSkipped( 'The image editor suppports AVIF.' );
Expand Down
Loading