Changeset 2500301
- Timestamp:
- 03/21/2021 05:08:44 AM (5 years ago)
- Location:
- fullscreen-galleria/trunk
- Files:
-
- 2 added
- 2 edited
-
galleria-fs.php (modified) (3 diffs)
-
ol.css.map (added)
-
ol.js.map (added)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fullscreen-galleria/trunk/galleria-fs.php
r2467029 r2500301 5 5 Plugin URI: https://petridamsten.com/ 6 6 Description: Fullscreen gallery for Wordpress 7 Version: 1.6.1 07 Version: 1.6.11 8 8 Author: Petri Damstén 9 9 Author URI: https://petridamsten.com/ … … 12 12 ******************************************************************************/ 13 13 14 $fsg_ver = '1.6.1 0';14 $fsg_ver = '1.6.11'; 15 15 $fsg_db_key = 'fsg_plugin_settings'; 16 16 … … 632 632 $s = pathinfo($filename, PATHINFO_FILENAME); 633 633 $id = attachment_url_to_postid($s.'.jpg'); 634 $s = wp_get_attachment_image_src($id, [200, 250]); 635 if ($s != false) { 636 $s = $s[0]; 634 if ($id != 0) { 635 $s = wp_get_attachment_image_src($id, [200, 250]); 636 if ($s != false) { 637 $s = $s[0]; 638 } 639 } else { 640 $id = attachment_url_to_postid($ext.'.png'); 641 $s = wp_get_attachment_image_src($id, [200, 250])[0]; 637 642 if ($s == '') { 638 $id = attachment_url_to_postid($ext.'.png'); 639 $s = wp_get_attachment_image_src($id, [200, 250])[0]; 640 if ($s == '') { 641 $type = wp_ext2type($ext); 642 $s = wp_mime_type_icon($type); 643 } 643 $type = wp_ext2type($ext); 644 $s = wp_mime_type_icon($type); 644 645 } 645 646 } -
fullscreen-galleria/trunk/readme.txt
r2467029 r2500301 6 6 Tags: galleria, gallery, photography, images 7 7 Requires at least: 4.0 8 Tested up to: 5. 68 Tested up to: 5.7 9 9 Stable tag: trunk 10 10 License: MIT … … 113 113 114 114 == Changelog == 115 = 1.6.11 = 116 * fsg_dlmngr icons fixed 117 115 118 = 1.6.10 = 116 119 * Fix json echoing
Note: See TracChangeset
for help on using the changeset viewer.