Plugin Directory

Changeset 1668466


Ignore:
Timestamp:
06/01/2017 08:34:13 AM (9 years ago)
Author:
neoxx
Message:

3.36

Location:
timezonecalculator/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • timezonecalculator/trunk/readme.txt

    r1549284 r1668466  
    44Tags: time, date, timezone, calendar, world clock, clock, travel, widget, sidebar, dashboard, shortcode, multisite, multi-site, ajax, javascript, jquery, bar, admin bar
    55Requires at least: 3.8
    6 Tested up to: 4.7
     6Tested up to: 4.8
    77Stable tag: trunk
    88License: GPLv3 or later
     
    217217
    218218== Changelog ==
     219
     220= 3.36 =
     221
     222* replaced deprecated function calls to wp_get_current_user() and removed $user_ID-globals - thanks for the [notification](https://wordpress.org/support/topic/get_currentuserinfo-is-deprecated-9/) to highgatecreative
    219223
    220224= 3.35 =
  • timezonecalculator/trunk/timezonecalculator.php

    r1549284 r1668466  
    66Description: Calculates, displays and automatically updates times and dates in different timezones with respect to daylight saving.
    77Author: Dr. Bernhard Riedl
    8 Version: 3.35
     8Version: 3.36
    99Author URI: http://www.bernhard-riedl.com/
    1010*/
    1111
    1212/*
    13 Copyright 2005-2016 Dr. Bernhard Riedl
    14 
    15 Inspirations & Proof-Reading 2007-2016
     13Copyright 2005-2017 Dr. Bernhard Riedl
     14
     15Inspirations & Proof-Reading 2007-2017
    1616by Veronika Grascher
    1717
     
    17411741    function wp_ajax_calculator() {
    17421742
    1743         global $user_ID;
    1744 
    1745         /*
    1746         load current user's details
    1747         */
    1748 
    1749         get_currentuserinfo();
     1743        /*
     1744        get current user id
     1745        */
     1746
     1747        $user_ID=get_current_user_id();
    17501748
    17511749        /*
     
    17871785    function wp_ajax_calculator_ajax_nonce() {
    17881786
    1789         global $user_ID;
    1790 
    1791         /*
    1792         load current user's details
    1793         */
    1794 
    1795         get_currentuserinfo();
     1787        /*
     1788        get current user id
     1789        */
     1790
     1791        $user_ID=get_current_user_id();
    17961792
    17971793        /*
     
    18241820
    18251821    function calculator_page_timezones_update() {
    1826         global $user_ID;
    1827 
    1828         /*
    1829         load current user's details
    1830         */
    1831 
    1832         get_currentuserinfo();
     1822
     1823        /*
     1824        get current user id
     1825        */
     1826
     1827        $user_ID=get_current_user_id();
    18331828
    18341829        /*
     
    20392034
    20402035    function head_meta() {
    2041         echo("<meta name=\"".$this->get_nicename()."\" content=\"3.35\"/>\n");
     2036        echo("<meta name=\"".$this->get_nicename()."\" content=\"3.36\"/>\n");
    20422037    }
    20432038
     
    22462241        wp_enqueue_script($this->get_prefix().'calculator');
    22472242
    2248         global $user_ID;
     2243        /*
     2244        get current user id
     2245        */
     2246
     2247        $user_ID=get_current_user_id();
    22492248
    22502249        /*
     
    22732272        }
    22742273
    2275         /*
    2276         load current user's details
    2277         */
    2278 
    2279         get_currentuserinfo();
    2280 
    22812274        $security_string=$this->get_prefix().'calculator'.$user_ID;
    22822275        $_ajax_nonce=wp_create_nonce($security_string);
     
    23632356
    23642357        /*
    2365         use user's timezones?
    2366         */
    2367 
    2368         global $user_ID;
    2369 
    2370         /*
    2371         load current user's details
    2372         */
    2373 
    2374         get_currentuserinfo();
     2358        get current user id
     2359        */
     2360
     2361        $user_ID=get_current_user_id();
    23752362
    23762363        /*
     
    41174104
    41184105    function callback_calculator_calculator() {
    4119         global $user_ID;
    4120 
    4121         /*
    4122         load current user's details
    4123         */
    4124 
    4125         get_currentuserinfo();
     4106
     4107        /*
     4108        get current user id
     4109        */
     4110
     4111        $user_ID=get_current_user_id();
    41264112
    41274113        $timezone=apply_filters($this->get_prefix().'calculator_timezone', get_user_option($this->get_prefix().'calculator_timezone', $user_ID));
     
    42794265
    42804266    function callback_calculator_selected_timezones() {
    4281         global $user_ID;
    4282 
    4283         /*
    4284         load current user's details
    4285         */
    4286 
    4287         get_currentuserinfo();
     4267
     4268        /*
     4269        get current user id
     4270        */
     4271
     4272        $user_ID=get_current_user_id();
    42884273
    42894274        $timezones_array=get_user_option($this->get_prefix().'timezones', $user_ID);
Note: See TracChangeset for help on using the changeset viewer.