Changeset 1668466
- Timestamp:
- 06/01/2017 08:34:13 AM (9 years ago)
- Location:
- timezonecalculator/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
timezonecalculator.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
timezonecalculator/trunk/readme.txt
r1549284 r1668466 4 4 Tags: time, date, timezone, calendar, world clock, clock, travel, widget, sidebar, dashboard, shortcode, multisite, multi-site, ajax, javascript, jquery, bar, admin bar 5 5 Requires at least: 3.8 6 Tested up to: 4. 76 Tested up to: 4.8 7 7 Stable tag: trunk 8 8 License: GPLv3 or later … … 217 217 218 218 == 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 219 223 220 224 = 3.35 = -
timezonecalculator/trunk/timezonecalculator.php
r1549284 r1668466 6 6 Description: Calculates, displays and automatically updates times and dates in different timezones with respect to daylight saving. 7 7 Author: Dr. Bernhard Riedl 8 Version: 3.3 58 Version: 3.36 9 9 Author URI: http://www.bernhard-riedl.com/ 10 10 */ 11 11 12 12 /* 13 Copyright 2005-201 6Dr. Bernhard Riedl14 15 Inspirations & Proof-Reading 2007-201 613 Copyright 2005-2017 Dr. Bernhard Riedl 14 15 Inspirations & Proof-Reading 2007-2017 16 16 by Veronika Grascher 17 17 … … 1741 1741 function wp_ajax_calculator() { 1742 1742 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(); 1750 1748 1751 1749 /* … … 1787 1785 function wp_ajax_calculator_ajax_nonce() { 1788 1786 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(); 1796 1792 1797 1793 /* … … 1824 1820 1825 1821 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(); 1833 1828 1834 1829 /* … … 2039 2034 2040 2035 function head_meta() { 2041 echo("<meta name=\"".$this->get_nicename()."\" content=\"3.3 5\"/>\n");2036 echo("<meta name=\"".$this->get_nicename()."\" content=\"3.36\"/>\n"); 2042 2037 } 2043 2038 … … 2246 2241 wp_enqueue_script($this->get_prefix().'calculator'); 2247 2242 2248 global $user_ID; 2243 /* 2244 get current user id 2245 */ 2246 2247 $user_ID=get_current_user_id(); 2249 2248 2250 2249 /* … … 2273 2272 } 2274 2273 2275 /*2276 load current user's details2277 */2278 2279 get_currentuserinfo();2280 2281 2274 $security_string=$this->get_prefix().'calculator'.$user_ID; 2282 2275 $_ajax_nonce=wp_create_nonce($security_string); … … 2363 2356 2364 2357 /* 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(); 2375 2362 2376 2363 /* … … 4117 4104 4118 4105 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(); 4126 4112 4127 4113 $timezone=apply_filters($this->get_prefix().'calculator_timezone', get_user_option($this->get_prefix().'calculator_timezone', $user_ID)); … … 4279 4265 4280 4266 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(); 4288 4273 4289 4274 $timezones_array=get_user_option($this->get_prefix().'timezones', $user_ID);
Note: See TracChangeset
for help on using the changeset viewer.