Plugin Directory

Changeset 2745745


Ignore:
Timestamp:
06/21/2022 09:35:46 AM (4 years ago)
Author:
inkforall
Message:

Version 4.1.0

Location:
ink-official
Files:
96 added
3 edited

Legend:

Unmodified
Added
Removed
  • ink-official/trunk/ink-content-block.php

    r2716309 r2745745  
    44Plugin URL: https://inkforall.com
    55Description: INK Block plugin allows you to import .ink files to wordpress posts / pages.
    6 Version: 4.0.9
     6Version: 4.1.0
    77Text Domain: ink
    88*/
  • ink-official/trunk/readme.txt

    r2716309 r2745745  
    44Plugin URI: https://inkforall.com
    55Tags: import INK file, INK, SEO, INK Editor importer, inkforall
    6 Tested up to: 5.9.3
    7 Stable tag: 4.0.9
     6Tested up to: 6.0
     7Stable tag: 4.1.0
    88Requires at least: 4.4
    99Requires PHP: 5.6.20
    1010Author URI: http://inkforall.com
    1111Author: INK Content, Inc.
    12 Version: 4.0.7
     12Version: 4.1.0
    1313License: GPL v3
    1414License URI: http://www.gnu.org/licenses/gpl.html
     
    123123== Changelog ==
    124124
     125 = 4.1.0 =
     126
     127 - Bug Fixes
     128
    125129= 4.0.9 =
    126130
  • ink-official/trunk/src/init.php

    r2716309 r2745745  
    572572           
    573573    try {
     574        $rights="";
    574575        $data=array();
    575576        $images_data=array();
     
    582583        $beforeUpload=$comAs[0];
    583584        $ab=explode("/",$comFile[1]);
    584         $rights=$ab[0].'/'.$ab[1];
    585         $wpM=$upload_dir['basedir'].'uploads/'.$rights;
    586         $fileUrl=$upload_dir['basedir'].'/'.$rights.'/'.$filename;
     585        $wpM=$upload_dir['basedir'].'uploads/';
     586        $fileUrl=$upload_dir['basedir'].'/'.$filename;
     587
     588        if(!empty($ab[0]) &&!empty($ab[1])){
     589            $rights=$ab[0].'/'.$ab[1];
     590            $fileUrl=$upload_dir['basedir'].'/'.$rights.'/'.$filename;
     591            $wpM=$upload_dir['basedir'].'uploads/'.$rights;
     592        }
    587593
    588594        $upldir = str_replace("/$filename","","$fileUrl");
Note: See TracChangeset for help on using the changeset viewer.