@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <div class="padding"> |
| 2 | - <p><?php _e( 'We need your help to continue maintaining and providing this plugin for free. You can help by leaving a positive review in the WordPress plugin directory. 5 star ratings bring Event Espresso Decaf to the attention of more users which increases our support and features for this version of Event Espresso.', 'event_espresso' ); ?></p> |
|
| 3 | - <p><?php _e( 'Rate it five stars today!', 'event_espresso' ); ?></p><span class="ee-wp-blue dashicons dashicons-star-filled"></span><span class="ee-wp-blue dashicons dashicons-star-filled"></span><span class="ee-wp-blue dashicons dashicons-star-filled"></span><span class="ee-wp-blue dashicons dashicons-star-filled"></span><span class="ee-wp-blue dashicons dashicons-star-filled"></span> |
|
| 4 | - <p><a class="button button-primary" href="https://events.codebasehq.com/redirect?https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Fview%2Fplugin-reviews%2Fevent-espresso-decaf%3Frate%3D5%23postform"><?php _e( 'Rate It!', 'event_espresso' ); ?></a></p> |
|
| 2 | + <p><?php _e('We need your help to continue maintaining and providing this plugin for free. You can help by leaving a positive review in the WordPress plugin directory. 5 star ratings bring Event Espresso Decaf to the attention of more users which increases our support and features for this version of Event Espresso.', 'event_espresso'); ?></p> |
|
| 3 | + <p><?php _e('Rate it five stars today!', 'event_espresso'); ?></p><span class="ee-wp-blue dashicons dashicons-star-filled"></span><span class="ee-wp-blue dashicons dashicons-star-filled"></span><span class="ee-wp-blue dashicons dashicons-star-filled"></span><span class="ee-wp-blue dashicons dashicons-star-filled"></span><span class="ee-wp-blue dashicons dashicons-star-filled"></span> |
|
| 4 | + <p><a class="button button-primary" href="https://events.codebasehq.com/redirect?https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Fview%2Fplugin-reviews%2Fevent-espresso-decaf%3Frate%3D5%23postform"><?php _e('Rate It!', 'event_espresso'); ?></a></p> |
|
| 5 | 5 | </div> |
| 6 | 6 | \ No newline at end of file |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | -<?php if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | - exit( 'No direct script access allowed' ); |
|
| 1 | +<?php if ( ! defined('ABSPATH')) { |
|
| 2 | + exit('No direct script access allowed'); |
|
| 3 | 3 | } |
| 4 | 4 | /* |
| 5 | 5 | Plugin Name: Event Espresso |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | * |
| 43 | 43 | */ |
| 44 | 44 | |
| 45 | -if ( function_exists( 'espresso_version' ) ) { |
|
| 45 | +if (function_exists('espresso_version')) { |
|
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | 48 | * espresso_duplicate_plugin_error |
@@ -51,12 +51,12 @@ discard block |
||
| 51 | 51 | function espresso_duplicate_plugin_error() { |
| 52 | 52 | ?> |
| 53 | 53 | <div class="error"> |
| 54 | - <p><?php _e( 'Can not run multiple versions of Event Espresso! One version has been automatically deactivated. Please verify that you have the correct version you want still active.', 'event_espresso' ); ?></p> |
|
| 54 | + <p><?php _e('Can not run multiple versions of Event Espresso! One version has been automatically deactivated. Please verify that you have the correct version you want still active.', 'event_espresso'); ?></p> |
|
| 55 | 55 | </div> |
| 56 | 56 | <?php |
| 57 | - espresso_deactivate_plugin( plugin_basename( __FILE__ ) ); |
|
| 57 | + espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
| 58 | 58 | } |
| 59 | - add_action( 'admin_notices', 'espresso_duplicate_plugin_error', 1 ); |
|
| 59 | + add_action('admin_notices', 'espresso_duplicate_plugin_error', 1); |
|
| 60 | 60 | |
| 61 | 61 | } else { |
| 62 | 62 | |
@@ -67,103 +67,103 @@ discard block |
||
| 67 | 67 | * @return string |
| 68 | 68 | */ |
| 69 | 69 | function espresso_version() { |
| 70 | - return apply_filters( 'FHEE__espresso__espresso_version', '4.9.13.rc.016' ); |
|
| 70 | + return apply_filters('FHEE__espresso__espresso_version', '4.9.13.rc.016'); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | // define versions |
| 74 | - define( 'EVENT_ESPRESSO_VERSION', espresso_version() ); |
|
| 75 | - define( 'EE_MIN_WP_VER_REQUIRED', '4.1' ); |
|
| 76 | - define( 'EE_MIN_WP_VER_RECOMMENDED', '4.4.2' ); |
|
| 77 | - define( 'EE_MIN_PHP_VER_REQUIRED', '5.3.0' ); |
|
| 78 | - define( 'EE_MIN_PHP_VER_RECOMMENDED', '5.4.44' ); |
|
| 79 | - define( 'EVENT_ESPRESSO_POWERED_BY', 'Event Espresso - ' . EVENT_ESPRESSO_VERSION ); |
|
| 80 | - define( 'EVENT_ESPRESSO_MAIN_FILE', __FILE__ ); |
|
| 74 | + define('EVENT_ESPRESSO_VERSION', espresso_version()); |
|
| 75 | + define('EE_MIN_WP_VER_REQUIRED', '4.1'); |
|
| 76 | + define('EE_MIN_WP_VER_RECOMMENDED', '4.4.2'); |
|
| 77 | + define('EE_MIN_PHP_VER_REQUIRED', '5.3.0'); |
|
| 78 | + define('EE_MIN_PHP_VER_RECOMMENDED', '5.4.44'); |
|
| 79 | + define('EVENT_ESPRESSO_POWERED_BY', 'Event Espresso - '.EVENT_ESPRESSO_VERSION); |
|
| 80 | + define('EVENT_ESPRESSO_MAIN_FILE', __FILE__); |
|
| 81 | 81 | //used to be DIRECTORY_SEPARATOR, but that caused issues on windows |
| 82 | - if ( ! defined( 'DS' ) ) { |
|
| 83 | - define( 'DS', '/' ); |
|
| 82 | + if ( ! defined('DS')) { |
|
| 83 | + define('DS', '/'); |
|
| 84 | 84 | } |
| 85 | - if ( ! defined( 'PS' ) ) { |
|
| 86 | - define( 'PS', PATH_SEPARATOR ); |
|
| 85 | + if ( ! defined('PS')) { |
|
| 86 | + define('PS', PATH_SEPARATOR); |
|
| 87 | 87 | } |
| 88 | - if ( ! defined( 'SP' ) ) { |
|
| 89 | - define( 'SP', ' ' ); |
|
| 88 | + if ( ! defined('SP')) { |
|
| 89 | + define('SP', ' '); |
|
| 90 | 90 | } |
| 91 | - if ( ! defined( 'EENL' ) ) { |
|
| 92 | - define( 'EENL', "\n" ); |
|
| 91 | + if ( ! defined('EENL')) { |
|
| 92 | + define('EENL', "\n"); |
|
| 93 | 93 | } |
| 94 | - define( 'EE_SUPPORT_EMAIL', '[email protected]' ); |
|
| 94 | + define('EE_SUPPORT_EMAIL', '[email protected]'); |
|
| 95 | 95 | // define the plugin directory and URL |
| 96 | - define( 'EE_PLUGIN_BASENAME', plugin_basename( EVENT_ESPRESSO_MAIN_FILE ) ); |
|
| 97 | - define( 'EE_PLUGIN_DIR_PATH', plugin_dir_path( EVENT_ESPRESSO_MAIN_FILE ) ); |
|
| 98 | - define( 'EE_PLUGIN_DIR_URL', plugin_dir_url( EVENT_ESPRESSO_MAIN_FILE ) ); |
|
| 96 | + define('EE_PLUGIN_BASENAME', plugin_basename(EVENT_ESPRESSO_MAIN_FILE)); |
|
| 97 | + define('EE_PLUGIN_DIR_PATH', plugin_dir_path(EVENT_ESPRESSO_MAIN_FILE)); |
|
| 98 | + define('EE_PLUGIN_DIR_URL', plugin_dir_url(EVENT_ESPRESSO_MAIN_FILE)); |
|
| 99 | 99 | // main root folder paths |
| 100 | - define( 'EE_ADMIN_PAGES', EE_PLUGIN_DIR_PATH . 'admin_pages' . DS ); |
|
| 101 | - define( 'EE_CORE', EE_PLUGIN_DIR_PATH . 'core' . DS ); |
|
| 102 | - define( 'EE_MODULES', EE_PLUGIN_DIR_PATH . 'modules' . DS ); |
|
| 103 | - define( 'EE_PUBLIC', EE_PLUGIN_DIR_PATH . 'public' . DS ); |
|
| 104 | - define( 'EE_SHORTCODES', EE_PLUGIN_DIR_PATH . 'shortcodes' . DS ); |
|
| 105 | - define( 'EE_WIDGETS', EE_PLUGIN_DIR_PATH . 'widgets' . DS ); |
|
| 106 | - define( 'EE_PAYMENT_METHODS', EE_PLUGIN_DIR_PATH . 'payment_methods' . DS ); |
|
| 107 | - define( 'EE_CAFF_PATH', EE_PLUGIN_DIR_PATH . 'caffeinated' . DS ); |
|
| 100 | + define('EE_ADMIN_PAGES', EE_PLUGIN_DIR_PATH.'admin_pages'.DS); |
|
| 101 | + define('EE_CORE', EE_PLUGIN_DIR_PATH.'core'.DS); |
|
| 102 | + define('EE_MODULES', EE_PLUGIN_DIR_PATH.'modules'.DS); |
|
| 103 | + define('EE_PUBLIC', EE_PLUGIN_DIR_PATH.'public'.DS); |
|
| 104 | + define('EE_SHORTCODES', EE_PLUGIN_DIR_PATH.'shortcodes'.DS); |
|
| 105 | + define('EE_WIDGETS', EE_PLUGIN_DIR_PATH.'widgets'.DS); |
|
| 106 | + define('EE_PAYMENT_METHODS', EE_PLUGIN_DIR_PATH.'payment_methods'.DS); |
|
| 107 | + define('EE_CAFF_PATH', EE_PLUGIN_DIR_PATH.'caffeinated'.DS); |
|
| 108 | 108 | // core system paths |
| 109 | - define( 'EE_ADMIN', EE_CORE . 'admin' . DS ); |
|
| 110 | - define( 'EE_CPTS', EE_CORE . 'CPTs' . DS ); |
|
| 111 | - define( 'EE_CLASSES', EE_CORE . 'db_classes' . DS ); |
|
| 112 | - define( 'EE_INTERFACES', EE_CORE . 'interfaces' . DS ); |
|
| 113 | - define( 'EE_BUSINESS', EE_CORE . 'business' . DS ); |
|
| 114 | - define( 'EE_MODELS', EE_CORE . 'db_models' . DS ); |
|
| 115 | - define( 'EE_HELPERS', EE_CORE . 'helpers' . DS ); |
|
| 116 | - define( 'EE_LIBRARIES', EE_CORE . 'libraries' . DS ); |
|
| 117 | - define( 'EE_TEMPLATES', EE_CORE . 'templates' . DS ); |
|
| 118 | - define( 'EE_THIRD_PARTY', EE_CORE . 'third_party_libs' . DS ); |
|
| 119 | - define( 'EE_GLOBAL_ASSETS', EE_TEMPLATES . 'global_assets' . DS ); |
|
| 120 | - define( 'EE_FORM_SECTIONS', EE_LIBRARIES . 'form_sections' . DS ); |
|
| 109 | + define('EE_ADMIN', EE_CORE.'admin'.DS); |
|
| 110 | + define('EE_CPTS', EE_CORE.'CPTs'.DS); |
|
| 111 | + define('EE_CLASSES', EE_CORE.'db_classes'.DS); |
|
| 112 | + define('EE_INTERFACES', EE_CORE.'interfaces'.DS); |
|
| 113 | + define('EE_BUSINESS', EE_CORE.'business'.DS); |
|
| 114 | + define('EE_MODELS', EE_CORE.'db_models'.DS); |
|
| 115 | + define('EE_HELPERS', EE_CORE.'helpers'.DS); |
|
| 116 | + define('EE_LIBRARIES', EE_CORE.'libraries'.DS); |
|
| 117 | + define('EE_TEMPLATES', EE_CORE.'templates'.DS); |
|
| 118 | + define('EE_THIRD_PARTY', EE_CORE.'third_party_libs'.DS); |
|
| 119 | + define('EE_GLOBAL_ASSETS', EE_TEMPLATES.'global_assets'.DS); |
|
| 120 | + define('EE_FORM_SECTIONS', EE_LIBRARIES.'form_sections'.DS); |
|
| 121 | 121 | // gateways |
| 122 | - define( 'EE_GATEWAYS', EE_MODULES . 'gateways' . DS ); |
|
| 123 | - define( 'EE_GATEWAYS_URL', EE_PLUGIN_DIR_URL . 'modules' . DS . 'gateways' . DS ); |
|
| 122 | + define('EE_GATEWAYS', EE_MODULES.'gateways'.DS); |
|
| 123 | + define('EE_GATEWAYS_URL', EE_PLUGIN_DIR_URL.'modules'.DS.'gateways'.DS); |
|
| 124 | 124 | // asset URL paths |
| 125 | - define( 'EE_TEMPLATES_URL', EE_PLUGIN_DIR_URL . 'core' . DS . 'templates' . DS ); |
|
| 126 | - define( 'EE_GLOBAL_ASSETS_URL', EE_TEMPLATES_URL . 'global_assets' . DS ); |
|
| 127 | - define( 'EE_IMAGES_URL', EE_GLOBAL_ASSETS_URL . 'images' . DS ); |
|
| 128 | - define( 'EE_THIRD_PARTY_URL', EE_PLUGIN_DIR_URL . 'core' . DS . 'third_party_libs' . DS ); |
|
| 129 | - define( 'EE_HELPERS_ASSETS', EE_PLUGIN_DIR_URL . 'core/helpers/assets/' ); |
|
| 130 | - define( 'EE_LIBRARIES_URL', EE_PLUGIN_DIR_URL . 'core/libraries/' ); |
|
| 125 | + define('EE_TEMPLATES_URL', EE_PLUGIN_DIR_URL.'core'.DS.'templates'.DS); |
|
| 126 | + define('EE_GLOBAL_ASSETS_URL', EE_TEMPLATES_URL.'global_assets'.DS); |
|
| 127 | + define('EE_IMAGES_URL', EE_GLOBAL_ASSETS_URL.'images'.DS); |
|
| 128 | + define('EE_THIRD_PARTY_URL', EE_PLUGIN_DIR_URL.'core'.DS.'third_party_libs'.DS); |
|
| 129 | + define('EE_HELPERS_ASSETS', EE_PLUGIN_DIR_URL.'core/helpers/assets/'); |
|
| 130 | + define('EE_LIBRARIES_URL', EE_PLUGIN_DIR_URL.'core/libraries/'); |
|
| 131 | 131 | // define upload paths |
| 132 | 132 | $uploads = wp_upload_dir(); |
| 133 | 133 | // define the uploads directory and URL |
| 134 | - define( 'EVENT_ESPRESSO_UPLOAD_DIR', $uploads[ 'basedir' ] . DS . 'espresso' . DS ); |
|
| 135 | - define( 'EVENT_ESPRESSO_UPLOAD_URL', $uploads[ 'baseurl' ] . DS . 'espresso' . DS ); |
|
| 134 | + define('EVENT_ESPRESSO_UPLOAD_DIR', $uploads['basedir'].DS.'espresso'.DS); |
|
| 135 | + define('EVENT_ESPRESSO_UPLOAD_URL', $uploads['baseurl'].DS.'espresso'.DS); |
|
| 136 | 136 | // define the templates directory and URL |
| 137 | - define( 'EVENT_ESPRESSO_TEMPLATE_DIR', $uploads[ 'basedir' ] . DS . 'espresso' . DS . 'templates' . DS ); |
|
| 138 | - define( 'EVENT_ESPRESSO_TEMPLATE_URL', $uploads[ 'baseurl' ] . DS . 'espresso' . DS . 'templates' . DS ); |
|
| 137 | + define('EVENT_ESPRESSO_TEMPLATE_DIR', $uploads['basedir'].DS.'espresso'.DS.'templates'.DS); |
|
| 138 | + define('EVENT_ESPRESSO_TEMPLATE_URL', $uploads['baseurl'].DS.'espresso'.DS.'templates'.DS); |
|
| 139 | 139 | // define the gateway directory and URL |
| 140 | - define( 'EVENT_ESPRESSO_GATEWAY_DIR', $uploads[ 'basedir' ] . DS . 'espresso' . DS . 'gateways' . DS ); |
|
| 141 | - define( 'EVENT_ESPRESSO_GATEWAY_URL', $uploads[ 'baseurl' ] . DS . 'espresso' . DS . 'gateways' . DS ); |
|
| 140 | + define('EVENT_ESPRESSO_GATEWAY_DIR', $uploads['basedir'].DS.'espresso'.DS.'gateways'.DS); |
|
| 141 | + define('EVENT_ESPRESSO_GATEWAY_URL', $uploads['baseurl'].DS.'espresso'.DS.'gateways'.DS); |
|
| 142 | 142 | // languages folder/path |
| 143 | - define( 'EE_LANGUAGES_SAFE_LOC', '..' . DS . 'uploads' . DS . 'espresso' . DS . 'languages' . DS ); |
|
| 144 | - define( 'EE_LANGUAGES_SAFE_DIR', EVENT_ESPRESSO_UPLOAD_DIR . 'languages' . DS ); |
|
| 143 | + define('EE_LANGUAGES_SAFE_LOC', '..'.DS.'uploads'.DS.'espresso'.DS.'languages'.DS); |
|
| 144 | + define('EE_LANGUAGES_SAFE_DIR', EVENT_ESPRESSO_UPLOAD_DIR.'languages'.DS); |
|
| 145 | 145 | //check for dompdf fonts in uploads |
| 146 | - if ( file_exists( EVENT_ESPRESSO_UPLOAD_DIR . 'fonts' . DS ) ) { |
|
| 147 | - define( 'DOMPDF_FONT_DIR', EVENT_ESPRESSO_UPLOAD_DIR . 'fonts' . DS ); |
|
| 146 | + if (file_exists(EVENT_ESPRESSO_UPLOAD_DIR.'fonts'.DS)) { |
|
| 147 | + define('DOMPDF_FONT_DIR', EVENT_ESPRESSO_UPLOAD_DIR.'fonts'.DS); |
|
| 148 | 148 | } |
| 149 | 149 | //ajax constants |
| 150 | - define( 'EE_FRONT_AJAX', isset( $_REQUEST[ 'ee_front_ajax' ] ) || isset( $_REQUEST[ 'data' ][ 'ee_front_ajax' ] ) ? true : false ); |
|
| 151 | - define( 'EE_ADMIN_AJAX', isset( $_REQUEST[ 'ee_admin_ajax' ] ) || isset( $_REQUEST[ 'data' ][ 'ee_admin_ajax' ] ) ? true : false ); |
|
| 150 | + define('EE_FRONT_AJAX', isset($_REQUEST['ee_front_ajax']) || isset($_REQUEST['data']['ee_front_ajax']) ? true : false); |
|
| 151 | + define('EE_ADMIN_AJAX', isset($_REQUEST['ee_admin_ajax']) || isset($_REQUEST['data']['ee_admin_ajax']) ? true : false); |
|
| 152 | 152 | //just a handy constant occasionally needed for finding values representing infinity in the DB |
| 153 | 153 | //you're better to use this than its straight value (currently -1) in case you ever |
| 154 | 154 | //want to change its default value! or find when -1 means infinity |
| 155 | - define( 'EE_INF_IN_DB', -1 ); |
|
| 156 | - define( 'EE_INF', INF > (float)PHP_INT_MAX ? INF : PHP_INT_MAX ); |
|
| 157 | - define( 'EE_DEBUG', false ); |
|
| 155 | + define('EE_INF_IN_DB', -1); |
|
| 156 | + define('EE_INF', INF > (float) PHP_INT_MAX ? INF : PHP_INT_MAX); |
|
| 157 | + define('EE_DEBUG', false); |
|
| 158 | 158 | |
| 159 | 159 | /** |
| 160 | 160 | * espresso_plugin_activation |
| 161 | 161 | * adds a wp-option to indicate that EE has been activated via the WP admin plugins page |
| 162 | 162 | */ |
| 163 | 163 | function espresso_plugin_activation() { |
| 164 | - update_option( 'ee_espresso_activation', true ); |
|
| 164 | + update_option('ee_espresso_activation', true); |
|
| 165 | 165 | } |
| 166 | - register_activation_hook( EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation' ); |
|
| 166 | + register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation'); |
|
| 167 | 167 | |
| 168 | 168 | |
| 169 | 169 | |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | // } |
| 178 | 178 | // |
| 179 | 179 | } |
| 180 | - register_deactivation_hook( EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_deactivation' ); |
|
| 180 | + register_deactivation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_deactivation'); |
|
| 181 | 181 | |
| 182 | 182 | |
| 183 | 183 | |
@@ -187,15 +187,15 @@ discard block |
||
| 187 | 187 | */ |
| 188 | 188 | function espresso_load_error_handling() { |
| 189 | 189 | // load debugging tools |
| 190 | - if ( WP_DEBUG === true && is_readable( EE_HELPERS . 'EEH_Debug_Tools.helper.php' ) ) { |
|
| 191 | - require_once( EE_HELPERS . 'EEH_Debug_Tools.helper.php' ); |
|
| 190 | + if (WP_DEBUG === true && is_readable(EE_HELPERS.'EEH_Debug_Tools.helper.php')) { |
|
| 191 | + require_once(EE_HELPERS.'EEH_Debug_Tools.helper.php'); |
|
| 192 | 192 | EEH_Debug_Tools::instance(); |
| 193 | 193 | } |
| 194 | 194 | // load error handling |
| 195 | - if ( is_readable( EE_CORE . 'EE_Error.core.php' ) ) { |
|
| 196 | - require_once( EE_CORE . 'EE_Error.core.php' ); |
|
| 195 | + if (is_readable(EE_CORE.'EE_Error.core.php')) { |
|
| 196 | + require_once(EE_CORE.'EE_Error.core.php'); |
|
| 197 | 197 | } else { |
| 198 | - wp_die( __( 'The EE_Error core class could not be loaded.', 'event_espresso' ) ); |
|
| 198 | + wp_die(__('The EE_Error core class could not be loaded.', 'event_espresso')); |
|
| 199 | 199 | } |
| 200 | 200 | } |
| 201 | 201 | |
@@ -209,25 +209,25 @@ discard block |
||
| 209 | 209 | * @param string $full_path_to_file |
| 210 | 210 | * @throws EE_Error |
| 211 | 211 | */ |
| 212 | - function espresso_load_required( $classname, $full_path_to_file ) { |
|
| 212 | + function espresso_load_required($classname, $full_path_to_file) { |
|
| 213 | 213 | static $error_handling_loaded = false; |
| 214 | - if ( ! $error_handling_loaded ) { |
|
| 214 | + if ( ! $error_handling_loaded) { |
|
| 215 | 215 | espresso_load_error_handling(); |
| 216 | 216 | $error_handling_loaded = true; |
| 217 | 217 | } |
| 218 | - if ( is_readable( $full_path_to_file ) ) { |
|
| 219 | - require_once( $full_path_to_file ); |
|
| 218 | + if (is_readable($full_path_to_file)) { |
|
| 219 | + require_once($full_path_to_file); |
|
| 220 | 220 | } else { |
| 221 | - throw new EE_Error ( sprintf( |
|
| 222 | - __( 'The %s class file could not be located or is not readable due to file permissions.', 'event_espresso' ), |
|
| 221 | + throw new EE_Error(sprintf( |
|
| 222 | + __('The %s class file could not be located or is not readable due to file permissions.', 'event_espresso'), |
|
| 223 | 223 | $classname |
| 224 | - ) ); |
|
| 224 | + )); |
|
| 225 | 225 | } |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | - espresso_load_required( 'EEH_Base', EE_CORE . 'helpers' . DS . 'EEH_Base.helper.php' ); |
|
| 229 | - espresso_load_required( 'EEH_File', EE_CORE . 'helpers' . DS . 'EEH_File.helper.php' ); |
|
| 230 | - espresso_load_required( 'EE_Bootstrap', EE_CORE . 'EE_Bootstrap.core.php' ); |
|
| 228 | + espresso_load_required('EEH_Base', EE_CORE.'helpers'.DS.'EEH_Base.helper.php'); |
|
| 229 | + espresso_load_required('EEH_File', EE_CORE.'helpers'.DS.'EEH_File.helper.php'); |
|
| 230 | + espresso_load_required('EE_Bootstrap', EE_CORE.'EE_Bootstrap.core.php'); |
|
| 231 | 231 | new EE_Bootstrap(); |
| 232 | 232 | |
| 233 | 233 | |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | |
| 237 | 237 | |
| 238 | 238 | |
| 239 | -if ( ! function_exists( 'espresso_deactivate_plugin' ) ) { |
|
| 239 | +if ( ! function_exists('espresso_deactivate_plugin')) { |
|
| 240 | 240 | /** |
| 241 | 241 | * deactivate_plugin |
| 242 | 242 | * usage: espresso_deactivate_plugin( plugin_basename( __FILE__ )); |
@@ -245,11 +245,11 @@ discard block |
||
| 245 | 245 | * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file |
| 246 | 246 | * @return void |
| 247 | 247 | */ |
| 248 | - function espresso_deactivate_plugin( $plugin_basename = '' ) { |
|
| 249 | - if ( ! function_exists( 'deactivate_plugins' ) ) { |
|
| 250 | - require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); |
|
| 248 | + function espresso_deactivate_plugin($plugin_basename = '') { |
|
| 249 | + if ( ! function_exists('deactivate_plugins')) { |
|
| 250 | + require_once(ABSPATH.'wp-admin/includes/plugin.php'); |
|
| 251 | 251 | } |
| 252 | - unset( $_GET[ 'activate' ], $_REQUEST[ 'activate' ] ); |
|
| 253 | - deactivate_plugins( $plugin_basename ); |
|
| 252 | + unset($_GET['activate'], $_REQUEST['activate']); |
|
| 253 | + deactivate_plugins($plugin_basename); |
|
| 254 | 254 | } |
| 255 | 255 | } |