Image Widget - Version 3.1.1

Version Description

  • Fix bug: php4 reported error: PHP Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' (thanks natashaelaine and massimopaolini)
Download this release

Release Info

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

Code changes from version 3.1 to 3.1.1

Files changed (2) hide show
  1. image-widget.php +4 -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.1
8
  Author URI: http://www.shaneandpeter.com
9
  */
10
 
@@ -86,7 +86,7 @@ class SP_Image_Widget extends WP_Widget {
86
  * @return void
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 ) {
@@ -106,7 +106,7 @@ class SP_Image_Widget extends WP_Widget {
106
  * @return void
107
  * @author Shane & Peter, Inc. (Peter Chester)
108
  */
109
- public function replace_text_in_thitckbox($translated_text, $source_text, $domain) {
110
  if ( $this->is_sp_widget_context() ) {
111
  if ('Insert into Post' == $source_text) {
112
  return __('Insert Into Widget', 'sp_image_widget' );
@@ -158,7 +158,7 @@ class SP_Image_Widget extends WP_Widget {
158
  * @return void
159
  * @author Shane & Peter, Inc. (Peter Chester)
160
  */
161
- public function media_upload_tabs($tabs) {
162
  if ( $this->is_sp_widget_context() ) {
163
  unset($tabs['type_url']);
164
  }
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.1
8
  Author URI: http://www.shaneandpeter.com
9
  */
10
 
86
  * @return void
87
  * @author Shane & Peter, Inc. (Peter Chester)
88
  */
89
+ 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 ) {
106
  * @return void
107
  * @author Shane & Peter, Inc. (Peter Chester)
108
  */
109
+ function replace_text_in_thitckbox($translated_text, $source_text, $domain) {
110
  if ( $this->is_sp_widget_context() ) {
111
  if ('Insert into Post' == $source_text) {
112
  return __('Insert Into Widget', 'sp_image_widget' );
158
  * @return void
159
  * @author Shane & Peter, Inc. (Peter Chester)
160
  */
161
+ function media_upload_tabs($tabs) {
162
  if ( $this->is_sp_widget_context() ) {
163
  unset($tabs['type_url']);
164
  }
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.1
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.10 =
39
 
40
  * Fix bug: improve tab filters.
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.1
8
 
9
  == Description ==
10
 
35
 
36
  == Changelog ==
37
 
38
+ = 3.1.1 =
39
+
40
+ * Fix bug: php4 reported error: PHP Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' (thanks natashaelaine and massimopaolini)
41
+
42
  = 3.0.10 =
43
 
44
  * Fix bug: improve tab filters.