WordPress.org

Plugin Directory

Changeset 632052


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

Jetpack Photon update

Allow specific images to be skipped when processing post content.

File:
1 edited

Legend:

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

    r632030 r632052  
    104104                // Identify image source 
    105105                $src = $src_orig = $images[4][ $index ]; 
     106 
     107                // Allow specific images to be skipped 
     108                if ( apply_filters( 'jetpack_photon_skip_image', false, $src, $tag ) ) 
     109                    continue; 
    106110 
    107111                // Support Automattic's Lazy Load plugin 
Note: See TracChangeset for help on using the changeset viewer.