Plugin Directory

Changeset 1645429


Ignore:
Timestamp:
04/26/2017 04:22:36 AM (9 years ago)
Author:
iMuslim
Message:

Jetpack Proton bug fix

Location:
islamic-graphics/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • islamic-graphics/trunk/islamic_graphics.php

    r1645389 r1645429  
    55Plugin URI: http://plugins.muslimmatters.org
    66Description: Shortcodes for the insertion of graphics representing the common Islamic phrases, e.g., SAW, RA, SWT and AS, into Wordpress posts and pages.
    7 Version: 1.2.0
     7Version: 1.2.1
    88Author: Mehzabeen Ibrahim
    99Author URI: http://imuslim.tv
     
    2727Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    2828*/
     29
     30/* IMPORTANT: PREVENT PHOTON FROM SERVING ISLAMIC GRAPHIC IMAGES */
     31
     32function islamic_graphics_photon_exception( $val, $src, $tag ) {
     33        if (strpos($src, 'islamic-graphics') !== false ){
     34                return true;
     35        }
     36        return $val;
     37}
     38add_filter( 'jetpack_photon_skip_image', 'islamic_graphics_photon_exception', 10, 3 );
    2939
    3040
  • islamic-graphics/trunk/readme.txt

    r1645392 r1645429  
    55Requires at least: 2.7.0
    66Tested up to: 4.7.4
    7 Stable tag: 1.2.0
     7Stable tag: 1.2.1
    88
    99Shortcode for the insertion of graphics representing the common Islamic phrases: SAW, RA, SWT and AS, into Wordpress posts and pages.
     
    119119== Changelog ==
    120120
     121= 1.2.1 =
     122Fixed image size bug by preventing Jetpack Photon from serving Islamic Graphic images.
     123
    121124= 1.2.0 =
    122125- A new set of images has been added in the form of SVG files for a more consistent look across articles and for smoother scaling. PNG fallback is included for older browsers.
Note: See TracChangeset for help on using the changeset viewer.