Plugin Directory

Changeset 1103531


Ignore:
Timestamp:
03/02/2015 07:40:31 PM (11 years ago)
Author:
postpostmodern
Message:

update to v 0.9.1, change uploads_dir to default to absolute

Location:
aitch-ref/trunk
Files:
2 edited

Legend:

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

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

    r844733 r1103531  
    3434        $relative = array( 'bloginfo', 'bloginfo_url', 'content_url', 'get_pagenum_link',
    3535                           'option_url', 'plugins_url', 'pre_post_link', 'script_loader_src',
    36                            'style_loader_src', 'term_link', 'the_content', 'upload_dir',
     36                           'style_loader_src', 'term_link', 'the_content',
    3737                           'url', 'wp_list_pages' );
    3838        $relative = apply_filters( 'aitch-ref-relative', $relative );
     
    4545                           'option_home', 'option_siteurl', 'page_link', 'post_link',
    4646                           'siteurl', 'site_url', 'stylesheet_uri',
    47                            'template_directory_uri', 'wp_get_attachment_url' );
     47                           'template_directory_uri', 'upload_dir', 'wp_get_attachment_url' );
    4848        $absolute = apply_filters( 'aitch-ref-relative', $absolute );
    4949       
     
    8686       
    8787        // what is this??
    88         if( strpos($url2, self::$baseurl) !== 0 && strpos($url2, 'http://') !== 0 ){
     88        if( is_string($url2) && (strpos($url2, self::$baseurl) !== 0) && (strpos($url2, 'http://') !== 0) ){
    8989            $url2 = self::$baseurl.$url2;
    9090        }
Note: See TracChangeset for help on using the changeset viewer.