Plugin Directory

Changeset 1414658


Ignore:
Timestamp:
05/11/2016 11:46:18 AM (10 years ago)
Author:
kyleabaker
Message:

v1.0.10

Location:
wp-useragent/trunk
Files:
14 edited

Legend:

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

    r1414133 r1414658  
    55Requires at least: 2.0
    66Tested up to: 4.5.2
    7 Stable tag: 1.0.9
     7Stable tag: 1.0.10
    88
    99== Description ==
     
    6666
    6767== Changelog ==
     68
     69= v1.0.10 =
     70* Fix issue with custom output layout ([Support Forum](https://wordpress.org/support/topic/new-div-and-custom-output))
     71* Updated Windows icons with higher resolution and more accurate replacements
     72
    6873
    6974= v1.0.9 =
     
    630635== Upgrade Notice ==
    631636
     637= v1.0.10 =
     638* Fix issue with custom output layout ([Support Forum](https://wordpress.org/support/topic/new-div-and-custom-output))
     639* Updated Windows icons with higher resolution and more accurate replacements
     640
     641
    632642= v1.0.9 =
    633643* Fix Windows Phone 8.1 detection ([Support Forum](https://wordpress.org/support/topic/windows-phone-81-is-being-detected-as-iphone-ios-703?replies=1))
  • wp-useragent/trunk/wp-useragent.php

    r1414133 r1414658  
    44Plugin URI: https://www.kyleabaker.com/goodies/coding/wp-useragent/
    55Description: 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.0.9
     6Version: 1.0.10
    77Author: Kyle Baker
    88Author URI: https://www.kyleabaker.com/
     
    161161    if ($wpua_output_location === 'before')
    162162    {
    163         wpua_display_useragent();
     163        wpua_display_useragent(true);
    164164        wpua_display_comment();
    165165        add_filter('comment_text', 'wpua_useragent');
     
    168168    {
    169169        wpua_display_comment();
    170         wpua_display_useragent();
     170        wpua_display_useragent(true);
    171171        add_filter('comment_text', 'wpua_useragent');
    172172    }
     
    222222 * Generates html markup for final user agent output
    223223 */
    224 function wpua_display_useragent()
     224function wpua_display_useragent($wpua_wrapper_div = false)
    225225{
    226226    global $comment, $wpua_show_text_icons, $wpua_text_using, $wpua_text_on, $wpua_text_via, $wpua_show_full_ua, $wpua_hide_unknown_ua, $wpua_doctype;
     
    274274    }
    275275
    276     // Wrap WP-UserAgent output in div
    277     $wpua_useragent = "<div class='wp-useragent'>$wpua_useragent</div>";
     276    if ($wpua_wrapper_div === true)
     277    {
     278        // Wrap WP-UserAgent output in div
     279        $wpua_useragent = "<div class='wp-useragent'>$wpua_useragent</div>";
     280    }
    278281
    279282    // The following conditional will hopefully prevent a problem where
Note: See TracChangeset for help on using the changeset viewer.