Plugin Directory

Changeset 1543509


Ignore:
Timestamp:
11/30/2016 05:21:43 PM (9 years ago)
Author:
bypr.nils
Message:

fixed error server would throw when HTTP_USER_AGENT isn't sent

Location:
smart-image-loader/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • smart-image-loader/trunk/plugin.php

    r1492706 r1543509  
    44Plugin URI: https://wordpress.org/plugins/smart-image-loader
    55Description: Load images visible at page load ('above the fold') first for a fast page loading impression. Optional lazy loading for images 'below the fold'.
    6 Version: 0.4.7
     6Version: 0.4.8
    77Text Domain: smart-image-loader
    88Author: Bayer und Preuss
     
    4444function get_wrapped_html( $html_string )
    4545{
    46     if ( preg_match('/(?i)msie [1-6]/', $_SERVER['HTTP_USER_AGENT']) || strlen($html_string) === 0 )
     46    if ( isset($_SERVER['HTTP_USER_AGENT']) && preg_match('/(?i)msie [1-6]/', $_SERVER['HTTP_USER_AGENT']) || strlen($html_string) === 0 )
    4747        return $html_string;
    4848
  • smart-image-loader/trunk/readme.txt

    r1496256 r1543509  
    55Requires at least: 3.8.3
    66Tested up to: 4.6.1
    7 Stable tag: 0.4.7
     7Stable tag: 0.4.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3232
    3333== Changelog ==
     34
     35= 0.4.8 =
     36* fixed error server would throw when HTTP_USER_AGENT isn't sent
    3437
    3538= 0.4.7 =
  • smart-image-loader/trunk/smart_image_loader.js

    r1492707 r1543509  
    11(function($) {
    22
    3     // Version: 0.4.7
     3    // Version: 0.4.8
    44
    55    "use strict";
Note: See TracChangeset for help on using the changeset viewer.