Get the Image - Version 1.0.1

Version Description

Download this release

Release Info

Developer greenshady
Plugin Icon 128x128 Get the Image
Version 1.0.1
Comparing to
See all releases

Code changes from version 1.0.0 to 1.0.1

Files changed (3) hide show
  1. get-the-image.php +4 -4
  2. readme.md +4 -0
  3. readme.txt +5 -1
get-the-image.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Get The Image
4
  * Plugin URI: http://themehybrid.com/plugins/get-the-image
5
  * 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.
6
- * Version: 1.0.0
7
  * Author: Justin Tadlock
8
  * Author URI: http://justintadlock.com
9
  */
@@ -25,7 +25,7 @@
25
  * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26
  *
27
  * @package GetTheImage
28
- * @version 1.0.0
29
  * @author Justin Tadlock <justin@justintadlock.com>
30
  * @copyright Copyright (c) 2008 - 2014, Justin Tadlock
31
  * @link http://justintadlock.com/archives/2008/05/27/get-the-image-wordpress-plugin
@@ -225,7 +225,7 @@ final class Get_The_Image {
225
 
226
  /* Only used if $original_image is set. */
227
  if ( true === $this->args['split_content'] && !empty( $this->original_image ) )
228
- add_filter( 'the_content', array( $this, 'split_content' ), 15 );
229
  }
230
 
231
  /**
@@ -794,7 +794,7 @@ final class Get_The_Image {
794
  */
795
  public function split_content( $content ) {
796
 
797
- remove_filter( 'the_content', array( $this, 'split_content' ), 1 );
798
 
799
  return str_replace( $this->original_image, '', $content );
800
  }
3
  * Plugin Name: Get The Image
4
  * Plugin URI: http://themehybrid.com/plugins/get-the-image
5
  * 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.
6
+ * Version: 1.0.1
7
  * Author: Justin Tadlock
8
  * Author URI: http://justintadlock.com
9
  */
25
  * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26
  *
27
  * @package GetTheImage
28
+ * @version 1.0.1
29
  * @author Justin Tadlock <justin@justintadlock.com>
30
  * @copyright Copyright (c) 2008 - 2014, Justin Tadlock
31
  * @link http://justintadlock.com/archives/2008/05/27/get-the-image-wordpress-plugin
225
 
226
  /* Only used if $original_image is set. */
227
  if ( true === $this->args['split_content'] && !empty( $this->original_image ) )
228
+ add_filter( 'the_content', array( $this, 'split_content' ), 9 );
229
  }
230
 
231
  /**
794
  */
795
  public function split_content( $content ) {
796
 
797
+ remove_filter( 'the_content', array( $this, 'split_content' ), 9 );
798
 
799
  return str_replace( $this->original_image, '', $content );
800
  }
readme.md CHANGED
@@ -205,6 +205,10 @@ You will still have the `size` and `meta_key` classes plus your additional class
205
 
206
  ## Changelog ##
207
 
 
 
 
 
208
  ### Version 1.0.0 ###
209
 
210
  #### General Changes: ####
205
 
206
  ## Changelog ##
207
 
208
+ ### Version 1.0.1 ###
209
+
210
+ * Changed priority of `split_content` filter to make sure images are split from the content.
211
+
212
  ### Version 1.0.0 ###
213
 
214
  #### General Changes: ####
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: greenshady
4
  Donate link: http://themehybrid.com/donate
5
  Tags: image, images, thumbnail
6
  Requires at least: 3.9
7
- Stable tag: 1.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -80,6 +80,10 @@ To see all methods and options, refer to the `readme.md` file included with the
80
 
81
  == Changelog ==
82
 
 
 
 
 
83
  ### Version 1.0.0 ###
84
 
85
  #### General Changes: ####
4
  Donate link: http://themehybrid.com/donate
5
  Tags: image, images, thumbnail
6
  Requires at least: 3.9
7
+ Stable tag: 1.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
80
 
81
  == Changelog ==
82
 
83
+ ### Version 1.0.1 ###
84
+
85
+ * Changed priority of `split_content` filter to make sure images are split from the content.
86
+
87
  ### Version 1.0.0 ###
88
 
89
  #### General Changes: ####