Plugin Directory

Changeset 3090229


Ignore:
Timestamp:
05/21/2024 01:43:02 PM (22 months ago)
Author:
ashikcse
Message:

fix issue

Location:
cits-support-svg-webp-media-upload/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cits-support-svg-webp-media-upload/trunk/admin/cits-admin.php

    r3090226 r3090229  
    11<?php
    22function cit_svg_support_admin_notice() {
    3 
    43  $currentDate = date("Y-m-d");
    54  if (!isset($_COOKIE["notis-exdate"])):?>
     
    4746}
    4847add_action( 'admin_notices', 'cit_svg_support_admin_notice' );
    49 
    5048add_action( 'init', 'cits_notice_hide' );
    5149function cits_notice_hide(){
    52 
    5350  if ( isset( $_POST['formNotis'] ) &&  wp_verify_nonce( sanitize_text_field( wp_unslash ( $_POST['formNotis'] ) ) , 'hideNotis' ) ){
    5451  if ( ! defined( 'ABSPATH' ) ) exit;
    55 
    5652    $currentDate = date("Y-m-d");
    5753    $exDate = date('Y-m-d', strtotime("+5 Months", strtotime($currentDate)));
     
    5955      setcookie("notis-exdate", $exDate, time() + (5 * 30 * 24 * 60 * 60), '/');
    6056      echo "<script> setTimeout(function(){ location.reload(); }, 2000);</script>";
    61 
    6257    elseif ($currentDate > $_COOKIE["notis-exdate"]):
    6358      setcookie("notis-exdate", $exDate, time() + (5 * 30 * 24 * 60 * 60), '/');
  • cits-support-svg-webp-media-upload/trunk/init.php

    r3089813 r3090229  
    134134    }
    135135}
    136 
    137136new CITS_SUPPORT_SVG_WEBP_MEDIA();
Note: See TracChangeset for help on using the changeset viewer.