Plugin Directory

Changeset 198559


Ignore:
Timestamp:
01/27/2010 12:42:47 AM (16 years ago)
Author:
TheWebist
Message:

Updating to 0.2. Adjusted basepath to use get_bloginfo('wpurl') instead of get_bloginfo('url').

Location:
wp-get-post-image/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-get-post-image/trunk/readme.txt

    r187659 r198559  
    11=== Plugin Name ===
    22Contributors: TheWebist
     3Plugin URI: http://wordpress.org/extend/plugins/wp-get-post-image/
    34Donate Link: http://michaelwender.com
    4 Tags: images, attachments, post image, function
     5Tags: images, attachments, post image, function, template tag
    56Requires at least: 2.8.4
    6 Tested up to: 2.9
    7 Stable tag: 0.1
     7Tested up to: 2.9.1
     8Stable tag: 0.2
    89
    910Adds the function wp_get_post_image(), giving theme builders easy access to images associated with a post or page.
     
    7576== Changelog ==
    7677
     78= 0.2 (2010-01-26) =
     79*   Adjusted `$image->basepath` to reference `get_bloginfo('wpurl')` instead of `get_bloginfo('url')`. This makes the plugin work when WordPress is installed in one directory while the blog displays in another. (HT: [Mike Cohen](http://mikecohenmedia.com/ "Mike Cohen Media"))
     80
    7781= 0.1 (2009-11-23) =
    7882*  first version
  • wp-get-post-image/trunk/wp_get_post_image.php

    r176160 r198559  
    33Plugin Name: WP Get Post Image
    44Plugin Script: wp_get_post_thumbnail.php
    5 Plugin URI: http://michaelwender.com/
     5Plugin URI: http://wordpress.org/extend/plugins/wp-get-post-image/
    66Description: This plugin provides the function <code>wp_get_post_image()</code> which gives WordPress developers and theme builders easy access to images associated with a post or page.
    7 Version: 0.1
     7Version: 0.2
    88Author: Michael Wender
    9 Author URI: http://michaelwender.com/tools/wp-get-post-image
     9Author URI: http://michaelwender.com/
    1010
    1111Copyright 2009 Michael Wender, [email protected]
     
    5454        $image->guid_path = str_replace(basename($image->guid),'',$image->guid);
    5555        $image->filename = basename($image->guid);
    56         $image->basepath = ABSPATH.str_replace(get_bloginfo('url').'/','',$image->guid);
     56        $image->basepath = ABSPATH.str_replace(get_bloginfo('wpurl').'/','',$image->guid);
    5757        $image->abspath = str_replace($image->filename,'',$image->basepath);       
    5858        $image->ext = substr($image->filename, -4, 4);
Note: See TracChangeset for help on using the changeset viewer.