Plugin Directory

Changeset 1658127


Ignore:
Timestamp:
05/16/2017 12:15:01 AM (9 years ago)
Author:
assortedchips
Message:

fix warning when editing an existing figure (only applies when WP_DEBUG is true)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • drawit/trunk/drawit.php

    r1555753 r1658127  
    22/**
    33 * @package DrawIt (draw.io)
    4  * @version 1.1.2
     4 * @version 1.1.3
    55 */
    66/*
     
    88Plugin URI:     http://www.assortedchips.com/#drawit
    99Description:    Draw and edit flow charts, diagrams, images and more while editing a post.
    10 Version:        1.1.2
     10Version:        1.1.3
    1111Author:         assorted[chips]
    1212Author URI:     http://www.assortedchips.com/
     
    8787        $this->valid_units = $valid_units;
    8888        $this->valid_temp_dirs = $valid_temp_dirs;
    89         $this->plugin_version = "1.1.2";
     89        $this->plugin_version = "1.1.3";
    9090
    9191        // Options saved to database are used throughout the functions here, so
     
    399399            if($metadata !== false) {
    400400                $image_meta = $metadata['image_meta'];
    401                 $save_type = strtolower(end(explode('.', wp_get_attachment_url($img_id))));
     401                $save_name = explode('.', wp_get_attachment_url($img_id));
     402                $save_type = strtolower(end($save_name));
    402403
    403404                if($image_meta['title'] != "") {
Note: See TracChangeset for help on using the changeset viewer.