Navigation Menu

Skip to content

Commit

Permalink
Merge branch '1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Tadlock committed Jul 23, 2014
2 parents 32f8144 + 426b5f9 commit 3205599
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 4 additions & 4 deletions get-the-image.php
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Get The Image
* Plugin URI: http://themehybrid.com/plugins/get-the-image
* Description: This is a highly intuitive script that can grab an image by custom field, featured image, post attachment, or extracting it from the post's content.
* Version: 1.0.0
* Version: 1.0.1
* Author: Justin Tadlock
* Author URI: http://justintadlock.com
*/
Expand All @@ -25,7 +25,7 @@
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* @package GetTheImage
* @version 1.0.0
* @version 1.0.1
* @author Justin Tadlock <justin@justintadlock.com>
* @copyright Copyright (c) 2008 - 2014, Justin Tadlock
* @link http://justintadlock.com/archives/2008/05/27/get-the-image-wordpress-plugin
Expand Down Expand Up @@ -225,7 +225,7 @@ public function __construct( $args = array() ) {

/* Only used if $original_image is set. */
if ( true === $this->args['split_content'] && !empty( $this->original_image ) )
add_filter( 'the_content', array( $this, 'split_content' ), 15 );
add_filter( 'the_content', array( $this, 'split_content' ), 9 );
}

/**
Expand Down Expand Up @@ -794,7 +794,7 @@ public function sanitize_class( $classes ) {
*/
public function split_content( $content ) {

remove_filter( 'the_content', array( $this, 'split_content' ), 1 );
remove_filter( 'the_content', array( $this, 'split_content' ), 9 );

return str_replace( $this->original_image, '', $content );
}
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Expand Up @@ -205,6 +205,10 @@ You will still have the `size` and `meta_key` classes plus your additional class

## Changelog ##

### Version 1.0.1 ###

* Changed priority of `split_content` filter to make sure images are split from the content.

### Version 1.0.0 ###

#### General Changes: ####
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Expand Up @@ -4,7 +4,7 @@ Contributors: greenshady
Donate link: http://themehybrid.com/donate
Tags: image, images, thumbnail
Requires at least: 3.9
Stable tag: 1.0.0
Stable tag: 1.0.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -80,6 +80,10 @@ To see all methods and options, refer to the `readme.md` file included with the

== Changelog ==

### Version 1.0.1 ###

* Changed priority of `split_content` filter to make sure images are split from the content.

### Version 1.0.0 ###

#### General Changes: ####
Expand Down

0 comments on commit 3205599

Please sign in to comment.