WordPress.org

Plugin Directory

Changeset 952406


Ignore:
Timestamp:
07/21/14 20:44:53 (3 years ago)
Author:
iamcam
Message:

Fixed possible whitespaces causing issues with the app ID

Location:
ios-smart-app-banner/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ios-smart-app-banner/trunk/iOSSmartBanner.php

    r896728 r952406  
    55Plugin URI: http://iamcam.wordpress.com 
    66Description: This plugin will add the iOS application banner at the top of your web page in mobile safari. 
    7 Version: 1.1 
     7Version: 1.1.1 
    88Author: Cameron Perry 
    99Copyright: 2014 Cameron Perry 
     
    2929        } 
    3030        if( count($values['_cpisb_app_id'])>0){ 
    31             if(strlen($values['_cpisb_app_id'][0]) >0){ 
    32                 $appID = $values['_cpisb_app_id'][0]; 
     31            if(strlen(trim($values['_cpisb_app_id'][0])) > 0){ 
     32                $appID = trim($values['_cpisb_app_id'][0]); 
     33            } else { 
     34                return; 
    3335            } 
    3436        } else { 
     
    5254 
    5355        $meta = '<meta name="apple-itunes-app" content="app-id='.$appID. $affStr . $arg .'" />'; 
     56 
    5457        echo $meta; 
    5558    } 
  • ios-smart-app-banner/trunk/readme.txt

    r896728 r952406  
    55Requires at least: 3.0.1 
    66Tested up to: 3.9 
    7 Stable tag: 1.1 
     7Stable tag: 1.1.1 
    88License: GPLv3 
    99License URI: http://www.gnu.org/copyleft/gpl.html 
Note: See TracChangeset for help on using the changeset viewer.