WordPress.org

Plugin Directory

Changeset 632065


Ignore:
Timestamp:
11/30/12 01:46:43 (17 months ago)
Author:
ethitter
Message:

Jetpack Photon update

Correct flawed logic that rendered an override filter inoperable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/photon.php

    r632052 r632065  
    302302    public function filter_image_downsize( $image, $attachment_id, $size ) { 
    303303        // Don't foul up the admin side of things, and provide plugins a way of preventing Photon from being applied to images. 
    304         if ( is_admin() && apply_filters( 'jetpack_photon_override_image_downsize', true, compact( 'image', 'attachment_id', 'size' ) ) ) 
     304        if ( is_admin() || apply_filters( 'jetpack_photon_override_image_downsize', false, compact( 'image', 'attachment_id', 'size' ) ) ) 
    305305            return $image; 
    306306 
Note: See TracChangeset for help on using the changeset viewer.