Events Manager - Version 2.2.1

Version Description

Download this release

Release Info

Developer nutsmuggler
Plugin Icon 128x128 Events Manager
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2 to 2.2.1

Files changed (2) hide show
  1. events-manager.php +14 -14
  2. readme.txt +5 -2
events-manager.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Events Manager
4
- Version: 2.2
5
  Plugin URI: http://davidebenini.it/wordpress-plugins/events-manager/
6
  Description: Manage events specifying precise spatial data (Location, Town, Province, etc).
7
  Author: Davide Benini
@@ -95,10 +95,7 @@ $thisDir = dirname( plugin_basename( __FILE__ ) );
95
  load_plugin_textdomain('dbem', false, $thisDir.'/langs');
96
 
97
  // To enable activation through the activate function
98
- register_activation_hook(__FILE__,'events-manager');
99
-
100
- // Execute the install script when the plugin is installed
101
- add_action('activate_events-manager/events-manager.php','dbem_install');
102
 
103
  // filters for general events field (corresponding to those of "the _title")
104
  add_filter('dbem_general', 'wptexturize');
@@ -136,6 +133,7 @@ function dbem_install() {
136
  dbem_create_categories_table();
137
  /* Marcus End Edit */
138
  // if ANY 1.0 option is there AND the version options hasn't been set yet THEN launch the updat script
 
139
  if (get_option('dbem_events_page') && !get_option('dbem_version'))
140
  dbem_migrate_old_events();
141
 
@@ -150,13 +148,12 @@ function dbem_install() {
150
  }
151
  if ($count == 0)
152
  dbem_create_events_page();
153
- } else {
154
- dbem_create_events_page();
155
- }
156
- // wp-content must be chmodded 777. Maybe just wp-content.
157
- if(!file_exists("../".IMAGE_UPLOAD_DIR))
158
- mkdir("../".IMAGE_UPLOAD_DIR, 0777);
159
-
160
  }
161
 
162
  function dbem_create_events_table() {
@@ -436,8 +433,11 @@ function dbem_add_options() {
436
  'dbem_rsvp_enabled', DEFAULT_RSVP_ENABLED,
437
  'dbem_categories_enabled', DEFAULT_CATEGORIES_ENABLED);
438
 
439
- foreach($dbem_options as $key => $value)
440
- dbem_add_option($key, $value);
 
 
 
441
 
442
  }
443
  function dbem_add_option($key, $value) {
1
  <?php
2
  /*
3
  Plugin Name: Events Manager
4
+ Version: 2.2.1
5
  Plugin URI: http://davidebenini.it/wordpress-plugins/events-manager/
6
  Description: Manage events specifying precise spatial data (Location, Town, Province, etc).
7
  Author: Davide Benini
95
  load_plugin_textdomain('dbem', false, $thisDir.'/langs');
96
 
97
  // To enable activation through the activate function
98
+ register_activation_hook(__FILE__,'dbem_install');
 
 
 
99
 
100
  // filters for general events field (corresponding to those of "the _title")
101
  add_filter('dbem_general', 'wptexturize');
133
  dbem_create_categories_table();
134
  /* Marcus End Edit */
135
  // if ANY 1.0 option is there AND the version options hasn't been set yet THEN launch the updat script
136
+
137
  if (get_option('dbem_events_page') && !get_option('dbem_version'))
138
  dbem_migrate_old_events();
139
 
148
  }
149
  if ($count == 0)
150
  dbem_create_events_page();
151
+ } else {
152
+ dbem_create_events_page();
153
+ }
154
+ // wp-content must be chmodded 777. Maybe just wp-content.
155
+ if(!file_exists("../".IMAGE_UPLOAD_DIR))
156
+ mkdir("../".IMAGE_UPLOAD_DIR, 0777);
 
157
  }
158
 
159
  function dbem_create_events_table() {
433
  'dbem_rsvp_enabled', DEFAULT_RSVP_ENABLED,
434
  'dbem_categories_enabled', DEFAULT_CATEGORIES_ENABLED);
435
 
436
+ foreach($dbem_options as $key => $value){
437
+ if(preg_match('/$dbem/', $key)){
438
+ add_option($key, $value);
439
+ }
440
+ }
441
 
442
  }
443
  function dbem_add_option($key, $value) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://davidebenini.it
4
  Tags: events, manager, calendar, gigs, concert, maps, geotagging
5
  Requires at least: 2.7
6
  Tested up to: 2.9.2
7
- Stable tag: 2.2
8
 
9
  Manage events and display them in your blog. Includes recurring events, location management, calendar, Google map integration, RSVP.
10
 
@@ -211,4 +211,7 @@ Bugfix: now loading textdomain in the new (not deprecated) way
211
  2.2
212
  Adding a option to get events through a select
213
  Closed many bugs causing a notices/warning visible only in debug mode
214
- Closed a critical security hole discovered by Danilo Massa (to be released on May 10th)
 
 
 
4
  Tags: events, manager, calendar, gigs, concert, maps, geotagging
5
  Requires at least: 2.7
6
  Tested up to: 2.9.2
7
+ Stable tag: 2.2.1
8
 
9
  Manage events and display them in your blog. Includes recurring events, location management, calendar, Google map integration, RSVP.
10
 
211
  2.2
212
  Adding a option to get events through a select
213
  Closed many bugs causing a notices/warning visible only in debug mode
214
+ Closed a critical security hole discovered by Danilo Massa (to be released on May 10th)
215
+
216
+ 2.2.1
217
+ newtweblogic fixed a bug in the install routine