Plugin Directory

Changeset 678692


Ignore:
Timestamp:
03/09/2013 01:58:09 PM (13 years ago)
Author:
MarcusPope
Message:

for some reason @ symbol is not suppressing errors for wp clients

Location:
root-relative-urls/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • root-relative-urls/trunk/readme.txt

    r678682 r678692  
    8181
    8282Unfortunately 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.
     83but it will not alter links you have already embedded.
    8484
    8585= Should I use this plugin if I only have one production site and I make all of my changes in production? =
     
    108108
    109109== 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.
    110113
    111114= 2.0 =
  • root-relative-urls/trunk/sb_root_relative_urls.php

    r678682 r678692  
    99Author: Marcus E. Pope, marcuspope
    1010Author URI: http://www.marcuspope.com
    11 Version: 2.0
     11Version: 2.1
    1212
    1313Copyright 2011 Marcus E. Pope (email : me@marcuspope.com)
     
    6464        //in the database - a needless process for any website.
    6565        $url = @parse_url($url);
     66
     67        if (!isset($url['path'])) $url['path'] = '';
     68
    6669        $relative = ltrim(@$url['path'], '/') . (isset($url['query']) ? "?" . $url['query'] : '');
     70
    6771        return MP_WP_Root_Relative_URLS::scheme(
    6872            'http://' . @$_SERVER['HTTP_HOST'] .
     
    118122        } else {
    119123            $url = @parse_url($url);
     124
     125            if (!isset($url['path'])) $url['path'] = '';
     126
    120127            return '/' . ltrim(@$url['path'], '/') .
    121128                (isset($url['query']) ? "?" . $url['query'] : '') .
Note: See TracChangeset for help on using the changeset viewer.