Changeset 1414658
- Timestamp:
- 05/11/2016 11:46:18 AM (10 years ago)
- Location:
- wp-useragent/trunk
- Files:
-
- 14 edited
-
img/16/os/win-1.png (modified) (previous)
-
img/16/os/win-2.png (modified) (previous)
-
img/16/os/win-3.png (modified) (previous)
-
img/16/os/win-4.png (modified) (previous)
-
img/16/os/win-5.png (modified) (previous)
-
img/16/os/win-6.png (modified) (previous)
-
img/24/os/win-1.png (modified) (previous)
-
img/24/os/win-2.png (modified) (previous)
-
img/24/os/win-3.png (modified) (previous)
-
img/24/os/win-4.png (modified) (previous)
-
img/24/os/win-5.png (modified) (previous)
-
img/24/os/win-6.png (modified) (previous)
-
readme.txt (modified) (3 diffs)
-
wp-useragent.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-useragent/trunk/readme.txt
r1414133 r1414658 5 5 Requires at least: 2.0 6 6 Tested up to: 4.5.2 7 Stable tag: 1.0. 97 Stable tag: 1.0.10 8 8 9 9 == Description == … … 66 66 67 67 == 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 68 73 69 74 = v1.0.9 = … … 630 635 == Upgrade Notice == 631 636 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 632 642 = v1.0.9 = 633 643 * 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 4 4 Plugin URI: https://www.kyleabaker.com/goodies/coding/wp-useragent/ 5 5 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.0. 96 Version: 1.0.10 7 7 Author: Kyle Baker 8 8 Author URI: https://www.kyleabaker.com/ … … 161 161 if ($wpua_output_location === 'before') 162 162 { 163 wpua_display_useragent( );163 wpua_display_useragent(true); 164 164 wpua_display_comment(); 165 165 add_filter('comment_text', 'wpua_useragent'); … … 168 168 { 169 169 wpua_display_comment(); 170 wpua_display_useragent( );170 wpua_display_useragent(true); 171 171 add_filter('comment_text', 'wpua_useragent'); 172 172 } … … 222 222 * Generates html markup for final user agent output 223 223 */ 224 function wpua_display_useragent( )224 function wpua_display_useragent($wpua_wrapper_div = false) 225 225 { 226 226 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; … … 274 274 } 275 275 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 } 278 281 279 282 // The following conditional will hopefully prevent a problem where
Note: See TracChangeset
for help on using the changeset viewer.