WordPress.org

Plugin Directory

Changeset 1684284 for event-post


Ignore:
Timestamp:
06/23/17 13:11:53 (2 months ago)
Author:
bastho
Message:

get_the_dates() : Fetch global $post if not set in param

File:
1 edited

Legend:

Unmodified
Added
Removed
  • event-post/trunk/inc/wrappers.php

    r1684270 r1684284  
    3131     * 
    3232     */ 
    33     function get_the_dates($post=null){ 
    34         global $EventPost; 
    35         return $EventPost->print_date($post); 
     33    function get_the_dates($_post=null){ 
     34        global $EventPost, $post; 
     35        if(!$_post){ 
     36         $_post = $post; 
     37        } 
     38        return $EventPost->print_date($_post); 
    3639    } 
    3740} 
Note: See TracChangeset for help on using the changeset viewer.