Plugin Directory

Changeset 2085833


Ignore:
Timestamp:
05/11/2019 10:23:24 AM (7 years ago)
Author:
XxXYonIXxX
Message:

Created tag 1.6.

Location:
disable-jpeg-compression/tags/1.6
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • disable-jpeg-compression/tags/1.6/disable-jpeg-compression.php

    r1060622 r2085833  
    44Plugin URI:
    55Description: Disable the JPEG compression in WordPress, which enabled by default.
    6 Version: 1.5
     6Version: 1.6
    77Author: Yonatan Ganot
    8 Author URI: http://www.scolpy.net
     8Author URI: https://www.scolpy.net
    99*/
    1010
    1111if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    1212
    13 add_filter('jpeg_quality', create_function('', 'return 100;'));
    14 add_filter('wp_editor_set_quality', create_function('', 'return 100;'));
     13function disable_jpeg_compression() {
     14    return 100;
     15}
     16
     17add_filter('jpeg_quality', 'disable_jpeg_compression');
     18add_filter('wp_editor_set_quality', 'disable_jpeg_compression');
    1519?>
  • disable-jpeg-compression/tags/1.6/readme.txt

    r1889751 r2085833  
    11=== Plugin Name ===
    22Contributors: XxXYonIXxX
    3 Donate link: http://www.scolpy.net/
     3Donate link: https://www.scolpy.net/
    44Tags: jpeg, jpg, compression, disable
    55Requires at least: 3.3.1
    6 Tested up to: 5.0
    7 Stable tag: 1.5
     6Tested up to: 5.2
     7Stable tag: 1.6
    88License: GPLv3
    9 License URI: http://www.gnu.org/licenses/gpl.html
     9License URI: https://www.gnu.org/licenses/gpl.html
Note: See TracChangeset for help on using the changeset viewer.