Plugin Directory

Changeset 1586151


Ignore:
Timestamp:
01/31/2017 11:18:21 PM (9 years ago)
Author:
kyleabaker
Message:

v1.1.3

  • Added MIUI Browser detection (props: Shensven)
Location:
wp-useragent/trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • wp-useragent/trunk/readme.txt

    r1556234 r1586151  
    44Tags: useragent, user-agent, user agent, web, browser, web browser, operating system, platform, os, mac, apple, windows, win, linux, phone
    55Requires at least: 2.0
    6 Tested up to: 4.7
    7 Stable tag: 1.1.2
     6Tested up to: 4.7.2
     7Stable tag: 1.1.3
    88
    99== Description ==
     
    8484
    8585== Changelog ==
     86
     87= v1.1.3 =
     88* Added MIUI Browser detection (props: Shensven)
     89
    8690
    8791= v1.1.2 =
     
    682686== Upgrade Notice ==
    683687
    684 = v1.1.2 =
    685 * Fixed QQ Browser detection (props: Shensven)
     688= v1.1.3 =
     689* Added MIUI Browser detection (props: Shensven)
  • wp-useragent/trunk/wp-useragent-detect-webbrowser.php

    r1556234 r1586151  
    618618        $code = 'ibmwebexplorer';
    619619    }
    620     elseif (preg_match('/IBrowse/i', $useragent))
     620    elseif (preg_match('/IBrowse/i', $useragent)
     621        && !preg_match('/MiuiBrowser/i', $useragent))
    621622    {
    622623        $link = 'http://www.ibrowse-dev.net/';
     
    891892        $title = 'Minimo';
    892893        $code = 'minimo';
     894    }
     895    elseif (preg_match('/MiuiBrowser/i', $useragent))
     896    {
     897        $link = 'https://en.wikipedia.org/wiki/MIUI';
     898        $title = 'MIUI Browser';
     899        $version = wpua_detect_browser_version('MiuiBrowser');
     900        $code = 'miuibrowser';
    893901    }
    894902    elseif (preg_match('/Mosaic/i', $useragent))
  • wp-useragent/trunk/wp-useragent.php

    r1556234 r1586151  
    44 * Plugin URI: https://www.kyleabaker.com/goodies/coding/wp-useragent/
    55 * Description: A simple User-Agent detection plugin that lets you easily insert icons and/or textual web browser and operating system details with each comment.
    6  * Version: 1.1.2
     6 * Version: 1.1.3
    77 * Author: Kyle Baker
    88 * Author URI: https://www.kyleabaker.com/
     
    1313 */
    1414
    15 /* Copyright 2008-2016  Kyle Baker  (email: [email protected])
     15/* Copyright 2008-2017  Kyle Baker  (email: [email protected])
    1616    //Copyright 2008  Fernando Briano  (email : [email protected])
    1717
Note: See TracChangeset for help on using the changeset viewer.