Changeset 678692
- Timestamp:
- 03/09/2013 01:58:09 PM (13 years ago)
- Location:
- root-relative-urls/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
sb_root_relative_urls.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
root-relative-urls/trunk/readme.txt
r678682 r678692 81 81 82 82 Unfortunately no, this plugin is designed to correct new content as it is entered via the administration panel. It will still work with your current site, 83 but it will not alter links you have already embedded. I'm currently working with Brian DiChiara on a solution for find/replace of previous absolute urls into root-relative slashes. You may still continue to use the link above from interconnectit.com for more information on that process, but we should have the feature included by Nov 20th, 2011.83 but it will not alter links you have already embedded. 84 84 85 85 = Should I use this plugin if I only have one production site and I make all of my changes in production? = … … 108 108 109 109 == Changelog == 110 111 = 2.1 = 112 * Bug fix: really fixed path undefined notice for urls :( why @ symbol didn't work is beyond me. I couldn't reproduce the issue, but this was faster than debugging it. 110 113 111 114 = 2.0 = -
root-relative-urls/trunk/sb_root_relative_urls.php
r678682 r678692 9 9 Author: Marcus E. Pope, marcuspope 10 10 Author URI: http://www.marcuspope.com 11 Version: 2. 011 Version: 2.1 12 12 13 13 Copyright 2011 Marcus E. Pope (email : me@marcuspope.com) … … 64 64 //in the database - a needless process for any website. 65 65 $url = @parse_url($url); 66 67 if (!isset($url['path'])) $url['path'] = ''; 68 66 69 $relative = ltrim(@$url['path'], '/') . (isset($url['query']) ? "?" . $url['query'] : ''); 70 67 71 return MP_WP_Root_Relative_URLS::scheme( 68 72 'http://' . @$_SERVER['HTTP_HOST'] . … … 118 122 } else { 119 123 $url = @parse_url($url); 124 125 if (!isset($url['path'])) $url['path'] = ''; 126 120 127 return '/' . ltrim(@$url['path'], '/') . 121 128 (isset($url['query']) ? "?" . $url['query'] : '') .
Note: See TracChangeset
for help on using the changeset viewer.