Changeset 3090229
- Timestamp:
- 05/21/2024 01:43:02 PM (22 months ago)
- Location:
- cits-support-svg-webp-media-upload/trunk
- Files:
-
- 2 edited
-
admin/cits-admin.php (modified) (3 diffs)
-
init.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cits-support-svg-webp-media-upload/trunk/admin/cits-admin.php
r3090226 r3090229 1 1 <?php 2 2 function cit_svg_support_admin_notice() { 3 4 3 $currentDate = date("Y-m-d"); 5 4 if (!isset($_COOKIE["notis-exdate"])):?> … … 47 46 } 48 47 add_action( 'admin_notices', 'cit_svg_support_admin_notice' ); 49 50 48 add_action( 'init', 'cits_notice_hide' ); 51 49 function cits_notice_hide(){ 52 53 50 if ( isset( $_POST['formNotis'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash ( $_POST['formNotis'] ) ) , 'hideNotis' ) ){ 54 51 if ( ! defined( 'ABSPATH' ) ) exit; 55 56 52 $currentDate = date("Y-m-d"); 57 53 $exDate = date('Y-m-d', strtotime("+5 Months", strtotime($currentDate))); … … 59 55 setcookie("notis-exdate", $exDate, time() + (5 * 30 * 24 * 60 * 60), '/'); 60 56 echo "<script> setTimeout(function(){ location.reload(); }, 2000);</script>"; 61 62 57 elseif ($currentDate > $_COOKIE["notis-exdate"]): 63 58 setcookie("notis-exdate", $exDate, time() + (5 * 30 * 24 * 60 * 60), '/'); -
cits-support-svg-webp-media-upload/trunk/init.php
r3089813 r3090229 134 134 } 135 135 } 136 137 136 new CITS_SUPPORT_SVG_WEBP_MEDIA();
Note: See TracChangeset
for help on using the changeset viewer.