Changeset 198559
- Timestamp:
- 01/27/2010 12:42:47 AM (16 years ago)
- Location:
- wp-get-post-image/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp_get_post_image.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-get-post-image/trunk/readme.txt
r187659 r198559 1 1 === Plugin Name === 2 2 Contributors: TheWebist 3 Plugin URI: http://wordpress.org/extend/plugins/wp-get-post-image/ 3 4 Donate Link: http://michaelwender.com 4 Tags: images, attachments, post image, function 5 Tags: images, attachments, post image, function, template tag 5 6 Requires at least: 2.8.4 6 Tested up to: 2.9 7 Stable tag: 0. 17 Tested up to: 2.9.1 8 Stable tag: 0.2 8 9 9 10 Adds the function wp_get_post_image(), giving theme builders easy access to images associated with a post or page. … … 75 76 == Changelog == 76 77 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 77 81 = 0.1 (2009-11-23) = 78 82 * first version -
wp-get-post-image/trunk/wp_get_post_image.php
r176160 r198559 3 3 Plugin Name: WP Get Post Image 4 4 Plugin Script: wp_get_post_thumbnail.php 5 Plugin URI: http:// michaelwender.com/5 Plugin URI: http://wordpress.org/extend/plugins/wp-get-post-image/ 6 6 Description: 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. 17 Version: 0.2 8 8 Author: Michael Wender 9 Author URI: http://michaelwender.com/ tools/wp-get-post-image9 Author URI: http://michaelwender.com/ 10 10 11 11 Copyright 2009 Michael Wender, [email protected] … … 54 54 $image->guid_path = str_replace(basename($image->guid),'',$image->guid); 55 55 $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); 57 57 $image->abspath = str_replace($image->filename,'',$image->basepath); 58 58 $image->ext = substr($image->filename, -4, 4);
Note: See TracChangeset
for help on using the changeset viewer.