Changeset 574317
- Timestamp:
- 07/18/2012 10:03:05 PM (14 years ago)
- Location:
- quick-browscap/trunk
- Files:
-
- 3 edited
-
languages/quick-browscap.pot (modified) (1 diff)
-
quick-browscap.php (modified) (6 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
quick-browscap/trunk/languages/quick-browscap.pot
r574291 r574317 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: Quick Browscap 1.0 0\n"3 "Project-Id-Version: Quick Browscap 1.01\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: 2012-07-18 22:47+0100\n" -
quick-browscap/trunk/quick-browscap.php
r574294 r574317 5 5 Description: Quickly get browser capabilities from built in browser capabilities database 6 6 Author: Marko Martinović 7 Version: 1.0 07 Version: 1.01 8 8 Author URI: http://www.techytalk.info 9 9 License: GPL2 … … 26 26 27 27 class Quick_Browscap{ 28 const version = '1.0 0';28 const version = '1.01'; 29 29 const name = 'Quick Browscap'; 30 30 const slug = 'quick-browscap'; … … 86 86 87 87 if(isset($this->options['auto_update'])){ 88 add_action( 'quick_browscap_update', array($this, 'do_auto_update'));88 add_action(self::safe_slug.'_update', array($this, 'do_auto_update')); 89 89 add_filter('cron_schedules', array($this, 'custom_schedule')); 90 90 register_deactivation_hook(__FILE__, array($this, 'deschedule_update')); … … 97 97 98 98 public function schedule_update(){ 99 if(!wp_next_scheduled( 'quick_browscap_update')){100 wp_schedule_event(time(), 'quick_browscap_weekly', 'quick_browscap_update');99 if(!wp_next_scheduled(self::safe_slug.'_update')){ 100 wp_schedule_event(time(), self::safe_slug.'_weekly', self::safe_slug.'_update'); 101 101 102 102 if(isset($this->options['debug_mode']) || (defined('WP_DEBUG') && WP_DEBUG)){ … … 108 108 109 109 public function deschedule_update(){ 110 if(wp_next_scheduled( 'quick_browscap_update')){111 wp_clear_scheduled_hook( 'quick_browscap_update');110 if(wp_next_scheduled(self::safe_slug.'_update')){ 111 wp_clear_scheduled_hook(self::safe_slug.'_update'); 112 112 113 113 if(isset($this->options['debug_mode']) || (defined('WP_DEBUG') && WP_DEBUG)){ … … 119 119 120 120 function custom_schedule($schedules){ 121 $schedules[ 'quick_browscap_weekly'] = array(121 $schedules[self::safe_slug.'_weekly'] = array( 122 122 'interval'=> 604800, 123 123 'display'=> __('every week', self::slug) -
quick-browscap/trunk/readme.txt
r574291 r574317 130 130 131 131 == Changelog == 132 = 1.01 (19.07.2012.) = 133 * Minor database auto update code change 134 132 135 = 1.00 (19.07.2012.) = 133 136 * Initial release
Note: See TracChangeset
for help on using the changeset viewer.