Version Description
- Added in 'Set, replace, remove': server configuration to avoid PHP timeout and memory limitation in most cases
- Fixed deprecated jquery live()
- Adjusted texts for WP 4.7
- Tested successfully with WordPress 4.7
Download this release
Release Info
Developer | Hinjiriyo |
Plugin | Quick Featured Images |
Version | 12.2 |
Comparing to | |
See all releases |
Code changes from version 12.1.1 to 12.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, brazilian, 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, português do brasil, portuguese, 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.
|
7 |
-
Stable tag: 12.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -278,6 +278,12 @@ If you want to contribute a translation of the plugin in your language it would
|
|
278 |
|
279 |
== Changelog ==
|
280 |
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
= 12.1.1 =
|
282 |
* Fixed warning about undefined variable in Presets
|
283 |
* Revised german translation
|
@@ -393,204 +399,12 @@ Added spanish translation for the main texts of the plugin
|
|
393 |
* Corrected CSS height for images in image column to keep the aspect ratio
|
394 |
* Updated *.pot file and german translation
|
395 |
|
396 |
-
= 9.1 =
|
397 |
-
* Added in 'Set, replace, remove': Option to find first image in WP galleries
|
398 |
-
* Added in 'Set, replace, remove': Informations about type and status of each post in preview list
|
399 |
-
* Fixed in 'Set, replace, remove': Only some assigned featured images were displayed; now all assigned images are displayed
|
400 |
-
* Fixed in 'Set, replace, remove': Hilited wrong step in process bar when user skips filters; now correct hilite
|
401 |
-
* Fixed in 'Image Columns': No more warning if no option was checked
|
402 |
-
* Slight design improvement on the post type filter
|
403 |
-
* Improved performance of preview list
|
404 |
-
* Adopted new core strings of WP 4.1
|
405 |
-
* Updated *.pot file and german translation
|
406 |
-
|
407 |
-
= 9.0 =
|
408 |
-
* Tested successfully with WP 4.1, especially the improved queries
|
409 |
-
* Added in 'Set, replace, remove': New filter 'Multimedia File Filter' for audio and video file types
|
410 |
-
* Added in 'Set, replace, remove': Option to ignore posts with featured images and consider only posts without any featured image
|
411 |
-
* Added in posts lists: Featured Image columns in posts lists are now sortable by image
|
412 |
-
* Fixed in 'Set, replace, remove': If no post type was selected in the post type filter all posts were returned as result; now no posts are returned as expected
|
413 |
-
* Fixed in 'Set, replace, remove': If a post had no title the link to this post was missing in the result lists; now a link with default '(no title)' is displayed
|
414 |
-
* Fixed in 'Set, replace, remove': If an image and the action 'Add first post image' were selected the design on the following pages was destroyed
|
415 |
-
* Improved performance in 'Set, replace, remove' for the result lists
|
416 |
-
* Changed sidebar content
|
417 |
-
* Updated *.pot file and german translation
|
418 |
-
|
419 |
-
= 8.3.1 =
|
420 |
-
* Fixed in 'Image Columns': bug which displayed undesired thumbnail columns. Please reset your image column settings.
|
421 |
-
* Tested successfully with WordPress 4.0.1
|
422 |
-
* Revised headlines in start page of 'Set, replace, remove' for better comprehension
|
423 |
-
* Updated *.pot file and german translation
|
424 |
-
|
425 |
-
= 8.3 =
|
426 |
-
* Fixed bug in 'Preset Featured Images' which prevented to recognize the first content image
|
427 |
-
* Improved algorithm for better detection of the id of the first content image
|
428 |
-
* Improved SQL performance in 'Set, replace, delete'
|
429 |
-
* Improved security by changing `(int)` to `absint()` for ID variables
|
430 |
-
* Fixed typo in german translation
|
431 |
-
|
432 |
-
= 8.2.2 =
|
433 |
-
* Added rule at the presets to overwrite existing featured images or to keep them by default
|
434 |
-
* Fixed bug at the presets where a rule based on a user could be ignored
|
435 |
-
* Updated *.pot file and german translation
|
436 |
-
|
437 |
-
= 8.2.1 =
|
438 |
-
* Successfully tested with WordPress 4.0
|
439 |
-
* Added icons for plugin search
|
440 |
-
* Changed order of links for this plugin on plugin list
|
441 |
-
|
442 |
-
= 8.2 =
|
443 |
-
* Added in 'Preset Featured Images': author as taxonomy
|
444 |
-
* Added in 'Set, replace, remove' a help text for the case of a white blank page while treating thousands of posts
|
445 |
-
* Improved in 'Preset Featured Images': featured image is set when a new post is created, so the rules work with auto-posting / auto-blogging plugins (aggregators)
|
446 |
-
* Improved uninstall routine
|
447 |
-
* Tested successfully with WordPress 3.9.2
|
448 |
-
* Updated *.pot file and german translation
|
449 |
-
|
450 |
-
= 8.1 =
|
451 |
-
* Added option to use the first content image as featured image only if there is no featured image
|
452 |
-
* Fixed empty pulldown menu on 'Preset Featured Images' if values have apostrophes
|
453 |
-
* Fixed PayPal button if WordPress locale value is not supported by PayPal
|
454 |
-
* Improved robustness and security of code for page 'Preset Featured Images'
|
455 |
-
* Renamed sub menu page 'Settings' to 'Image Columns'
|
456 |
-
* Changed illustration on page 'Image Columns'
|
457 |
-
* Updated *.pot file and german translation
|
458 |
-
* Updated screenshots
|
459 |
-
|
460 |
-
= 8.0 =
|
461 |
-
* Added the functionality of auto set featured images for new posts based on user defined rules
|
462 |
-
* Added a sub menu page 'Preset Featured Images'
|
463 |
-
* Updated menu page 'Overview'
|
464 |
-
* Moved menu item near menu item 'Media'
|
465 |
-
* Tested JavaScript in Opera, Firefox, Chrome and Internet Explorer
|
466 |
-
* Fixed wrong behaviour on Customize page if both image selection buttons were clicked
|
467 |
-
* Fixed HTML content section of custom taxonomies filter
|
468 |
-
* Updated uninstall file
|
469 |
-
* Updated *.pot file and german translation
|
470 |
-
* Added screenshot of page 'Preset Featured Images'
|
471 |
-
|
472 |
-
= 7.0 =
|
473 |
-
* Added a top level menu item 'Featured Images'
|
474 |
-
* Added a sub menu page 'Overview'
|
475 |
-
* Added a sub menu page 'Settings'
|
476 |
-
* Added a sub menu page 'Customize', moved the former menu link 'Media' - 'Quick Featured Images' to there
|
477 |
-
* Added additional image column in lists of posts for assigned featured images
|
478 |
-
* Added additional image column in lists of pages
|
479 |
-
* Added additional image column in lists of thumbnail supporting custom post types
|
480 |
-
* Added options to switch each of the additional image columns on or off
|
481 |
-
* Added uninstall file
|
482 |
-
* Raised the lowest required WordPress version from 3.7 to 3.8 because of the use of dashicons
|
483 |
-
* Significant refactoring
|
484 |
-
* Fixed width of selected image on the plugin's start page
|
485 |
-
* Fixed error message for too old WordPress version
|
486 |
-
* Tested on localized WordPress installations
|
487 |
-
* Updated *.pot file and german translation
|
488 |
-
* Updated screenshots
|
489 |
-
|
490 |
-
= 6.0 =
|
491 |
-
* Added action: Set multiple selected images as featured images randomly
|
492 |
-
* Revised layout of the plugin's start page
|
493 |
-
* Updated *.pot file and german translation
|
494 |
-
|
495 |
-
= 5.1.1 =
|
496 |
-
* Added a notice to the image selection button for the case of not working.
|
497 |
-
* Tiny text changes
|
498 |
-
* Refactoring for the image search function
|
499 |
-
* Updated *.pot file and german translation
|
500 |
-
|
501 |
-
= 5.1 =
|
502 |
-
* Added: Column in the preview list for the future featured image
|
503 |
-
* Added: Option whether to overwrite existing featured images or not
|
504 |
-
* Added: User selected filters and options in the information section
|
505 |
-
* Changed: Setting no filters jumps directly to confirmation page instead of displaying an error message
|
506 |
-
* Improved: Search for first image in posts finds more images
|
507 |
-
* Improved: Selected featured images which should be replaced are remembered if the user goes back to selection page
|
508 |
-
* Updated *.pot file and german translation
|
509 |
-
|
510 |
-
= 5.0 =
|
511 |
-
* Added action: Take the first image in a post as featured image
|
512 |
-
* Updated *.pot file and german translation
|
513 |
-
|
514 |
-
= 4.1.2 =
|
515 |
-
Fixed bug on using custom taxonomies
|
516 |
-
|
517 |
-
= 4.1.1 =
|
518 |
-
Fixed an insufficient security check which prevented to set a featured image
|
519 |
-
|
520 |
-
= 4.1 =
|
521 |
-
* Added link "Bulk set as featured image" under each image in the media library
|
522 |
-
* Changed hard coded plugin name to variable
|
523 |
-
* Tested with WordPress 3.9.1
|
524 |
-
* Updated *.pot file and german translation
|
525 |
-
|
526 |
-
= 4.0 =
|
527 |
-
* Added new filter "Filter by Time Specifications": Search in time periods on a year-month base
|
528 |
-
* Improved page speed at both the preview list and the result list
|
529 |
-
* Improved style for smartphones
|
530 |
-
* Updated *.pot file and german translation
|
531 |
-
|
532 |
-
= 3.2.1 =
|
533 |
-
* Added message after activation about the plugin's location in the backend
|
534 |
-
* Updated *.pot file and german translation
|
535 |
-
|
536 |
-
= 3.2 =
|
537 |
-
* Added thumbnails of current assigned featured images both in the preview and the result lists
|
538 |
-
* Design adjustment for links
|
539 |
-
* Updated *.pot file and german translation
|
540 |
-
|
541 |
-
|
542 |
-
= 3.1.1 =
|
543 |
-
* Fixed useless listing of custom post types which do not support thumbnails
|
544 |
-
|
545 |
-
= 3.1 =
|
546 |
-
* Fixed missing merge of post types and custom post types as default if post type filter was not selected
|
547 |
-
* Changed the style to be based more on WP standard style
|
548 |
-
* Changed selection modus for images to be replaced from single to multiple
|
549 |
-
* Changed names of custom post types into their more readable labels
|
550 |
-
* Changed names of custom taxonomies into their more readable labels
|
551 |
-
* Changed notice for untouched posts from "failed" to "unconsidered"
|
552 |
-
* Moved notice of selected action to the right of the selected image
|
553 |
-
* Updated *.pot file and german translation
|
554 |
-
|
555 |
-
= 3.0.2 =
|
556 |
-
* Fixed broken search filter
|
557 |
-
|
558 |
-
= 3.0.1 =
|
559 |
-
* Fixed: error message after plugin activation
|
560 |
-
* Fixed: no images in the image library
|
561 |
-
* Fixed: PHP error searching for posts in the backend
|
562 |
-
* Deleted uninstall.php to avoid a confusing uninstall message
|
563 |
-
|
564 |
-
= 3.0 =
|
565 |
-
* Added new filter "Filter by Custom Taxonomies"
|
566 |
-
* Changed default post types: ALL posts, pages and custom post types are included in the search by default
|
567 |
-
* Changed default selection in drop down selection lists into "nothing selected"
|
568 |
-
* Updated *.pot file and german translation
|
569 |
-
* Improved performance
|
570 |
-
* Improved design of confirmation page
|
571 |
-
* Revised functions
|
572 |
-
|
573 |
-
= 2.0.2 =
|
574 |
-
* Revised SQL statement for featured image size filter
|
575 |
-
|
576 |
-
= 2.0.1 =
|
577 |
-
* Fixed missing headline on confirmation page if action "remove any image" was selected
|
578 |
-
* Updated *.pot file and german translation
|
579 |
-
|
580 |
-
= 2.0 =
|
581 |
-
* Added new action "Remove any image"
|
582 |
-
* Added new filter "Filter by Featured Image Size"
|
583 |
-
* Added error notice if no image of the image replacement list was selected
|
584 |
-
* Changed design of the plugin's start page. I hope you find it more useful
|
585 |
-
* Improved processing speed of found posts
|
586 |
-
* Improved performance
|
587 |
-
* Improved security for input data and URLs
|
588 |
-
|
589 |
-
= 1.0 =
|
590 |
-
* The plugin was released.
|
591 |
|
592 |
== Upgrade Notice ==
|
593 |
|
|
|
|
|
|
|
594 |
= 12.1.1 =
|
595 |
Fixed warning about undefined variable in Presets
|
596 |
|
@@ -647,84 +461,3 @@ Improved performance of confirmation step and better security, tested with WP 4.
|
|
647 |
|
648 |
= 10.0 =
|
649 |
Introducing premium version Quick Featured Images Pro, corrected CSS
|
650 |
-
|
651 |
-
= 9.1 =
|
652 |
-
Added option in 'Set, replace, remove' to find first image in galleries, fixed bug and warning, some improvements
|
653 |
-
|
654 |
-
= 9.0 =
|
655 |
-
Tested successfully with WP 4.1, added filter for audio and video file types in 'Set, replace, remove', made Featured Image column sortable by image, fixed minor bugs.
|
656 |
-
|
657 |
-
= 8.3.1 =
|
658 |
-
Tiny text revision and fixed bug which displayed undesired thumbnail columns. Please reset your image column settings.
|
659 |
-
|
660 |
-
= 8.3 =
|
661 |
-
Bugfixing and improvements for detecting the first image in post contents
|
662 |
-
|
663 |
-
= 8.2.2 =
|
664 |
-
Added rule at the presets to keep existing featured images. Please refine your preset rules if you use the "first content image rule"!
|
665 |
-
|
666 |
-
= 8.2.1 =
|
667 |
-
Successfully tested with WordPress 4.0, added icons for plugin search
|
668 |
-
|
669 |
-
= 8.2 =
|
670 |
-
Improved presets, improved uninstall routine, tested with WordPress 3.9.2
|
671 |
-
|
672 |
-
= 8.1 =
|
673 |
-
Added option to use the first content image as featured image only if there is no featured image; more robust and secure code for page 'Preset Featured Images'
|
674 |
-
|
675 |
-
= 8.0 =
|
676 |
-
Added the functionality of auto set featured images for new posts based on user defined rules and a new sub menu page 'Default Images'
|
677 |
-
|
678 |
-
= 7.0 =
|
679 |
-
Added: new top level menu item, column for featured images in lists of posts, options page
|
680 |
-
|
681 |
-
= 6.0 =
|
682 |
-
New action: Set multiple selected images as featured images randomly
|
683 |
-
|
684 |
-
= 5.1.1 =
|
685 |
-
Added a notice to the image selection button for the case of not working.
|
686 |
-
|
687 |
-
= 5.1 =
|
688 |
-
New option and many user interface improvements
|
689 |
-
|
690 |
-
= 5.0 =
|
691 |
-
Added action: Take the first image in a post as featured image
|
692 |
-
|
693 |
-
= 4.1.2 =
|
694 |
-
Fixed bug on using custom taxonomies
|
695 |
-
|
696 |
-
= 4.1.1 =
|
697 |
-
Fixed security check
|
698 |
-
|
699 |
-
= 4.1 =
|
700 |
-
Added link "Bulk set as featured image" under each image in the media library. Tested with WordPress 3.9.1
|
701 |
-
|
702 |
-
= 4.0 =
|
703 |
-
Added new filter "Filter by Time Specifications": Search in time periods on a year-month base. Improved page speed at both the preview list and the result list. Improved style for smartphones
|
704 |
-
|
705 |
-
= 3.2.1 =
|
706 |
-
More orientation: After activation of this plugin a message tells you where you can find the plugin in the WordPress backend.
|
707 |
-
|
708 |
-
= 3.2 =
|
709 |
-
Better overview: Now you can see both in the preview and the result lists the current assigned featured image of each post.
|
710 |
-
|
711 |
-
= 3.1.1 =
|
712 |
-
Fixed useless listing of custom post types which do not support thumbnails
|
713 |
-
|
714 |
-
= 3.1 =
|
715 |
-
Many improvements of the user interface in style and labeling. Now you can select multiple images to be replaced instead of only a single one. Fixed some minor errors
|
716 |
-
|
717 |
-
= 3.0.2 =
|
718 |
-
Now the filter by search term works properly again.
|
719 |
-
|
720 |
-
= 3.0.1 =
|
721 |
-
Fixed error message after plugin activation and missed images in the library
|
722 |
-
|
723 |
-
= 3.0 =
|
724 |
-
Added new filter "Filter by Custom Taxonomies". Be aware of the changed default behaviour: ALL posts, pages and custom post types are included in the search by default. Improved performance. Improved design of confirmation page
|
725 |
-
|
726 |
-
= 2.0 =
|
727 |
-
Many improvements and additions
|
728 |
-
|
729 |
-
= 1.0 =
|
730 |
-
No upgrades, just the first release.
|
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, brazilian, 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, português do brasil, portuguese, 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.7
|
7 |
+
Stable tag: 12.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
278 |
|
279 |
== Changelog ==
|
280 |
|
281 |
+
= 12.2 =
|
282 |
+
* Added in 'Set, replace, remove': server configuration to avoid PHP timeout and memory limitation in most cases
|
283 |
+
* Fixed deprecated jquery live()
|
284 |
+
* Adjusted texts for WP 4.7
|
285 |
+
* Tested successfully with WordPress 4.7
|
286 |
+
|
287 |
= 12.1.1 =
|
288 |
* Fixed warning about undefined variable in Presets
|
289 |
* Revised german translation
|
399 |
* Corrected CSS height for images in image column to keep the aspect ratio
|
400 |
* Updated *.pot file and german translation
|
401 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
402 |
|
403 |
== Upgrade Notice ==
|
404 |
|
405 |
+
= 12.2 =
|
406 |
+
Added prevention of PHP timeout and memory limitation, fixed live(), considered WordPress 4.7
|
407 |
+
|
408 |
= 12.1.1 =
|
409 |
Fixed warning about undefined variable in Presets
|
410 |
|
461 |
|
462 |
= 10.0 =
|
463 |
Introducing premium version Quick Featured Images Pro, corrected CSS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/assets/js/admin-column.js
CHANGED
@@ -4,7 +4,7 @@ jQuery( document ).ready( function( $ ){
|
|
4 |
* bind the media uploader at current and future ( 'live()' ) image upload buttons
|
5 |
* single image selection
|
6 |
*/
|
7 |
-
|
8 |
|
9 |
e.preventDefault();
|
10 |
|
@@ -58,7 +58,7 @@ jQuery( document ).ready( function( $ ){
|
|
58 |
* remove featured image from post and
|
59 |
* display 'set image' link
|
60 |
*/
|
61 |
-
$(
|
62 |
|
63 |
e.preventDefault();
|
64 |
|
4 |
* bind the media uploader at current and future ( 'live()' ) image upload buttons
|
5 |
* single image selection
|
6 |
*/
|
7 |
+
$( document ).on( 'click', '.qfi_set_fi', function( e ) {
|
8 |
|
9 |
e.preventDefault();
|
10 |
|
58 |
* remove featured image from post and
|
59 |
* display 'set image' link
|
60 |
*/
|
61 |
+
$( document ).on( 'click', '.qfi_delete_fi', function( e ) {
|
62 |
|
63 |
e.preventDefault();
|
64 |
|
admin/assets/js/admin-defaults.js
CHANGED
@@ -8,7 +8,7 @@ jQuery( document ).ready( function( $ ){
|
|
8 |
var blank_url = $( '#placeholder_url' ).val();
|
9 |
|
10 |
// bind the media uploader at current and future ( 'live()' ) image upload buttons
|
11 |
-
$(
|
12 |
|
13 |
e.preventDefault();
|
14 |
|
@@ -48,7 +48,7 @@ jQuery( document ).ready( function( $ ){
|
|
48 |
* Remove rule row
|
49 |
*/
|
50 |
// clear default image
|
51 |
-
$(
|
52 |
|
53 |
e.preventDefault();
|
54 |
|
8 |
var blank_url = $( '#placeholder_url' ).val();
|
9 |
|
10 |
// bind the media uploader at current and future ( 'live()' ) image upload buttons
|
11 |
+
$( document ).on( 'click', '.imageupload', function( e ) {
|
12 |
|
13 |
e.preventDefault();
|
14 |
|
48 |
* Remove rule row
|
49 |
*/
|
50 |
// clear default image
|
51 |
+
$( document ).on( 'click', '.remove_rule', function( e ) {
|
52 |
|
53 |
e.preventDefault();
|
54 |
|
admin/class-quick-featured-images-admin.php
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
*
|
20 |
* @var string
|
21 |
*/
|
22 |
-
protected $plugin_version = '12.
|
23 |
|
24 |
/**
|
25 |
* Instance of this class.
|
19 |
*
|
20 |
* @var string
|
21 |
*/
|
22 |
+
protected $plugin_version = '12.2';
|
23 |
|
24 |
/**
|
25 |
* Instance of this class.
|
admin/class-quick-featured-images-columns.php
CHANGED
@@ -392,7 +392,7 @@ class Quick_Featured_Images_Columns {
|
|
392 |
public function set_thumbnail () {
|
393 |
|
394 |
if ( ! isset( $_POST[ 'qfi_nonce' ] ) or ! wp_verify_nonce( $_POST[ 'qfi_nonce' ], 'qfi-image-column' ) ) {
|
395 |
-
$text = 'Sorry, you are not allowed to
|
396 |
die( __( $text ) );
|
397 |
}
|
398 |
if ( isset( $_POST[ 'post_id' ] ) and isset( $_POST[ 'thumbnail_id' ] ) ) {
|
392 |
public function set_thumbnail () {
|
393 |
|
394 |
if ( ! isset( $_POST[ 'qfi_nonce' ] ) or ! wp_verify_nonce( $_POST[ 'qfi_nonce' ], 'qfi-image-column' ) ) {
|
395 |
+
$text = 'Sorry, you are not allowed to edit this item.';
|
396 |
die( __( $text ) );
|
397 |
}
|
398 |
if ( isset( $_POST[ 'post_id' ] ) and isset( $_POST[ 'thumbnail_id' ] ) ) {
|
admin/class-quick-featured-images-tools.php
CHANGED
@@ -406,6 +406,7 @@ class Quick_Featured_Images_Tools { // only for debugging: extends Quick_Feature
|
|
406 |
*/
|
407 |
public function main() {
|
408 |
// set variables
|
|
|
409 |
$this->set_default_values();
|
410 |
// get current step
|
411 |
$this->selected_step = $this->get_sanitized_step();
|
@@ -636,6 +637,41 @@ class Quick_Featured_Images_Tools { // only for debugging: extends Quick_Feature
|
|
636 |
$this->transient_name = 'quick_featured_images_results';
|
637 |
}
|
638 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
639 |
/**
|
640 |
*
|
641 |
* Render the header of the admin page
|
@@ -1722,7 +1758,7 @@ class Quick_Featured_Images_Tools { // only for debugging: extends Quick_Feature
|
|
1722 |
*/
|
1723 |
private function get_sanitized_post_thumbnail_id( $post_id ) {
|
1724 |
// check if an image with the given ID exists in the media library, else set id to 0
|
1725 |
-
$current_thumb_id = get_post_thumbnail_id( $post_id );
|
1726 |
if ( $current_thumb_id and wp_attachment_is_image( $current_thumb_id ) ) {
|
1727 |
return $current_thumb_id;
|
1728 |
} else {
|
406 |
*/
|
407 |
public function main() {
|
408 |
// set variables
|
409 |
+
$this->set_server_config();
|
410 |
$this->set_default_values();
|
411 |
// get current step
|
412 |
$this->selected_step = $this->get_sanitized_step();
|
637 |
$this->transient_name = 'quick_featured_images_results';
|
638 |
}
|
639 |
|
640 |
+
/**
|
641 |
+
* Set server timeout for PHP scripts in seconds
|
642 |
+
*
|
643 |
+
* @access private
|
644 |
+
* @since 12.2
|
645 |
+
*/
|
646 |
+
private function set_server_config() {
|
647 |
+
// to prevent blank pages for this script:
|
648 |
+
// set server timeout to 3000 seconds if lower
|
649 |
+
$value = (int) ini_get( 'max_execution_time' );
|
650 |
+
if ( 2999 > $value ) {
|
651 |
+
ini_set( 'max_execution_time', '3000' );
|
652 |
+
}
|
653 |
+
// and set allowed memory space to 512 MB if lower
|
654 |
+
preg_match( '/(\d+)(\w+)/', ini_get( 'memory_limit' ), $matches );
|
655 |
+
if ( $matches ) {
|
656 |
+
$value = (int) $matches[ 1 ];
|
657 |
+
switch ( strtolower( $matches[ 2 ] ) ) {
|
658 |
+
case 'g':
|
659 |
+
case 'gb':
|
660 |
+
$value *= 1024;
|
661 |
+
case 'm':
|
662 |
+
case 'mb':
|
663 |
+
$value *= 1024;
|
664 |
+
case 'k':
|
665 |
+
case 'kb':
|
666 |
+
$value *= 1024;
|
667 |
+
}
|
668 |
+
|
669 |
+
if ( 500000000 > $value ) {
|
670 |
+
ini_set( 'memory_limit', '512M' );
|
671 |
+
}
|
672 |
+
}
|
673 |
+
}
|
674 |
+
|
675 |
/**
|
676 |
*
|
677 |
* Render the header of the admin page
|
1758 |
*/
|
1759 |
private function get_sanitized_post_thumbnail_id( $post_id ) {
|
1760 |
// check if an image with the given ID exists in the media library, else set id to 0
|
1761 |
+
$current_thumb_id = (int) get_post_thumbnail_id( $post_id );
|
1762 |
if ( $current_thumb_id and wp_attachment_is_image( $current_thumb_id ) ) {
|
1763 |
return $current_thumb_id;
|
1764 |
} else {
|
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, in posts lists and set default images for future posts.
|
13 |
-
* Version: 12.
|
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, in posts lists and set default images for future posts.
|
13 |
+
* Version: 12.2
|
14 |
* Author: Martin Stehle
|
15 |
* Author URI: http://stehle-internet.de
|
16 |
* Text Domain: quick-featured-images
|