Skip to content

Instantly share code, notes, and snippets.

@xavivars
Created August 14, 2014 18:32
Show Gist options
  • Save xavivars/f2eb1b5576564efc5ce6 to your computer and use it in GitHub Desktop.
Save xavivars/f2eb1b5576564efc5ce6 to your computer and use it in GitHub Desktop.
Browswer sniff - Patch
Index: browsersniff.php
===================================================================
--- browsersniff.php (revision 965888)
+++ browsersniff.php (working copy)
@@ -1,4 +1,4 @@
-<?php
+ <?php
/**
* @package Browser-Sniff
* @author Priyadi Iman Nurcahyo | Bruno Andrade Pedrassani
@@ -14,7 +14,7 @@
*/
// begin global settings
-$pri_image_url = get_settings('siteurl') . "/wp-content/plugins/browser-sniff/icons";
+$pri_image_url = site_url('/wp-content/plugins/browser-sniff/icons');
$pri_image_path = ABSPATH . "/wp-content/plugins/browser-sniff/icons";
// end settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment