mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
Default image compression was lowered in WordPress 4.5 from 90 to 82. https://make.wordpress.org/core/2016/03/12/performance-improvements-for-images-in-wordpress-4-5/ https://make.wordpress.org/core/2016/02/22/proposal-increase-the-default-image-compression-in-wordpress/
3 lines
65 B
Text
3 lines
65 B
Text
<?php
|
|
add_filter('jpeg_quality', function($arg){return 90;});
|
|
?>
|