Changeset 803836
- Timestamp:
- 11/13/2013 02:32:33 PM (12 years ago)
- File:
-
- 1 edited
-
jetpack/trunk/class.photon.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
jetpack/trunk/class.photon.php
r795609 r803836 335 335 public function filter_image_downsize( $image, $attachment_id, $size ) { 336 336 // Don't foul up the admin side of things, and provide plugins a way of preventing Photon from being applied to images. 337 if ( is_admin() || apply_filters( 'jetpack_photon_override_image_downsize', false, compact( 'image', 'attachment_id', 'size' ) ) )337 if ( ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) || apply_filters( 'jetpack_photon_override_image_downsize', false, compact( 'image', 'attachment_id', 'size' ) ) ) 338 338 return $image; 339 339
Note: See TracChangeset
for help on using the changeset viewer.