Plugin Directory

Changeset 2500301


Ignore:
Timestamp:
03/21/2021 05:08:44 AM (5 years ago)
Author:
pdamsten
Message:

fix dlmngr and add missing map files.

Location:
fullscreen-galleria/trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • fullscreen-galleria/trunk/galleria-fs.php

    r2467029 r2500301  
    55Plugin URI: https://petridamsten.com/
    66Description: Fullscreen gallery for Wordpress
    7 Version: 1.6.10
     7Version: 1.6.11
    88Author: Petri Damstén
    99Author URI: https://petridamsten.com/
     
    1212******************************************************************************/
    1313
    14 $fsg_ver = '1.6.10';
     14$fsg_ver = '1.6.11';
    1515$fsg_db_key = 'fsg_plugin_settings';
    1616
     
    632632    $s = pathinfo($filename, PATHINFO_FILENAME);
    633633    $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];
    637642      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);
    644645      }
    645646    }
  • fullscreen-galleria/trunk/readme.txt

    r2467029 r2500301  
    66Tags: galleria, gallery, photography, images
    77Requires at least: 4.0
    8 Tested up to: 5.6
     8Tested up to: 5.7
    99Stable tag: trunk
    1010License: MIT
     
    113113
    114114== Changelog ==
     115= 1.6.11 =
     116* fsg_dlmngr icons fixed
     117
    115118= 1.6.10 =
    116119* Fix json echoing
Note: See TracChangeset for help on using the changeset viewer.