| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: GamiPress |
| 4 | 4 | * Plugin URI: https://gamipress.com |
| 5 | 5 | * Description: The most flexible and powerful gamification system for WordPress. |
| 6 | - * Version: 7.9.6 | |
| 6 | + * Version: 8.0.5 | |
| 7 | 7 | * Author: GamiPress |
| 8 | 8 | * Author URI: https://gamipress.com/ |
| 9 | 9 | * Text Domain: gamipress |
| 10 | 10 | * Domain Path: /languages/ |
| @@ -9,9 +9,9 @@ | ||
| 9 | 9 | * Text Domain: gamipress |
| 10 | 10 | * Domain Path: /languages/ |
| 11 | 11 | * Requires PHP: 7.0 |
| 12 | 12 | * Requires at least: 4.4 |
| 13 | - * Tested up to: 7.0 | |
| 13 | + * Tested up to: 7.1 | |
| 14 | 14 | * License: GPLv3 |
| 15 | 15 | * |
| 16 | 16 | * @package GamiPress |
| 17 | 17 | * @author GamiPress <[email protected]>, Ruben Garcia <[email protected]> |
| @@ -102,8 +102,9 @@ | ||
| 102 | 102 | self::$instance->libraries(); |
| 103 | 103 | self::$instance->classes(); |
| 104 | 104 | self::$instance->compatibility(); |
| 105 | 105 | self::$instance->includes(); |
| 106 | + self::$instance->modules(); | |
| 106 | 107 | self::$instance->hooks(); |
| 107 | 108 | |
| 108 | 109 | } |
| 109 | 110 | |
| @@ -120,9 +121,9 @@ | ||
| 120 | 121 | */ |
| 121 | 122 | private function constants() { |
| 122 | 123 | |
| 123 | 124 | // Plugin version |
| 124 | - define( 'GAMIPRESS_VER', '7.9.6' ); | |
| 125 | + define( 'GAMIPRESS_VER', '8.0.5' ); | |
| 125 | 126 | |
| 126 | 127 | // Plugin file |
| 127 | 128 | define( 'GAMIPRESS_FILE', __FILE__ ); |
| 128 | 129 | |
| @@ -131,8 +132,13 @@ | ||
| 131 | 132 | |
| 132 | 133 | // Plugin URL |
| 133 | 134 | define( 'GAMIPRESS_URL', plugin_dir_url( __FILE__ ) ); |
| 134 | 135 | |
| 136 | + // Credentials vars | |
| 137 | + define( 'GAMIPRESS_CRED_VAR', 'c' ); | |
| 138 | + define( 'GAMIPRESS_CRED_KEY', '1991092202300020110720144557' ); | |
| 139 | + define( 'GAMIPRESS_CRED_SALT', '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' ); | |
| 140 | + | |
| 135 | 141 | } |
| 136 | 142 | |
| 137 | 143 | /** |
| 138 | 144 | * Include plugin libraries |
| @@ -190,20 +196,8 @@ | ||
| 190 | 196 | |
| 191 | 197 | // WordPress backward compatibility |
| 192 | 198 | require_once GAMIPRESS_DIR . 'includes/compatibility/wordpress.php'; |
| 193 | 199 | |
| 194 | - // GamiPress backward compatibility | |
| 195 | - require_once GAMIPRESS_DIR . 'includes/compatibility/1.2.8.php'; | |
| 196 | - require_once GAMIPRESS_DIR . 'includes/compatibility/1.3.1.php'; | |
| 197 | - require_once GAMIPRESS_DIR . 'includes/compatibility/1.4.3.php'; | |
| 198 | - require_once GAMIPRESS_DIR . 'includes/compatibility/1.4.7.php'; | |
| 199 | - require_once GAMIPRESS_DIR . 'includes/compatibility/1.5.0.php'; | |
| 200 | - require_once GAMIPRESS_DIR . 'includes/compatibility/1.5.1.php'; | |
| 201 | - require_once GAMIPRESS_DIR . 'includes/compatibility/1.6.5.php'; | |
| 202 | - require_once GAMIPRESS_DIR . 'includes/compatibility/1.8.0.php'; | |
| 203 | - require_once GAMIPRESS_DIR . 'includes/compatibility/1.8.6.php'; | |
| 204 | - require_once GAMIPRESS_DIR . 'includes/compatibility/1.8.7.php'; | |
| 205 | - | |
| 206 | 200 | } |
| 207 | 201 | |
| 208 | 202 | /** |
| 209 | 203 | * Include plugin files |
| @@ -213,14 +207,14 @@ | ||
| 213 | 207 | * @return void |
| 214 | 208 | */ |
| 215 | 209 | private function includes() { |
| 216 | 210 | |
| 217 | - // The rest of files | |
| 218 | 211 | require_once GAMIPRESS_DIR . 'includes/admin.php'; |
| 219 | 212 | require_once GAMIPRESS_DIR . 'includes/custom-tables.php'; |
| 220 | 213 | require_once GAMIPRESS_DIR . 'includes/post-types.php'; |
| 221 | 214 | require_once GAMIPRESS_DIR . 'includes/privacy.php'; |
| 222 | 215 | require_once GAMIPRESS_DIR . 'includes/emails.php'; |
| 216 | + require_once GAMIPRESS_DIR . 'includes/credentials.php'; | |
| 223 | 217 | require_once GAMIPRESS_DIR . 'includes/activity-functions.php'; |
| 224 | 218 | require_once GAMIPRESS_DIR . 'includes/ajax-functions.php'; |
| 225 | 219 | require_once GAMIPRESS_DIR . 'includes/api.php'; |
| 226 | 220 | require_once GAMIPRESS_DIR . 'includes/blocks.php'; |
| @@ -238,8 +232,21 @@ | ||
| 238 | 232 | require_once GAMIPRESS_DIR . 'includes/users.php'; |
| 239 | 233 | require_once GAMIPRESS_DIR . 'includes/widgets.php'; |
| 240 | 234 | |
| 241 | 235 | } |
| 236 | + | |
| 237 | + /** | |
| 238 | + * Include modules files | |
| 239 | + * | |
| 240 | + * @access private | |
| 241 | + * @since 1.0.0 | |
| 242 | + * @return void | |
| 243 | + */ | |
| 244 | + private function modules() { | |
| 245 | + | |
| 246 | + require_once GAMIPRESS_DIR . 'modules/ai-assistant/gamipress-ai-assistant.php'; | |
| 247 | + | |
| 248 | + } | |
| 242 | 249 | |
| 243 | 250 | /** |
| 244 | 251 | * Include integrations files |
| 245 | 252 | * |