diff --git a/wp-content/plugins/video-sidebar-widgets/class-postmetavideowidget.php b/wp-content/plugins/video-sidebar-widgets/class-postmetavideowidget.php index 3d11c65a88093181321d904eaa878db6bf00b643..a8d38c63f21352654e4ed41709fb1f1b981da956 100644 --- a/wp-content/plugins/video-sidebar-widgets/class-postmetavideowidget.php +++ b/wp-content/plugins/video-sidebar-widgets/class-postmetavideowidget.php @@ -7,13 +7,13 @@ class PostMetaVideoWidget extends WP_Widget { //function to set up widget in admin - function PostMetaVideoWidget() { + function __construct() { $widget_ops = array( 'classname' => 'postmetavideo', 'description' => __('A Video Widget that is controlled by Post or Page custom field settings.', 'postmetavideo') ); $control_ops = array( 'width' => 200, 'height' => 350, 'id_base' => 'postmetavideo' ); - $this->WP_Widget( 'postmetavideo', __('Post Meta Video Widget', 'postmetavideo'), $widget_ops, $control_ops ); + parent::__construct( 'postmetavideo', __('Post Meta Video Widget', 'postmetavideo'), $widget_ops, $control_ops ); } diff --git a/wp-content/plugins/video-sidebar-widgets/class-randomvideosidebarwidget.php b/wp-content/plugins/video-sidebar-widgets/class-randomvideosidebarwidget.php index db8bb25b4580f8ae1e06423424c004872cdc1615..f8d0780f6d0296f5bd9c8d6d0e056fe0f889d259 100644 --- a/wp-content/plugins/video-sidebar-widgets/class-randomvideosidebarwidget.php +++ b/wp-content/plugins/video-sidebar-widgets/class-randomvideosidebarwidget.php @@ -6,10 +6,10 @@ class RandomVideoSidebarWidget extends WP_Widget { -function RandomVideoSidebarWidget() { +function __construct(){ $widget_ops = array( 'classname' => 'randomvideosidebar', 'description' => __('A Random Video Widget. Randomly selects 1 of the 5 preset videos for display', 'randomvideosidebar') ); $control_ops = array( 'width' => 850, 'height' => 700, 'id_base' => 'randomvideosidebar' ); -$this->WP_Widget( 'randomvideosidebar', __('Random Video Sidebar Widget', 'randomvideosidebar'), $widget_ops, $control_ops ); +parent::__construct( 'randomvideosidebar', __('Random Video Sidebar Widget', 'randomvideosidebar'), $widget_ops, $control_ops ); } diff --git a/wp-content/plugins/video-sidebar-widgets/class-videosidebarwidget.php b/wp-content/plugins/video-sidebar-widgets/class-videosidebarwidget.php index fbc0be8f1bf5b522e488984c7389eba4817829c7..11c520126d9c581ec8990ea6a61e8c72c84cce16 100644 --- a/wp-content/plugins/video-sidebar-widgets/class-videosidebarwidget.php +++ b/wp-content/plugins/video-sidebar-widgets/class-videosidebarwidget.php @@ -7,13 +7,13 @@ class VideoSidebarWidget extends WP_Widget { //function to set up widget in admin - function VideoSidebarWidget() { + function __construct(){ $widget_ops = array( 'classname' => 'videosidebar', 'description' => __('A Video Widget to display video in sidebar from various video sharing networks', 'videosidebar') ); $control_ops = array( 'width' => 200, 'height' => 350, 'id_base' => 'videosidebar' ); - $this->WP_Widget( 'videosidebar', __('Video Sidebar Widget', 'videosidebar'), $widget_ops, $control_ops ); + parent::__construct( 'videosidebar', __('Video Sidebar Widget', 'videosidebar'), $widget_ops, $control_ops ); } diff --git a/wp-content/plugins/video-sidebar-widgets/helper-functions.php b/wp-content/plugins/video-sidebar-widgets/helper-functions.php index fde86a84f6bea18ab581dd1c55fb1887817ed324..051237b91dc3df145ec60f02b56ca43b14ad1aed 100644 --- a/wp-content/plugins/video-sidebar-widgets/helper-functions.php +++ b/wp-content/plugins/video-sidebar-widgets/helper-functions.php @@ -184,7 +184,7 @@ if(!empty($source)): //do this only if video source not empty, to fix widget pag //determine admin video width. global $current_screen; - if($current_screen->id == 'post' || $current_screen->id == 'page'){ + if(@$current_screen->id == 'post' || @$current_screen->id == 'page'){ $admin_video_width = '250'; $admin_video_height = '141'; }else{ diff --git a/wp-content/plugins/video-sidebar-widgets/readme.txt b/wp-content/plugins/video-sidebar-widgets/readme.txt index a7d5ad6675935f24899cf19589775ab7d98b8c98..bcb52065845af28b3a0792de771f68311b0ede8d 100644 --- a/wp-content/plugins/video-sidebar-widgets/readme.txt +++ b/wp-content/plugins/video-sidebar-widgets/readme.txt @@ -4,8 +4,8 @@ Donate link: http://denzeldesigns.com/wordpress-plugins/video-sidebar-widgets/ Author link: http://denzeldesigns.com Tags:video, widget, widgets, sidebar, videos, video sidebar widget, video widget, embed video, video embed, video in sidebar, youtube, vimeo, veoh, myspace video, revver, blip tv, tudou, youku, 6.cn, google videos, tangle Requires at least:2.8.1 -Tested up to: 4.2 -Stable tag:5.8 +Tested up to: 4.4 +Stable tag:5.9 == Description == @@ -15,6 +15,11 @@ Stable tag:5.8 == Changelog == += 5.9 = + +Change to use PHP 5 constructor. + + = 5.8 = Let YouTube and Vimeo video print iframe embed code, the others remains unchanged. diff --git a/wp-content/plugins/video-sidebar-widgets/video-sidebar-widgets.php b/wp-content/plugins/video-sidebar-widgets/video-sidebar-widgets.php index 0f55f8c6422efc69d43f9531756b864c38096446..be761237114fa7ccab38d6d7408aca77f1aa60d3 100644 --- a/wp-content/plugins/video-sidebar-widgets/video-sidebar-widgets.php +++ b/wp-content/plugins/video-sidebar-widgets/video-sidebar-widgets.php @@ -2,7 +2,7 @@ /* Plugin Name: Video Sidebar Widgets Plugin URI: http://denzeldesigns.com/wordpress-plugins/video-sidebar-widgets/ -Version: 5.8 +Version: 5.9 Description: Video Sidebar Widgets to display videos such as Vimeo, YouTube, MySpace Videos etc. Now with added shortcode and quicktag to embed video in post and page content. Author: Denzel Chia Author URI: http://denzeldesigns.com/