Plugin Directory

Changeset 809392


Ignore:
Timestamp:
11/23/2013 08:13:33 PM (12 years ago)
Author:
wpsmart
Message:

version 1.0.3.1 -- see changelog in readme.txt

Location:
wpsmart-mobile/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wpsmart-mobile/trunk/includes/defaults.php

    r807300 r809392  
    4747global $wps_user_agents;
    4848$wps_user_agents = array(
    49     'iPhone',
    50     'iPod',
    51     'Android',
    52     'Windows Phone',
    53     'Windows Mobile',
    54     'BlackBerry'
     49    'iphone',
     50    'ipod',
     51    'android',
     52    'mobile safari',
     53    'mobile',
     54    'windows phone',
     55    'windows mobile',
     56    'blackberry'
    5557);
    5658?>
  • wpsmart-mobile/trunk/readme.txt

    r807300 r809392  
    3535== Changelog ==
    3636
     37= Version 1.0.3.1 =
     38
     39* Leftover bug fixes from previous release
     40* Added: Additional user-agents added
     41
    3742= Version 1.0.3 =
    3843
  • wpsmart-mobile/trunk/wpsmart.php

    r809391 r809392  
    77Plugin URI: http://www.wpsmart.com
    88Description: Present your Wordpress site in a beautiful theme optimized for touch-based smartphones
    9 Version: 1.0.3
     9Version: 1.0.3.1
    1010Author: WPSmart
    1111Author URI: http:fwww.wpsmart.com/mobile
     
    1313*/
    1414
    15 define("WPSMART_VERSION", '1.0.3');
     15define("WPSMART_VERSION", '1.0.3.1');
    1616define("WPSMART_BASE_THEME", dirname(__FILE__) . '/themes/base');
    1717
     
    132132                add_action( 'wp_footer', array( &$this, 'wps_view_mobile_site' ) );
    133133            } else {       
    134                 $server_user_agent = $_SERVER['HTTP_USER_AGENT'];
     134                $server_user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
    135135                                       
    136                 foreach( $wps_user_agents as $user_agent ) {
     136                foreach( $wps_user_agents as $user_agent ) {               
    137137                    if( preg_match( "/$user_agent/", $server_user_agent) ) {
    138138                        $this->wps_show_mobile = true;
Note: See TracChangeset for help on using the changeset viewer.