Plugin Directory

Changeset 678682


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

updated notes / docs

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

Legend:

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

    r678680 r678682  
    110110
    111111= 2.0 =
    112 
    113112* 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.
    114114
    115115= 1.9 =
     
    117117
    118118= 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.
    120120
    121121= 1.7 =
  • root-relative-urls/trunk/sb_root_relative_urls.php

    r678680 r678682  
    99Author: Marcus E. Pope, marcuspope
    1010Author URI: http://www.marcuspope.com
    11 Version: 1.9
     11Version: 2.0
    1212
    1313Copyright 2011 Marcus E. Pope (email : me@marcuspope.com)
     
    139139    static function root_relative_url($url, $html) {
    140140
    141         //bugfix: wp3.5 started using root relative urls... I guess they're doing it wrong? o_O #riot
     141        //If urls already start from root, just return it
    142142        if ($url[0] == "/") return $html;
    143143
    144         //in case they missed one ;)
    145144        $p = parse_url($url);
    146145        $root = $p['scheme'] . "://" . $p['host'];
Note: See TracChangeset for help on using the changeset viewer.