Plugin Directory

Changeset 3196397


Ignore:
Timestamp:
11/25/2024 11:26:51 AM (16 months ago)
Author:
marcqueralt
Message:

Compatibility update WP 6.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • demomentsomtres-night-and-day/trunk/demomentsomtres-night-and-day.php

    r3196394 r3196397  
    55  Plugin URI: demomentsomtres.com/english/wordpress-plugins/demomentsomtres-night-day/
    66  Description: Provides the shortcode dms3nad allowing to show contents only during an specific time frame specified in the shortcode paramenters. Shortcode format is [dms3nad start="hh:mm" end="hh:mm"]Content to show[/dms3nad].
    7   Version: 1.0.1
     7  Version: 1.0.2
    88  Author: MarcQueralt
    99  Author URI: http://demomentsomtres.com/
     
    3030//        $content = '';
    3131//    endif;
    32     $start_h = (int)substr($start, 0, 2);
    33     $start_m = (int)substr($start, -2);
    34     $end_h = (int)substr($end, 0, 2);
    35     $end_m = (int)substr($end, -2);
    36 
     32//    $start_h = substr($start, 0, 2);
     33//    $start_m = substr($start, -2);
     34//    $end_h = substr($end, 0, 2);
     35//    $end_m = substr($end, -2);
     36    $start_h = substr($start, 0, 2); // NT 1.0.2
     37    $start_m = substr($start, -2); // NT 1.0.2
     38    $end_h = substr($end, 0, 2); // NT 1.0.2
     39    $end_m = substr($end, -2); // NT 1.0.2
    3740    $avui = getdate();
    3841    $ara = new dateTime();
Note: See TracChangeset for help on using the changeset viewer.