Image Widget - Version 3.1

Version Description

Download this release

Release Info

Developer peterchester
Plugin Icon 128x128 Image Widget
Version 3.1
Comparing to
See all releases

Code changes from version 3.0.9 to 3.1

Files changed (2) hide show
  1. image-widget.php +7 -4
  2. readme.txt +5 -1
image-widget.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Image Widget
4
  Plugin URI: http://wordpress.org/extend/plugins/image-widget/
5
  Description: Simple image widget that uses native Wordpress upload thickbox to add image widgets to your site.
6
  Author: Shane and Peter, Inc.
7
- Version: 3.0.9
8
  Author URI: http://www.shaneandpeter.com
9
  */
10
 
@@ -87,11 +87,14 @@ class SP_Image_Widget extends WP_Widget {
87
  * @author Shane & Peter, Inc. (Peter Chester)
88
  */
89
  public function is_sp_widget_context() {
90
- if ( strpos($_SERVER['HTTP_REFERER'],$this->id_base) !== false || strpos($_REQUEST['_wp_http_referer'],$this->id_base) !== false ) {
 
 
 
 
91
  return true;
92
- } else {
93
- return false;
94
  }
 
95
  }
96
 
97
  /**
4
  Plugin URI: http://wordpress.org/extend/plugins/image-widget/
5
  Description: Simple image widget that uses native Wordpress upload thickbox to add image widgets to your site.
6
  Author: Shane and Peter, Inc.
7
+ Version: 3.1
8
  Author URI: http://www.shaneandpeter.com
9
  */
10
 
87
  * @author Shane & Peter, Inc. (Peter Chester)
88
  */
89
  public function is_sp_widget_context() {
90
+ if ( isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'],$this->id_base) !== false ) {
91
+ return true;
92
+ } elseif ( isset($_REQUEST['_wp_http_referer']) && strpos($_REQUEST['_wp_http_referer'],$this->id_base) !== false ) {
93
+ return true;
94
+ } elseif ( isset($_REQUEST['widget_id']) && strpos($_REQUEST['widget_id'],$this->id_base) !== false ) {
95
  return true;
 
 
96
  }
97
+ return false;
98
  }
99
 
100
  /**
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.shaneandpeter.com
4
  Tags: widget, image, ad, banner, simple, upload, sidebar, admin, thickbox, resize
5
  Requires at least: 2.8
6
  Tested up to: 2.9
7
- Stable tag: 3.0.9
8
 
9
  == Description ==
10
 
@@ -35,6 +35,10 @@ If you find any bugs or have any ideas, please mail us.
35
 
36
  == Changelog ==
37
 
 
 
 
 
38
  = 3.0.9 =
39
 
40
  * Fix bug: update tabs filter to not kill tabs if upload window is for non widget uses.
4
  Tags: widget, image, ad, banner, simple, upload, sidebar, admin, thickbox, resize
5
  Requires at least: 2.8
6
  Tested up to: 2.9
7
+ Stable tag: 3.1
8
 
9
  == Description ==
10
 
35
 
36
  == Changelog ==
37
 
38
+ = 3.0.10 =
39
+
40
+ * Fix bug: improve tab filters.
41
+
42
  = 3.0.9 =
43
 
44
  * Fix bug: update tabs filter to not kill tabs if upload window is for non widget uses.