[wp-trac] [WordPress Trac] #48488: Filter for disabling PDF thumbnail creation
WordPress Trac
noreply at wordpress.org
Sun Nov 3 20:14:48 UTC 2019
#48488: Filter for disabling PDF thumbnail creation
-----------------------------+-----------------------------
Reporter: pampfelimetten | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.2.4
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
Since #31050 wordpress automatically creates thumbnails for uploaded PDF
Files by creating a second attachment post object with the extracted
image.
While this may be useful for many use cases, in some like ours it is not.
Furthermore, it is possible to turn of thumbnail creation for audio and
video by using the following simple code (
{{{#!php
<?php
remove_post_type_support( 'attachment:audio', 'thumbnail' );
remove_post_type_support( 'attachment:video', 'thumbnail' );
}}}
).
It would be great to have a similar concept for pdf thumbnails in wp-
admin/includes/image.php
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48488>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list