Plugin Directory

Changeset 1522741


Ignore:
Timestamp:
10/26/2016 11:45:48 PM (9 years ago)
Author:
postpostmodern
Message:

check fir is_string in site_url_absolute

Location:
aitch-ref/trunk
Files:
2 edited

Legend:

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

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

    r1522660 r1522741  
    1616                                                                // can be replaced
    1717     
    18     /*
     18    /**
    1919    *   runs once when plugin has loaded, sets up vars and adds filters/actions
    2020    *   @return NULL
     
    3030
    3131        // these can return back urls starting with /
    32         $relative = array( 'acf/load_value', 'content_url', 'get_pagenum_link', 'option_url',
     32        $relative = array( 'content_url', 'get_pagenum_link', 'option_url',
    3333                           'plugins_url', 'pre_post_link', 'script_loader_src',
    3434                           'style_loader_src', 'term_link', 'the_content',
     
    5353    }
    5454   
    55     /*
     55    /**
    5656    *   add_filter callback
    5757    *   @param mixed
     
    6868    }
    6969   
    70     /*
     70    /**
    7171    *   add_filter callback
    7272    *   @param mixed
     
    7676        if( is_array($url) ){
    7777            return array_map( array(__NAMESPACE__.'\AitchRef', 'site_url_absolute'), $url );
    78         } else {
     78        } elseif( is_string($url) ){
    7979            $url = str_replace( self::$possible, self::$baseurl, $url );
    8080        }
     
    8686AitchRef::setup();
    8787
    88 /*
     88/**
    8989*   db interaction
    9090*   @param bool
     
    106106// MU wrappers
    107107
    108 /*
     108/**
    109109*
    110110*   @param
     
    116116}
    117117
    118 /*
     118/**
    119119*
    120120*   @param
     
    126126}
    127127
    128 /*
     128/**
    129129*
    130130*   @param
Note: See TracChangeset for help on using the changeset viewer.