Changeset 678682
- Timestamp:
- 03/09/2013 01:32:32 PM (13 years ago)
- Location:
- root-relative-urls/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
sb_root_relative_urls.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
root-relative-urls/trunk/readme.txt
r678680 r678682 110 110 111 111 = 2.0 = 112 113 112 * Enhancement: Added support for wp-include and WPML Multilingual CMS plugin. Thanks to @tfmtfm for the patch. 113 * Correction: Fixed changelog notes for version 1.8. 114 114 115 115 = 1.9 = … … 117 117 118 118 = 1.8 = 119 * Bug fix: Apparently WordPress core devs had a change of heart about root relative urls, this patch fixes add media support. Thanks to @najamelan for the suggested solution.119 * Bug fix: This patch fixes add media support. Thanks to @najamelan for the suggested solution. 120 120 121 121 = 1.7 = -
root-relative-urls/trunk/sb_root_relative_urls.php
r678680 r678682 9 9 Author: Marcus E. Pope, marcuspope 10 10 Author URI: http://www.marcuspope.com 11 Version: 1.911 Version: 2.0 12 12 13 13 Copyright 2011 Marcus E. Pope (email : me@marcuspope.com) … … 139 139 static function root_relative_url($url, $html) { 140 140 141 // bugfix: wp3.5 started using root relative urls... I guess they're doing it wrong? o_O #riot141 //If urls already start from root, just return it 142 142 if ($url[0] == "/") return $html; 143 143 144 //in case they missed one ;)145 144 $p = parse_url($url); 146 145 $root = $p['scheme'] . "://" . $p['host'];
Note: See TracChangeset
for help on using the changeset viewer.