Video Thumbnails - Version 2.0.10

Version Description

  • Reduced overhead on settings pages
Download this release

Release Info

Developer sutherlandboswell
Plugin Icon 128x128 Video Thumbnails
Version 2.0.10
Comparing to
See all releases

Code changes from version 2.0.9 to 2.0.10

php/class-video-thumbnails-settings.php CHANGED
@@ -49,7 +49,9 @@ class Video_Thumbnails_Settings {
49
  if ( isset ( $_GET['page'] ) && ( $_GET['page'] == 'video_thumbnails' ) ) {
50
  // Admin scripts
51
  add_action( 'admin_enqueue_scripts', array( &$this, 'admin_scripts' ) );
52
- // Ajax past posts script
 
 
53
  add_action( 'admin_head', array( &$this, 'ajax_past_script' ) );
54
  }
55
  }
@@ -159,17 +161,12 @@ function video_thumbnails_past(id) {
159
 
160
  };
161
  <?php
162
- $posts = get_posts( array(
163
  'showposts' => -1,
164
- 'post_type' => $this->options['post_types']
 
165
  ) );
166
-
167
- if ( $posts ) {
168
- foreach ( $posts as $post ) {
169
- $post_ids[] = $post->ID;
170
- }
171
- $ids = implode( ', ', $post_ids );
172
- }
173
  ?>
174
 
175
  var scanComplete = false;
49
  if ( isset ( $_GET['page'] ) && ( $_GET['page'] == 'video_thumbnails' ) ) {
50
  // Admin scripts
51
  add_action( 'admin_enqueue_scripts', array( &$this, 'admin_scripts' ) );
52
+ }
53
+ // Ajax past posts script
54
+ if ( isset ( $_GET['page'] ) && ( $_GET['page'] == 'video_thumbnails' ) && isset ( $_GET['tab'] ) && ( $_GET['tab'] == 'mass_actions' ) ) {
55
  add_action( 'admin_head', array( &$this, 'ajax_past_script' ) );
56
  }
57
  }
161
 
162
  };
163
  <?php
164
+ $id_array = get_posts( array(
165
  'showposts' => -1,
166
+ 'post_type' => $this->options['post_types'],
167
+ 'fields' => 'ids'
168
  ) );
169
+ $ids = implode( ', ', $id_array );
 
 
 
 
 
 
170
  ?>
171
 
172
  var scanComplete = false;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wie.ly/u/donate
4
  Tags: Video, Thumbnails, YouTube, Vimeo, Blip, Justin.tv, Dailymotion, Metacafe, Image, Featured Image, Post Thumbnail
5
  Requires at least: 3.1
6
  Tested up to: 3.6
7
- Stable tag: 2.0.9
8
 
9
  Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
10
 
@@ -97,6 +97,9 @@ The Vimeo API has a rate limit, so in rare cases you may exceed this limit. Try
97
 
98
  == Changelog ==
99
 
 
 
 
100
  = 2.0.9 =
101
  * Fixed Vimeo protocol-relative embeds
102
  * Fixed bug with PNG image types
4
  Tags: Video, Thumbnails, YouTube, Vimeo, Blip, Justin.tv, Dailymotion, Metacafe, Image, Featured Image, Post Thumbnail
5
  Requires at least: 3.1
6
  Tested up to: 3.6
7
+ Stable tag: 2.0.10
8
 
9
  Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
10
 
97
 
98
  == Changelog ==
99
 
100
+ = 2.0.10 =
101
+ * Reduced overhead on settings pages
102
+
103
  = 2.0.9 =
104
  * Fixed Vimeo protocol-relative embeds
105
  * Fixed bug with PNG image types
video-thumbnails.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://refactored.co/plugins/video-thumbnails
5
  Description: Automatically retrieve video thumbnails for your posts and display them in your theme. Currently supports YouTube, Vimeo, Facebook, Blip.tv, Justin.tv, Dailymotion, Metacafe, Wistia, Youku, Funny or Die, and MPORA.
6
  Author: Sutherland Boswell
7
  Author URI: http://sutherlandboswell.com
8
- Version: 2.0.9
9
  License: GPL2
10
  */
11
  /* Copyright 2013 Sutherland Boswell (email : sutherland.boswell@gmail.com)
@@ -28,7 +28,7 @@ License: GPL2
28
 
29
  define( 'VIDEO_THUMBNAILS_PATH', dirname(__FILE__) );
30
  define( 'VIDEO_THUMBNAILS_FIELD', '_video_thumbnail' );
31
- define( 'VIDEO_THUMBNAILS_VERSION', '2.0.9' );
32
 
33
  // Providers
34
  require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-video-thumbnails-providers.php' );
5
  Description: Automatically retrieve video thumbnails for your posts and display them in your theme. Currently supports YouTube, Vimeo, Facebook, Blip.tv, Justin.tv, Dailymotion, Metacafe, Wistia, Youku, Funny or Die, and MPORA.
6
  Author: Sutherland Boswell
7
  Author URI: http://sutherlandboswell.com
8
+ Version: 2.0.10
9
  License: GPL2
10
  */
11
  /* Copyright 2013 Sutherland Boswell (email : sutherland.boswell@gmail.com)
28
 
29
  define( 'VIDEO_THUMBNAILS_PATH', dirname(__FILE__) );
30
  define( 'VIDEO_THUMBNAILS_FIELD', '_video_thumbnail' );
31
+ define( 'VIDEO_THUMBNAILS_VERSION', '2.0.10' );
32
 
33
  // Providers
34
  require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-video-thumbnails-providers.php' );