WordPress.org

Plugin Directory

Changeset 1733542 for event-post


Ignore:
Timestamp:
09/21/17 09:01:34 (4 weeks ago)
Author:
bastho
Message:

Release 5.0.2

File:
1 edited

Legend:

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

    r1717418 r1733542  
    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: 5.0.1 
     6  Version: 5.0.2 
    77  Author: N.O.U.S. Open Useful and Simple 
    8   Contributors: bastho,ecolosites 
     8  Contributors: bastho, ecolosites 
    99  Author URI: http://avecnous.eu 
    1010  License: GPLv2 
     
    4949        load_plugin_textdomain('event-post', false, 'event-post/languages'); 
    5050 
    51     add_action('widgets_init', array(&$this,'init'), 1); 
     51          add_action('widgets_init', array(&$this,'init'), 1); 
    5252        add_action('save_post', array(&$this, 'save_postdata')); 
    5353        add_action('admin_menu', array(&$this, 'manage_options')); 
    54     add_filter('dashboard_glance_items', array(&$this, 'dashboard_right_now')); 
     54        add_filter('dashboard_glance_items', array(&$this, 'dashboard_right_now')); 
    5555 
    5656        // Scripts 
     
    8080 
    8181    // 
    82     add_filter('eventpost_list_shema',array(&$this, 'custom_shema'),10,1); 
     82        add_filter('eventpost_list_shema',array(&$this, 'custom_shema'),10,1); 
    8383 
    8484    // Admin 
    85     add_filter('plugin_action_links_event-post/eventpost.php', array( &$this, 'settings_link' ) ); 
     85        add_filter('plugin_action_links_event-post/eventpost.php', array( &$this, 'settings_link' ) ); 
    8686        add_filter('plugin_row_meta', array( &$this, 'row_meta' ), 1, 4); 
    8787 
     
    9393        add_action( 'admin_print_scripts-edit.php', array(&$this, 'scripts_edit') ); 
    9494        add_action( 'wp_ajax_inline-save', array(&$this, 'inline_save'), 1 ); 
    95     add_action( 'wp_ajax_eventpost_save_bulk', array(&$this, 'save_bulkdatas') ); 
     95        add_action( 'wp_ajax_eventpost_save_bulk', array(&$this, 'save_bulkdatas') ); 
    9696        add_filter( 'eventpost_inline_field', array(&$this, 'inline_field_color'), 10, 3); 
    9797 
     
    18641864                        $td = '<td class="event_post_day_now">'; 
    18651865                    } 
     1866                    if ($sqldate . '-' . ($NoJour<10?'0':'').$NoJour < $cejour){ 
     1867                        $td = '<td class="event_post_day_over">'; // Patch ahf 
     1868                    } 
    18661869                    $ret.=$td; 
    18671870 
     
    19982001            $transient_name = 'eventpost_osquery_' . $q; 
    19992002            $val = get_transient($transient_name); 
    2000             if (false === $val || empty($val)) { 
     2003            if (false === $val || empty($val) || !is_string($val)) { 
    20012004                $language = get_bloginfo('language'); 
    20022005                if (strpos($language, '-') > -1) { 
    20032006                    $language = strtolower(substr($language, 0, 2)); 
    20042007                } 
    2005                 $val = file_get_contents('http://nominatim.openstreetmap.org/search?q=' . urlencode($q) . '&format=json&accept-language=' . $language); 
     2008                $remote_val = wp_safe_remote_request('http://nominatim.openstreetmap.org/search?q=' . urlencode($q) . '&format=json&accept-language=' . $language); 
     2009                if(json_decode($remote_val['body'])){ 
     2010                  $val = $remote_val['body']; 
     2011                } 
    20062012                set_transient($transient_name, $val, 30 * DAY_IN_SECONDS); 
    20072013            } 
Note: See TracChangeset for help on using the changeset viewer.