Plugin Directory

Changeset 2772867


Ignore:
Timestamp:
08/20/2022 11:25:15 AM (3 years ago)
Author:
yotuwp
Message:

version 1.3.5

Location:
yotuwp-easy-youtube-embed/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • yotuwp-easy-youtube-embed/trunk/readme.txt

    r2571421 r2772867  
    114114
    115115== Changelog ==
     116= 1.3.5 - Aug 20th, 2022 =
     117* Fix issue admin with delete cache
     118
     119New version going to release soon!
    116120
    117121= 1.3.4.5 - Aug 22th, 2020 =
  • yotuwp-easy-youtube-embed/trunk/yotuwp.php

    r2368193 r2772867  
    44* Plugin URI: https://www.yotuwp.com/
    55* Description: Easy embed YouTube playlist, channel, videos and user videos to posts/pages/widgets
    6 * Version: 1.3.4.5
     6* Version: 1.3.5
    77* Text Domain: yotuwp-easy-youtube-embed
    88* Domain Path: /languages
     
    1818
    1919if( !defined( 'YOTUWP_VERSION' ) )
    20     define( 'YOTUWP_VERSION', '1.3.4.5' );
     20    define( 'YOTUWP_VERSION', '1.3.5' );
    2121
    2222global $yotuwp, $yotuwp_inline_script;
     
    13081308
    13091309    public function deletecache() {
    1310         $status = 0;
    1311         $msg = __('There is a error on clear cache files. Please ensure you have permission on folder /wp-content/yotuwp_cache/', 'yotuwp-easy-youtube-embed');
    1312         if ($this->clear_cache()) {
    1313             $status = 1;
    1314             $msg = __('All cache files were deleted!', 'yotuwp-easy-youtube-embed');
    1315         }
    1316         wp_send_json(array( 'status' => $status, 'msg' => $msg) );
     1310        if ( is_admin()) {
     1311            $status = 0;
     1312            $msg = __('There is a error on clear cache files. Please ensure you have permission on folder /wp-content/yotuwp_cache/', 'yotuwp-easy-youtube-embed');
     1313            if ($this->clear_cache()) {
     1314                $status = 1;
     1315                $msg = __('All cache files were deleted!', 'yotuwp-easy-youtube-embed');
     1316            }
     1317            wp_send_json(array( 'status' => $status, 'msg' => $msg) ); 
     1318        } else {
     1319            header('HTTP/1.0 403 Forbidden');
     1320            die('You are not allowed to access this file.');
     1321        }
     1322       
    13171323    }
    13181324
Note: See TracChangeset for help on using the changeset viewer.