Changeset 142580
- Timestamp:
- 08/03/2009 11:17:27 PM (17 years ago)
- Location:
- wp-dopplr/tags/1.6
- Files:
-
- 1 added
- 2 edited
-
lang (added)
-
readme.txt (modified) (2 diffs)
-
wp-dopplr.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-dopplr/tags/1.6/readme.txt
r140259 r142580 3 3 Tags: dopplr, travel, badge, sidebar, widget 4 4 Requires at least: 2.5 or higher 5 Tested up to: 2.8. 25 Tested up to: 2.8.3 6 6 Stable tag: 1.6 7 7 … … 88 88 * Bug: Determine the correct wp-content directory. 89 89 90 = Version 1.6 - 2009/0 7/29=90 = Version 1.6 - 2009/08/04 = 91 91 * Bug: Determine the correct date & time. 92 * Enhance installation process.93 92 * Enhance settings and widget menu. 93 * Enhance installation process (subdirectories allowed). 94 94 * Translatable strings (internationalization). -
wp-dopplr/tags/1.6/wp-dopplr.php
r140261 r142580 47 47 * June 10 2009 - v1.5 48 48 - Bug: Determine the correct wp-content directory 49 * July 292009 - v1.649 * August 4 2009 - v1.6 50 50 - Bug: Determine the correct date & time 51 - Enhance installation process52 51 - Enhance settings and widget menu 52 - Enhance installation process (subdirectories allowed) 53 53 - Translatable strings (internationalization) 54 54 */ 55 55 56 load_plugin_textdomain('wp-dopplr'); 56 // Plugin inicialization 57 load_plugin_textdomain('wp-dopplr', '', dirname(plugin_basename(__FILE__)) . '/lang'); 57 58 add_action('plugins_loaded', 'widget_wpdopplr_init'); 58 59 add_action('admin_menu', 'add_wpdopplr_options_page'); … … 142 143 } 143 144 $traveller_info = wpdopplr_traveller_methods($method = "traveller_info", $username); 144 if ($traveller_info != null ) {145 if ($traveller_info != null && function_exists('date_default_timezone_set')) { 145 146 $default_timezone = date_default_timezone_get(); 146 147 date_default_timezone_set($traveller_info->traveller->current_city->timezone); … … 150 151 return $traveller_info->traveller->name . __('\'s local time at current location is ', 'wp-dopplr') . $local_time_text . __(' on ', 'wp-dopplr') . $local_date_text; 151 152 } else { 152 return null;153 return ''; 153 154 } 154 155 } … … 218 219 $city_name = $trip->city->name; 219 220 } 220 if ($display_localtime ) {221 if ($display_localtime && function_exists('date_default_timezone_set')) { 221 222 $default_timezone = date_default_timezone_get(); 222 223 date_default_timezone_set($trip->city->timezone);
Note: See TracChangeset
for help on using the changeset viewer.