Plugin Directory

Changeset 582122


Ignore:
Timestamp:
08/06/2012 12:46:28 AM (14 years ago)
Author:
prometh
Message:

0.3.1

Location:
absolute-to-relative-urls/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • absolute-to-relative-urls/trunk/absolute-to-relative-urls.php

    r580921 r582122  
    44Plugin URI: http://www.svachon.com/
    55Description: A <strong>function</strong> for use in shortening URL links. Just use <code><strong>absolute_to_relative_url</strong>( string <em>$url</em> [, bool <em>$ignore_www</em> = <em>true</em> [, bool <em>$choose_shortest</em> = <em>true</em>]] )</code>.
    6 Version: 0.3
     6Version: 0.3.1
    77Author: Steven Vachon
    88Author URI: http://www.svachon.com/
     
    326326        if ($url !== false)
    327327        {
    328             // #anchor
    329             // index.html
    330             // /index.html
    331             // http://webserver
    332             // http://webserver/
    333             // http://webserver/index.html
    334             // http://webserver/./../index.html
    335            
    336328            if ($init)
    337329            {
     
    426418            }
    427419        }
    428        
    429         // TEMP :: faster to remove from $absolute_path then merge with $relative_path?
    430420       
    431421        // Form path
     
    452442                2: shortest possible URL (root- or path-relative)
    453443    */
    454     public function relate_url($url, $ignore_www=true, $output_type=2)
     444    public function relate_url($url, $ignore_www=false, $output_type=2)
    455445    {
    456446        if ($this->site_url !== false)
     
    622612            2: shortest possible URL (root- or path-relative)
    623613*/
    624 function absolute_to_relative_url($url, $ignore_www=true, $output_type=2)
     614function absolute_to_relative_url($url, $ignore_www=false, $output_type=2)
    625615{
    626616    global $absolute_to_relative_url_instance;
  • absolute-to-relative-urls/trunk/readme.txt

    r580924 r582122  
    6262== Changelog ==
    6363
     64= 0.3.1 =
     65* Domains with and without "www." are no longer considered to be identical by default, but can still be overridden
     66
    6467= 0.3 =
    6568* Scheme-relative URLs (`//domain.com`) now supported on input and output
Note: See TracChangeset for help on using the changeset viewer.