Quick Featured Images - Version 11.7.2

Version Description

  • Fixed: broken recognition of first post image works in multilines
  • Tested successfully with WordPress 4.5.1
Download this release

Release Info

Developer Hinjiriyo
Plugin Icon 128x128 Quick Featured Images
Version 11.7.2
Comparing to
See all releases

Code changes from version 11.7.1 to 11.7.2

README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Hinjiriyo
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2KUW27NECWVWJ
4
  Tags: add, arabic, assign, associate, attach, attachment, attachments, audio, audios, author, auto, automatic, batch, bulk, categories, category, change, column, control, custom post type, custom post types, custom taxonomies, custom taxonomy, date, dates, default, define, delete, detach, exchange, featured, featured image, featured images, filter, gallery, galleries, image, image size, images, mass, media, mime, multimedia, nextgen, pages, parent page, period, post type, post types, posts, quick, random, rapid, remove, replace, rules, search, set, standard, tag, taxonomies, taxonomy, thumb, thumbnail, thumbnails, thumbs, time, unset, update, user, video, videos, spanish, español, deutsch, german
5
  Requires at least: 3.8
6
- Tested up to: 4.5
7
- Stable tag: 11.7.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -277,6 +277,10 @@ If you want to contribute a translation of the plugin in your language it would
277
 
278
  == Changelog ==
279
 
 
 
 
 
280
  = 11.7.1 =
281
  * Revised plugin activation message function
282
  * Tested successfully with WordPress 4.5
@@ -554,6 +558,9 @@ Fixed an insufficient security check which prevented to set a featured image
554
 
555
  == Upgrade Notice ==
556
 
 
 
 
557
  = 11.7.1 =
558
  Revised plugin activation message function, tested with WP 4.5
559
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2KUW27NECWVWJ
4
  Tags: add, arabic, assign, associate, attach, attachment, attachments, audio, audios, author, auto, automatic, batch, bulk, categories, category, change, column, control, custom post type, custom post types, custom taxonomies, custom taxonomy, date, dates, default, define, delete, detach, exchange, featured, featured image, featured images, filter, gallery, galleries, image, image size, images, mass, media, mime, multimedia, nextgen, pages, parent page, period, post type, post types, posts, quick, random, rapid, remove, replace, rules, search, set, standard, tag, taxonomies, taxonomy, thumb, thumbnail, thumbnails, thumbs, time, unset, update, user, video, videos, spanish, español, deutsch, german
5
  Requires at least: 3.8
6
+ Tested up to: 4.5.1
7
+ Stable tag: 11.7.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
277
 
278
  == Changelog ==
279
 
280
+ = 11.7.2 =
281
+ * Fixed: broken recognition of first post image works in multilines
282
+ * Tested successfully with WordPress 4.5.1
283
+
284
  = 11.7.1 =
285
  * Revised plugin activation message function
286
  * Tested successfully with WordPress 4.5
558
 
559
  == Upgrade Notice ==
560
 
561
+ = 11.7.2 =
562
+ Fixed: broken recognition of first post image works in multilines
563
+
564
  = 11.7.1 =
565
  Revised plugin activation message function, tested with WP 4.5
566
 
admin/class-quick-featured-images-admin.php CHANGED
@@ -19,7 +19,7 @@
19
  *
20
  * @var string
21
  */
22
- protected $plugin_version = '11.7.1';
23
 
24
  /**
25
  * Instance of this class.
19
  *
20
  * @var string
21
  */
22
+ protected $plugin_version = '11.7.2';
23
 
24
  /**
25
  * Instance of this class.
admin/class-quick-featured-images-defaults.php CHANGED
@@ -727,11 +727,11 @@ class Quick_Featured_Images_Defaults {
727
  // set variables
728
  global $wpdb;
729
  // look for images in HTML code
730
- preg_match_all( '/<img[^>]+>/i', $content, $all_img_tags );
731
  if ( $all_img_tags ) {
732
  foreach ( $all_img_tags[ 0 ] as $img_tag ) {
733
  // find class attribute and catch its value
734
- preg_match( '/<img.*?class\s*=\s*[\'"]([^\'"]+)[\'"][^>]*>/i', $img_tag, $img_class );
735
  if ( $img_class ) {
736
  // Look for the WP image id
737
  preg_match( '/wp-image-([\d]+)/i', $img_class[ 1 ], $found_id );
@@ -747,7 +747,7 @@ class Quick_Featured_Images_Defaults {
747
 
748
  // else: try to catch content image id by its url as stored in the database
749
  // find src attribute and catch its value
750
- preg_match( '/<img.*?src\s*=\s*[\'"]([^\'"]+)[\'"][^>]*>/i', $img_tag, $img_src );
751
  if ( $img_src ) {
752
  // delete optional query string in img src
753
  $url = preg_replace( '/([^?]+).*/', '\1', $img_src[ 1 ] );
727
  // set variables
728
  global $wpdb;
729
  // look for images in HTML code
730
+ preg_match_all( '/<[iI][mM][gG][^>]+>/', $content, $all_img_tags );
731
  if ( $all_img_tags ) {
732
  foreach ( $all_img_tags[ 0 ] as $img_tag ) {
733
  // find class attribute and catch its value
734
+ preg_match( '/<img[^>]*class\s*=\s*[\'"]([^\'"]+)[\'"][^>]*>/i', $img_tag, $img_class );
735
  if ( $img_class ) {
736
  // Look for the WP image id
737
  preg_match( '/wp-image-([\d]+)/i', $img_class[ 1 ], $found_id );
747
 
748
  // else: try to catch content image id by its url as stored in the database
749
  // find src attribute and catch its value
750
+ preg_match( '/<img[^>]*src\s*=\s*[\'"]([^\'"]+)[\'"][^>]*>/i', $img_tag, $img_src );
751
  if ( $img_src ) {
752
  // delete optional query string in img src
753
  $url = preg_replace( '/([^?]+).*/', '\1', $img_src[ 1 ] );
quick-featured-images.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: Quick Featured Images
11
  * Plugin URI: http://wordpress.org/plugins/quick-featured-images
12
  * Description: Your time-saving Swiss Army Knife for featured images: Set, replace and delete them in bulk, set default images, get overview lists.
13
- * Version: 11.7.1
14
  * Author: Martin Stehle
15
  * Author URI: http://stehle-internet.de
16
  * Text Domain: quick-featured-images
10
  * Plugin Name: Quick Featured Images
11
  * Plugin URI: http://wordpress.org/plugins/quick-featured-images
12
  * Description: Your time-saving Swiss Army Knife for featured images: Set, replace and delete them in bulk, set default images, get overview lists.
13
+ * Version: 11.7.2
14
  * Author: Martin Stehle
15
  * Author URI: http://stehle-internet.de
16
  * Text Domain: quick-featured-images