Plugin Directory

Changeset 1522660


Ignore:
Timestamp:
10/26/2016 08:26:06 PM (9 years ago)
Author:
postpostmodern
Message:

update to 0.9.5

Location:
aitch-ref/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • aitch-ref/trunk/_plugin.php

    r1502994 r1522660  
    44Plugin URI:     http://wordpress.org/extend/plugins/aitch-ref/
    55Description:    href junk. Requires PHP >= 5.3 and Wordpress >= 3.0
    6 Version:        0.9.4
     6Version:        0.9.5
    77Author:         postpostmodern, pinecone-dot-io
    88Author URI:     http://pinecone.io/
  • aitch-ref/trunk/index.php

    r1502994 r1522660  
    6060    public static function site_url( $url ){
    6161        if( is_array($url) ){
    62             // this is to fix an issue in 'upload_dir' filter,
    63             // $url[error] needs to be a boolean but str_replace casts to string
    64             $url2 = str_replace( self::$possible, '', array_filter($url) );
    65             $url2 = array_merge( $url, $url2 );
    66         } else {
    67             $url2 = str_replace( self::$possible, '', $url );
     62            return array_map( array(__NAMESPACE__.'\AitchRef', 'site_url'), $url );
     63        } elseif( is_string($url) ){
     64            $url = str_replace( self::$possible, '', $url );
    6865        }
    69            
    70         return $url2;       
     66       
     67        return $url;       
    7168    }
    7269   
     
    7875    public static function site_url_absolute( $url ){
    7976        if( is_array($url) ){
    80             // this is to fix a bug in 'upload_dir' filter,
    81             // $url[error] needs to be a boolean but str_replace casts to string
    82             $url2 = str_replace( self::$possible, self::$baseurl, array_filter($url) );
    83             $url2 = array_merge( $url, $url2 );
     77            return array_map( array(__NAMESPACE__.'\AitchRef', 'site_url_absolute'), $url );
    8478        } else {
    85             $url2 = str_replace( self::$possible, self::$baseurl, $url );
     79            $url = str_replace( self::$possible, self::$baseurl, $url );
    8680        }
    8781       
    88         return $url2;
     82        return $url;
    8983    }
    9084}
  • aitch-ref/trunk/readme.txt

    r844729 r1522660  
    2020
    2121== Changelog ==
     22= .91 =
     23fixed typo in absolute filter, fix absolute check with offsite https links
     24
    2225= .9 =
    2326refactor to namespace
Note: See TracChangeset for help on using the changeset viewer.