Plugin Directory

Changeset 1240305


Ignore:
Timestamp:
09/08/2015 02:46:05 AM (11 years ago)
Author:
mindshare
Message:

bugfix, add missing file

Location:
php-browser-detection/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • php-browser-detection/trunk/inc/tests.php

    r1240215 r1240305  
    1313 */
    1414include_once('../../../../wp-blog-header.php');
     15/*
     16function browser_detection_version($version) {
     17    $version = 'http://browscap.org/stream?q=PHP_BrowsCapINI';
     18    return $version;
     19}
     20
     21add_filter('php_browser_detection_version', 'browser_detection_version');*/
     22
    1523if (array_key_exists('test-id', $_GET) && isset($_GET['test-id'])) {
    1624    $id = $_GET['test-id'];
     
    1927}
    2028$q = new WP_Query('page_id=' . $id);
     29
    2130get_header();
     31
    2232?>
    2333<div id="main" class="site-main">
  • php-browser-detection/trunk/php-browser-detection.php

    r1240215 r1240305  
    44Plugin URI: http://wordpress.org/extend/plugins/php-browser-detection/
    55Description: Use PHP to detect browsers for conditional CSS or to detect mobile phones.
    6 Version: 3.1.7
     6Version: 3.1.8
    77Author: Mindshare Studios, Inc.
    88Author URI: https://mind.sh/are
     
    3434 */
    3535
     36// TODO refactor into class using object oriented code, filters aren't currently working
     37
    3638if (!defined('PBD_DIR_PATH')) {
    3739    define('PBD_DIR_PATH', plugin_dir_path(__FILE__)); // /.../wp-content/plugins/php-browser-detection/
    3840}
    3941
     42/**
     43 * Global variable with browser information.
     44 *
     45 * @global
     46 */
     47$browser_info = array();
     48
     49/**
     50 * PHP Browser Detection initialization
     51 *
     52 * @private
     53 */
     54
    4055require_once('inc/admin.php');
    4156require_once('lib/Browscap.php');
     
    4459
    4560require_once('inc/deprecated.php');
    46 require_once('inc/shortcodes.php');
     61include_once('inc/shortcodes.php');
    4762
    4863/**
     
    6075    $browscap->remoteIniUrl = apply_filters('php_browser_detection_version', "http://browscap.org/stream?q=Lite_PHP_BrowsCapINI");
    6176
    62     //die(var_export($browscap->getBrowser(NULL, TRUE)));
     77    //  die(var_export($browscap->remoteIniUrl));
     78    //  die(var_export($browscap->getBrowser(NULL, TRUE)));
     79
    6380    return $browscap->getBrowser(NULL, TRUE);
    6481}
  • php-browser-detection/trunk/readme.txt

    r1240215 r1240305  
    33Donate link: http://mind.sh/are/donate/
    44Tags: php, browser detection, browser, internet explorer, iphone, mobile, browscap, detection
    5 Version: 3.1.7
     5Version: 3.1.8
    66Tested up to: 4.3
    7 Stable tag: 3.1.7
     7Stable tag: 3.1.8
    88
    99PHP Browser Detection is a WordPress plugin used to detect a user's browser. Please report any bugs on the support forums.
     
    114114
    115115== Changelog ==
     116
     117= 3.1.8 =
     118* Add missing include file
     119* Confirm filters aren't working (needs refactor)
    116120
    117121= 3.1.7 =
Note: See TracChangeset for help on using the changeset viewer.