WordPress.org

Plugin Directory

Changeset 1626410


Ignore:
Timestamp:
03/31/17 08:26:11 (8 months ago)
Author:
bastho
Message:

Version 4.5.1

  • Fix events dated at Epok when GMT is not well parsed
  • Move supported tiles to https (OSM, Humanitarian, OSM-fr)
Location:
event-post/tags/4.5
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • event-post/tags/4.5/eventpost.php

    r1623022 r1626410  
    44  Plugin URI: http://event-post.com 
    55  Description: Add calendar and/or geolocation metadata on posts. For a better experience, we recommand to use it with <a href="https://wordpress.org/plugins/shortcode-ui/" target="_blank">Shortcake (shortcode UI)</a> installed. 
    6   Version: 4.5 
     6  Version: 4.5.1 
    77  Author: N.O.U.S. Open Useful and Simple 
    88  Contributors: bastho,ecolosites 
     
    645645                $address = urlencode($post->address); 
    646646                $url = urlencode($post->guid); 
    647                 $mt = strtotime($codegmt . ' Hours', $event->time_start); 
    648                 $d_s = date("Ymd", $mt) . 'T' . date("His", $mt); 
    649                 $mte = strtotime($codegmt . ' Hours', $event->time_end); 
    650                 $d_e = date("Ymd", $mte) . 'T' . date("His", $mte); 
     647                $allday = ($post->time_start && $post->time_end && date('H:i:s', $post->time_start) == '00:00:00' && date('H:i:s', $post->time_end) == '00:00:00'); 
     648                $d_s = date("Ymd", $event->time_start) . ($allday ? ''  : 'T' . date("His", $event->time_start)); 
     649                $d_e = date("Ymd", $event->time_end) . ($allday ? ''  : 'T' . date("His", $event->time_end)); 
    651650                $uid = $post->ID . '-' . $post->blog_id; 
    652651 
     
    22392238            $separator = "\n"; 
    22402239 
    2241         header("content-type:text/calendar"); 
     2240        header("content-type:text/x-icalendar"); 
    22422241        header("Pragma: public"); 
    22432242        header("Expires: 0"); 
  • event-post/tags/4.5/readme.txt

    r1623022 r1626410  
    44Tags: Post, posts, event, events, ics, ical, date, geolocalization, coordinates, gps, widget, map, openstreetmap, calendar, agenda, weather, multisite, native 
    55Requires at least: 3.8 
    6 Tested up to: 4.6.1 
    7 Stable tag: 4.4 
     6Tested up to: 4.7 
     7Stable tag: 4.5 
    88License: GPLv2 
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html 
     
    192192* Quick edit 
    193193 
     194= 4.5.1 = 
     195 
     196- Fix events dated at Epok when GMT is not well parsed 
     197- Move supported tiles to https (OSM, Humanitarian, OSM-fr) 
     198 
    194199= 4.5 = 
    195200 
     
    244249- Add map icon in the editor 
    245250- Add address in the admin posts-list 
    246 - Do not validate post form when hitting enter from the location search field  
     251- Do not validate post form when hitting enter from the location search field 
    247252 
    248253Developers new features: 
Note: See TracChangeset for help on using the changeset viewer.