WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/15/2014 09:49:34 PM (6 years ago)
Author:
johnbillion
Message:

Add tests which ensure the wp_editor_set_quality and jpeg_quality filters only apply if they are added before the corresponding WP_Image_Editor is instantiated.

Merges [30873] to the 4.1 branch.

Props DH-Shredder
See #29856

Location:
branches/4.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1

  • branches/4.1/tests/phpunit/includes/mock-image-editor.php

    r25380 r30875  
    88        public static $test_return = true;
    99        public static $save_return = array();
     10
     11        // Allow testing of jpeg_quality filter.
     12        public function set_mime_type( $mime_type = null ) {
     13            $this->mime_type = $mime_type;
     14        }
    1015
    1116        public function load() {
Note: See TracChangeset for help on using the changeset viewer.