BUG: 2.3.17 strips all attachment meta data
-
In
functions/attachment.php
there is a function that removes all attachment meta data, which forceswp_prepare_attachment_for_js()
to grab all of our remote s3 files sizes every time with filesize() which is quite the slow operation.// Fix image widget PHP warnings function bodhi_svgs_get_attachment_metadata( $data ) { $res = $data; if ( !isset( $data['width'] ) || !isset( $data['height'] ) ) { $res = false; } return $res; } add_filter( 'wp_get_attachment_metadata' , 'bodhi_svgs_get_attachment_metadata' );
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘BUG: 2.3.17 strips all attachment meta data’ is closed to new replies.