]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/class-wp-image-editor.php
WordPress 4.5.1-scripts
[autoinstalls/wordpress.git] / wp-includes / class-wp-image-editor.php
index f88493712651f3f37787676607880f7847633fd1..5b6f4ac9a02d223021e2441eba77329f86758b13 100644 (file)
@@ -17,10 +17,12 @@ abstract class WP_Image_Editor {
        protected $mime_type = null;
        protected $default_mime_type = 'image/jpeg';
        protected $quality = false;
-       protected $default_quality = 90;
+       protected $default_quality = 82;
 
        /**
         * Each instance handles a single file.
+        *
+        * @param string $file Path to the file to load.
         */
        public function __construct( $file ) {
                $this->file = $file;
@@ -460,7 +462,7 @@ abstract class WP_Image_Editor {
                $mime_types = wp_get_mime_types();
                $extensions = array_keys( $mime_types );
 
-               foreach( $extensions as $_extension ) {
+               foreach ( $extensions as $_extension ) {
                        if ( preg_match( "/{$extension}/i", $_extension ) ) {
                                return $mime_types[$_extension];
                        }