Completed
Branch BUG-7537 (2c2d2f)
by
unknown
11:35 queued 10s
created
general_settings/help_tours/Your_Organization_Help_Tour.class.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
3 3
 	exit('NO direct script access allowed');
4 4
 
5 5
 /**
@@ -99,32 +99,32 @@  discard block
 block discarded – undo
99 99
 
100 100
 
101 101
 	protected function _start() {
102
-		$content = '<h3>' . __('Organization Settings', 'event_espresso') . '</h3>';
103
-		$content .= '<p>' . __('This tour of the Your Organization page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
102
+		$content = '<h3>'.__('Organization Settings', 'event_espresso').'</h3>';
103
+		$content .= '<p>'.__('This tour of the Your Organization page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
104 104
 		return $content;
105 105
 	}
106 106
 
107 107
 	protected function _site_license_key_stop() {
108
-		return '<p>' . __('Enter your support license key here to enable one-click updates.', 'event_espresso') . '</p>';
108
+		return '<p>'.__('Enter your support license key here to enable one-click updates.', 'event_espresso').'</p>';
109 109
 	}
110 110
 
111 111
 	protected function _contact_information_stop() {
112
-		return '<p>' . __('You can change your business / organization information below. Be sure to keep this information updated as it is used in other areas of the site. Adjusting the country option here will update your currency settings. More options are available in the Countries tab.', 'event_espresso') . '</p>';
112
+		return '<p>'.__('You can change your business / organization information below. Be sure to keep this information updated as it is used in other areas of the site. Adjusting the country option here will update your currency settings. More options are available in the Countries tab.', 'event_espresso').'</p>';
113 113
 	}
114 114
 
115 115
 	protected function _upload_image_stop() {
116
-		return '<p>' . __('Add a logo. This can be used for invoices and tickets.', 'event_espresso') . '</p>';
116
+		return '<p>'.__('Add a logo. This can be used for invoices and tickets.', 'event_espresso').'</p>';
117 117
 	}
118 118
 
119 119
 	protected function _organization_facebook_stop() {
120
-		return '<p>' . __('Add links to various social media networks.', 'event_espresso') . '</p>';
120
+		return '<p>'.__('Add links to various social media networks.', 'event_espresso').'</p>';
121 121
 	}
122 122
 
123 123
 	protected function _ueip_option_stop() {
124
-		return '<p>' . __('Help us to help you! Sign up to the User eXperience Improvement Program and send us anonymous data that will help us improve Event Espresso.', 'event_espresso') . '</p>';
124
+		return '<p>'.__('Help us to help you! Sign up to the User eXperience Improvement Program and send us anonymous data that will help us improve Event Espresso.', 'event_espresso').'</p>';
125 125
 	}
126 126
 
127 127
 	protected function _end_tour_stop() {
128
-		return '<p>' . __('You are almost done updating Your Organization information. Click on the Save button to save changes and then go to the Payment Methods screen so you can setup a payment gateway.', 'event_espresso') . '</p>';
128
+		return '<p>'.__('You are almost done updating Your Organization information. Click on the Save button to save changes and then go to the Payment Methods screen so you can setup a payment gateway.', 'event_espresso').'</p>';
129 129
 	}
130 130
 }
131 131
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,8 +6,9 @@
 block discarded – undo
6 6
  * @package Event Espresso
7 7
  * @subpackage messages
8 8
  */
9
-if (!defined('EVENT_ESPRESSO_VERSION') )
9
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
10 10
 	exit('NO direct script access allowed');
11
+}
11 12
 
12 13
 /**
13 14
  *
Please login to merge, or discard this patch.
admin_pages/general_settings/templates/admin_option_settings.template.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <div class="padding">
2 2
 
3
-	<?php do_action( 'AHEE__admin_option_settings__template__before', $template_args ); ?>
3
+	<?php do_action('AHEE__admin_option_settings__template__before', $template_args); ?>
4 4
 
5 5
 	<?php /* @todo put back once we have a dashboard widget to use
6 6
 	<h4 class="ee-admin-settings-hdr">
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	</table>
66 66
 <?php endif; */ ?>
67 67
 
68
-	<?php if ( EE_Registry::instance()->CAP->current_user_can( 'manage_options', 'display_admin_settings_options_promote_and_affiliate' ) ) : ?>
68
+	<?php if (EE_Registry::instance()->CAP->current_user_can('manage_options', 'display_admin_settings_options_promote_and_affiliate')) : ?>
69 69
 		<h4 class="ee-admin-settings-hdr">
70 70
 			<?php _e('Promote Event Espresso', 'event_espresso'); ?> <span id="affiliate_info"><?php echo EEH_Template::get_help_tab_link('affiliate_info'); ?></span>
71 71
 		</h4>
@@ -80,13 +80,13 @@  discard block
 block discarded – undo
80 80
 						</label>
81 81
 					</th>
82 82
 					<td>
83
-						<?php echo EEH_Form_Fields::select_input('show_reg_footer', $values, $show_reg_footer ); ?>
83
+						<?php echo EEH_Form_Fields::select_input('show_reg_footer', $values, $show_reg_footer); ?>
84 84
 					</td>
85 85
 				</tr>
86 86
 
87 87
 				<tr>
88 88
 					<th>
89
-						<?php printf( __('Event Espresso %sAffiliate%s ID', 'event_espresso'), '<a href="http://eventespresso.com/affiliates/" target="_blank">', '</a>' ); ?>
89
+						<?php printf(__('Event Espresso %sAffiliate%s ID', 'event_espresso'), '<a href="http://eventespresso.com/affiliates/" target="_blank">', '</a>'); ?>
90 90
 					</th>
91 91
 					<td>
92 92
 						<input name="affiliate_id" class="regular-text" type="text" value="<?php echo $affiliate_id; ?>" />
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 					</label>
116 116
 				</th>
117 117
 				<td>
118
-					<?php echo EEH_Form_Fields::select_input('help_tour_activation', $values, $help_tour_activation ); ?>
118
+					<?php echo EEH_Form_Fields::select_input('help_tour_activation', $values, $help_tour_activation); ?>
119 119
 				</td>
120 120
 			</tr>
121 121
 		</tbody>
Please login to merge, or discard this patch.
general_settings/templates/country_details_settings.template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 	<table id="general-setting-country-details-tbl" class="form-table">
2 2
 		<tbody>
3 3
 		<?php 
4
-		foreach ( $inputs as $ID => $input ) { 
5
-			echo EEH_Form_Fields::generate_form_input( $input ); 
4
+		foreach ($inputs as $ID => $input) { 
5
+			echo EEH_Form_Fields::generate_form_input($input); 
6 6
 		 }
7 7
 		?>
8 8
 			<tr>
Please login to merge, or discard this patch.
admin_pages/general_settings/templates/state_details_settings.template.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,27 +1,27 @@  discard block
 block discarded – undo
1 1
 	<table id="general-setting-country-states-tbl" class="form-table">
2 2
 		<thead>
3 3
 			<tr>
4
-				<th><?php _e( 'Code', 'event_espresso' );?></th>
5
-				<th><?php _e( 'Name', 'event_espresso' );?></th>
6
-				<th colspan="2"><span class="small-text"><?php _e( 'State Appears in<br/>Dropdown Select Lists ', 'event_espresso' );?></span></th>
4
+				<th><?php _e('Code', 'event_espresso'); ?></th>
5
+				<th><?php _e('Name', 'event_espresso'); ?></th>
6
+				<th colspan="2"><span class="small-text"><?php _e('State Appears in<br/>Dropdown Select Lists ', 'event_espresso'); ?></span></th>
7 7
 			</tr>
8 8
 		</thead>
9 9
 		<tbody>
10 10
 		<?php
11 11
 		//EEH_Debug_Tools::printr( $states, '$states  <br /><span style="font-size:10px;font-weight:normal;">' . __FILE__ . '<br />line no: ' . __LINE__ . '</span>', 'auto' );
12
-		if ( $states ) {
13
-			foreach ( $states as $STA_ID => $state ) {
12
+		if ($states) {
13
+			foreach ($states as $STA_ID => $state) {
14 14
 		?>
15 15
 			<tr id="state-<?php echo $STA_ID; ?>-tr" class="country-state-columns">
16 16
 			<?php
17
-				foreach ( $state['inputs'] as $ID => $input ) {
18
-					if ( $ID != 'STA_ID' && $ID != 'CNT_ISO' ) {
19
-						echo EEH_Form_Fields::generate_form_input( $input );
17
+				foreach ($state['inputs'] as $ID => $input) {
18
+					if ($ID != 'STA_ID' && $ID != 'CNT_ISO') {
19
+						echo EEH_Form_Fields::generate_form_input($input);
20 20
 					}
21 21
 				 }
22 22
 			 ?>
23 23
 				<td class="delete-state-td">
24
-					<a id="delete-state-<?php echo $STA_ID; ?>-lnk" class="dashicons dashicons-post-trash ee-icon-size-20 delete-state-lnk" rel="<?php echo $STA_ID; ?>" title="<?php esc_attr_e( 'Delete State #', 'event_espresso' ); ?><?php echo $STA_ID; ?>?" href="<?php echo $state['delete_state_url']; ?>"></a>
24
+					<a id="delete-state-<?php echo $STA_ID; ?>-lnk" class="dashicons dashicons-post-trash ee-icon-size-20 delete-state-lnk" rel="<?php echo $STA_ID; ?>" title="<?php esc_attr_e('Delete State #', 'event_espresso'); ?><?php echo $STA_ID; ?>?" href="<?php echo $state['delete_state_url']; ?>"></a>
25 25
 				</td>
26 26
 			</tr>
27 27
 		<?php
@@ -38,23 +38,23 @@  discard block
 block discarded – undo
38 38
 	<table class="form-table add-new-state-tbl">
39 39
 		<tbody>
40 40
 			<tr>
41
-				<td colspan="2"><h4><?php _e( 'Add New State/Province', 'event_espresso' );?></h4></td>
41
+				<td colspan="2"><h4><?php _e('Add New State/Province', 'event_espresso'); ?></h4></td>
42 42
 			</tr>
43 43
 
44 44
 			<tr>
45 45
 				<td class="general-settings-country-state-input-td">
46
-					<label for="STA_abbrev_XXX"><?php _e( 'Code', 'event_espresso' );?></label><br />
46
+					<label for="STA_abbrev_XXX"><?php _e('Code', 'event_espresso'); ?></label><br />
47 47
 					<input id="STA_abbrev-XXX" class="STA_abbrev mid-text " type="text" title="" value=""
48 48
 						   name="STA_abbrev_XXX">
49 49
 				</td>
50 50
 				<td class="general-settings-country-state-input-td">
51
-					<label for="STA_name_XXX"><?php _e( 'Name', 'event_espresso' );?></label><br/>
51
+					<label for="STA_name_XXX"><?php _e('Name', 'event_espresso'); ?></label><br/>
52 52
 					<input id="STA_name-XXX" class="STA_name regular-text " type="text" title="" value="" name="STA_name_XXX">
53 53
 				</td>
54 54
 			</tr>
55 55
 			<tr>
56 56
 				<td colspan="2">
57
-					<input  type="submit" id="add-new-state-btn" class="secondary-button button right" value="<?php _e( 'Add New State/Province', 'event_espresso' );?>" />
57
+					<input  type="submit" id="add-new-state-btn" class="secondary-button button right" value="<?php _e('Add New State/Province', 'event_espresso'); ?>" />
58 58
 
59 59
 				</td>
60 60
 			</tr>
Please login to merge, or discard this patch.
general_settings/templates/your_organization_settings.template.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <div class="padding">
2 2
 	<?php
3 3
 		//we'll only show site-license keys if this is main_site() (which works for both multi-site and single-site wp installations)
4
-		if ( is_main_site() ) { ?>
4
+		if (is_main_site()) { ?>
5 5
 		<h4 class="ee-admin-settings-hdr" style="width:300px;">
6 6
 			<?php _e('Your Event Espresso License Key', 'event_espresso'); ?>
7 7
 		</h4>
@@ -11,13 +11,13 @@  discard block
 block discarded – undo
11 11
 				<tr <?php echo isset($_REQUEST['license_key']) && $_REQUEST['license_key'] == true ? 'class="yellow_alert"' : '' ?>>
12 12
 					<th>
13 13
 						<label for="site_license_key">
14
-							<?php _e('Support License Key', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('site_license_key_info');?>
14
+							<?php _e('Support License Key', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('site_license_key_info'); ?>
15 15
 						</label>
16 16
 					</th>
17 17
 					<td>
18 18
 						<input name="site_license_key" id="site_license_key" size="10" class="regular-text" type="text" value="<?php echo $site_license_key; ?>" /><?php echo $site_license_key_verified; ?><br/>
19 19
 						<p class="description">
20
-							<?php printf( __('Adding a valid Support License Key will enable automatic update notifications and backend updates for Event Espresso Core and any installed add-ons. If this is a Development or Test site, %sDO NOT%s enter your Support License Key.', 'event_espresso'), '<strong>', '</strong>' ); ?>
20
+							<?php printf(__('Adding a valid Support License Key will enable automatic update notifications and backend updates for Event Espresso Core and any installed add-ons. If this is a Development or Test site, %sDO NOT%s enter your Support License Key.', 'event_espresso'), '<strong>', '</strong>'); ?>
21 21
 						</p>
22 22
 					</td>
23 23
 				</tr>
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
 
32 32
 	<h4 id="contact_info_h4" class="ee-admin-settings-hdr">
33
-		<?php _e('Contact Information', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('contact_info_info');?>
33
+		<?php _e('Contact Information', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('contact_info_info'); ?>
34 34
 	</h4>
35 35
 
36 36
 	<table class="form-table">
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
 					<input id="organization_city" class="regular-text" type="text" name="organization_city" value="<?php echo $organization_city; ?>" />
79 79
 				</td>
80 80
 			</tr>
81
-			<?php echo EEH_Form_Fields::generate_form_input( $states ); ?>
82
-			<?php echo EEH_Form_Fields::generate_form_input( $countries ); ?>
81
+			<?php echo EEH_Form_Fields::generate_form_input($states); ?>
82
+			<?php echo EEH_Form_Fields::generate_form_input($countries); ?>
83 83
 			<tr>
84 84
 				<th>
85 85
 					<label for="organization_zip">
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 	</table>
134 134
 
135 135
 	<h4 class="ee-admin-settings-hdr">
136
-		<?php _e('Company Logo', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('organization_logo_info');?>
136
+		<?php _e('Company Logo', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('organization_logo_info'); ?>
137 137
 	</h4>
138 138
 
139 139
 	<table class="form-table">
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 				</th>
162 162
 				<td>
163 163
 					<?php
164
-					if ( $organization_logo_url ) {
164
+					if ($organization_logo_url) {
165 165
 						?>
166 166
 						<p id="default-logo-thumb">
167 167
 							<img id="current-image-thumb" src="<?php echo $organization_logo_url ?>" alt="" /><br />
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 	<br/><br/>
180 180
 
181 181
 	<h4 class="ee-admin-settings-hdr">
182
-		<?php _e('Social Links', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('social_links_info');?>
182
+		<?php _e('Social Links', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('social_links_info'); ?>
183 183
 	</h4>
184 184
 	<p class="description"><?php _e('Enter any links to social accounts for your organization here', 'event_espresso'); ?></p>
185 185
 
@@ -256,9 +256,9 @@  discard block
 block discarded – undo
256 256
 	<br/><br/>
257 257
 
258 258
 
259
-	<?php if ( is_main_site() ) : ?>
259
+	<?php if (is_main_site()) : ?>
260 260
 		<p>
261
-			<?php echo  EE_PUE::espresso_data_collection_optin_text( FALSE ); ?>
261
+			<?php echo  EE_PUE::espresso_data_collection_optin_text(FALSE); ?>
262 262
 		</p>
263 263
 
264 264
 		<table class="form-table">
@@ -272,11 +272,11 @@  discard block
 block discarded – undo
272 272
 					</th>
273 273
 					<td>
274 274
 						<?php
275
-							$values=array(
276
-								array('id'=>'yes','text'=> __('Yes! I want to help improve Event Espresso!','event_espresso')),
277
-								array('id'=>'no','text'=> __('Not at this time. Maybe later.','event_espresso'))
275
+							$values = array(
276
+								array('id'=>'yes', 'text'=> __('Yes! I want to help improve Event Espresso!', 'event_espresso')),
277
+								array('id'=>'no', 'text'=> __('Not at this time. Maybe later.', 'event_espresso'))
278 278
 							);
279
-							echo EEH_Form_Fields::select_input('ueip_optin', $values, !empty($ee_ueip_optin) ? $ee_ueip_optin : 'yes');
279
+							echo EEH_Form_Fields::select_input('ueip_optin', $values, ! empty($ee_ueip_optin) ? $ee_ueip_optin : 'yes');
280 280
 						?>
281 281
 					</td>
282 282
 				</tr>
Please login to merge, or discard this patch.
admin_pages/maintenance/Maintenance_Admin_Page.core.php 2 patches
Braces   +11 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
3 3
 	exit('NO direct script access allowed');
4
+}
4 5
 
5 6
 /**
6 7
  * Event Espresso
@@ -185,7 +186,7 @@  discard block
 block discarded – undo
185 186
 					$show_migration_progress = true;
186 187
 					if(isset($this->_req_data['continue_migration'])){
187 188
 						$show_backup_db_text = false;
188
-					}else{
189
+					} else{
189 190
 						$show_backup_db_text = true;
190 191
 					}
191 192
 					$scripts_needing_to_run = EE_Data_Migration_Manager::instance()->check_for_applicable_data_migration_scripts();
@@ -205,7 +206,7 @@  discard block
 block discarded – undo
205 206
 			}
206 207
 			$most_recent_migration = EE_Data_Migration_Manager::instance()->get_last_ran_script(true);
207 208
 			$exception_thrown = false;
208
-		}catch(EE_Error $e){
209
+		} catch(EE_Error $e){
209 210
 
210 211
 			EE_Data_Migration_Manager::instance()->add_error_to_migrations_ran($e->getMessage());
211 212
 			//now, just so we can display the page correctly, make a error migration script stage object
@@ -223,19 +224,19 @@  discard block
 block discarded – undo
223 224
 			$this->_template_path = EE_MAINTENANCE_TEMPLATE_PATH . 'ee_migration_was_borked_page.template.php';
224 225
 			$this->_template_args[ 'support_url' ] = 'http://eventespresso.com/support/forums/';
225 226
 			$this->_template_args[ 'next_url' ] = EEH_URL::add_query_args_and_nonce(array( 'action' => 'confirm_migration_crash_report_sent', 'success' => '0' ), EE_MAINTENANCE_ADMIN_URL );
226
-		}elseif($addons_should_be_upgraded_first){
227
+		} elseif($addons_should_be_upgraded_first){
227 228
 			$this->_template_path = EE_MAINTENANCE_TEMPLATE_PATH . 'ee_upgrade_addons_before_migrating.template.php';
228
-		}else{
229
+		} else{
229 230
 			if($most_recent_migration &&
230 231
 					$most_recent_migration instanceof EE_Data_Migration_Script_Base  &&
231 232
 					$most_recent_migration->can_continue()){
232 233
 				$show_backup_db_text = false;
233 234
 				$show_continue_current_migration_script = true;
234 235
 				$show_most_recent_migration = true;
235
-			}elseif(isset($this->_req_data['continue_migration'])){
236
+			} elseif(isset($this->_req_data['continue_migration'])){
236 237
 				$show_most_recent_migration = true;
237 238
 				$show_continue_current_migration_script = false;
238
-			}else{
239
+			} else{
239 240
 				$show_most_recent_migration = false;
240 241
 				$show_continue_current_migration_script = false;
241 242
 			}
@@ -313,7 +314,7 @@  discard block
 block discarded – undo
313 314
 		if( ! EE_Data_Migration_Manager::instance()->check_for_applicable_data_migration_scripts()){
314 315
 			EE_Maintenance_Mode::instance()->set_maintenance_level($new_level);
315 316
 			$success = true;
316
-		}else{
317
+		} else{
317 318
 			EE_Maintenance_Mode::instance()->set_maintenance_mode_if_db_old();
318 319
 			$success= false;
319 320
 		}
@@ -380,7 +381,7 @@  discard block
 block discarded – undo
380 381
 					"from:$from_name<$from>",
381 382
 //					'content-type:text/html charset=UTF-8'
382 383
 					));
383
-		}catch( Exception $e ){
384
+		} catch( Exception $e ){
384 385
 			$success = FALSE;
385 386
 		}
386 387
 		$this->_redirect_after_action($success, __("Migration Crash Report", "event_espresso"), __("sent", "event_espresso"),array('success'=>$success,'action'=>'confirm_migration_crash_report_sent'));
@@ -391,7 +392,7 @@  discard block
 block discarded – undo
391 392
 	public function _confirm_migration_crash_report_sent(){
392 393
 		try{
393 394
 			$most_recent_migration = EE_Data_Migration_Manager::instance()->get_last_ran_script(true);
394
-		}catch(EE_Error $e){
395
+		} catch(EE_Error $e){
395 396
 
396 397
 			EE_Data_Migration_Manager::instance()->add_error_to_migrations_ran($e->getMessage());
397 398
 			//now, just so we can display the page correctly, make a error migration script stage object
Please login to merge, or discard this patch.
Spacing   +97 added lines, -97 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
3 3
 	exit('NO direct script access allowed');
4 4
 
5 5
 /**
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
 class Maintenance_Admin_Page extends EE_Admin_Page {
31 31
 
32 32
 
33
-	public function __construct( $routing = TRUE ) {
34
-		parent::__construct( $routing );
33
+	public function __construct($routing = TRUE) {
34
+		parent::__construct($routing);
35 35
 	}
36 36
 
37 37
 
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
 
47 47
 
48 48
 	protected function _ajax_hooks() {
49
-		add_action('wp_ajax_migration_step',array($this,'migration_step'));
50
-		add_action('wp_ajax_add_error_to_migrations_ran',array($this,'add_error_to_migrations_ran'));
49
+		add_action('wp_ajax_migration_step', array($this, 'migration_step'));
50
+		add_action('wp_ajax_add_error_to_migrations_ran', array($this, 'add_error_to_migrations_ran'));
51 51
 	}
52 52
 
53 53
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 		$this->_admin_page_title = EE_MAINTENANCE_LABEL;
57 57
 		$this->_labels = array(
58 58
 			'buttons' => array(
59
-				'reset_capabilities' => __( 'Reset Event Espresso Capabilities', 'event_espresso' )
59
+				'reset_capabilities' => __('Reset Event Espresso Capabilities', 'event_espresso')
60 60
 				)
61 61
 			);
62 62
 	}
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 				),
146 146
 			'csv_export' => array(
147 147
 				'nav'           => array(
148
-					'label' => __( 'CSV Export', 'event_espresso' ),
148
+					'label' => __('CSV Export', 'event_espresso'),
149 149
 					'order' => 20
150 150
 				),
151 151
 				'require_nonce' => false,
@@ -171,23 +171,23 @@  discard block
 block discarded – undo
171 171
 	 * default maintenance page. If we're in maintenance mode level 2, then we need to show
172 172
 	 * the migration scripts and all that UI.
173 173
 	 */
174
-	public function _maintenance(){
174
+	public function _maintenance() {
175 175
 		//it all depends if we're in maintenance model level 1 (frontend-only) or
176 176
 		//level 2 (everything except maintenance page)
177
-		try{
177
+		try {
178 178
 			//get the current maintenance level and check if
179 179
 			//we are removed
180 180
 			$mm = EE_Maintenance_Mode::instance()->level();
181 181
 			$placed_in_mm = EE_Maintenance_Mode::instance()->set_maintenance_mode_if_db_old();
182
-			if( $mm == EE_Maintenance_Mode::level_2_complete_maintenance && ! $placed_in_mm){
182
+			if ($mm == EE_Maintenance_Mode::level_2_complete_maintenance && ! $placed_in_mm) {
183 183
 				//we just took the site out of maintenance mode, so notify the user.
184 184
 				//unfortunately this message appears to be echoed on the NEXT page load...
185 185
 				//oh well, we should really be checking for this on addon deactivation anyways
186
-				EE_Error::add_attention( __( 'Site taken out of maintenance mode because no data migration scripts are required', 'event_espresso' ) );
187
-				$this->_process_notices( array( 'page' => 'espresso_maintenance_settings'), false );
186
+				EE_Error::add_attention(__('Site taken out of maintenance mode because no data migration scripts are required', 'event_espresso'));
187
+				$this->_process_notices(array('page' => 'espresso_maintenance_settings'), false);
188 188
 			}
189 189
 			//in case an exception is thrown while trying to handle migrations
190
-			switch(EE_Maintenance_Mode::instance()->level()){
190
+			switch (EE_Maintenance_Mode::instance()->level()) {
191 191
 				case EE_Maintenance_Mode::level_0_not_in_maintenance:
192 192
 				case EE_Maintenance_Mode::level_1_frontend_only_maintenance:
193 193
 					$show_maintenance_switch = true;
@@ -199,18 +199,18 @@  discard block
 block discarded – undo
199 199
 				case EE_Maintenance_Mode::level_2_complete_maintenance:
200 200
 					$show_maintenance_switch = false;
201 201
 					$show_migration_progress = true;
202
-					if(isset($this->_req_data['continue_migration'])){
202
+					if (isset($this->_req_data['continue_migration'])) {
203 203
 						$show_backup_db_text = false;
204
-					}else{
204
+					} else {
205 205
 						$show_backup_db_text = true;
206 206
 					}
207 207
 					$scripts_needing_to_run = EE_Data_Migration_Manager::instance()->check_for_applicable_data_migration_scripts();
208 208
 					$addons_should_be_upgraded_first = EE_Data_Migration_Manager::instance()->addons_need_updating();
209 209
 					$script_names = array();
210 210
 					$current_script = NULL;
211
-					foreach($scripts_needing_to_run as $script){
212
-						if($script instanceof EE_Data_Migration_Script_Base){
213
-							if( ! $current_script){
211
+					foreach ($scripts_needing_to_run as $script) {
212
+						if ($script instanceof EE_Data_Migration_Script_Base) {
213
+							if ( ! $current_script) {
214 214
 								$current_script = $script;
215 215
 								$current_script->migration_page_hooks();
216 216
 							}
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 			}
222 222
 			$most_recent_migration = EE_Data_Migration_Manager::instance()->get_last_ran_script(true);
223 223
 			$exception_thrown = false;
224
-		}catch(EE_Error $e){
224
+		} catch (EE_Error $e) {
225 225
 
226 226
 			EE_Data_Migration_Manager::instance()->add_error_to_migrations_ran($e->getMessage());
227 227
 			//now, just so we can display the page correctly, make a error migration script stage object
@@ -231,53 +231,53 @@  discard block
 block discarded – undo
231 231
 			$exception_thrown = true;
232 232
 		}
233 233
 		$current_db_state = EE_Data_Migration_Manager::instance()->ensure_current_database_state_is_set();
234
-		if($exception_thrown ||
235
-				(	$most_recent_migration &&
234
+		if ($exception_thrown ||
235
+				($most_recent_migration &&
236 236
 					$most_recent_migration instanceof EE_Data_Migration_Script_Base &&
237 237
 					$most_recent_migration->is_broken()
238
-				)){
239
-			$this->_template_path = EE_MAINTENANCE_TEMPLATE_PATH . 'ee_migration_was_borked_page.template.php';
240
-			$this->_template_args[ 'support_url' ] = 'http://eventespresso.com/support/forums/';
241
-			$this->_template_args[ 'next_url' ] = EEH_URL::add_query_args_and_nonce(array( 'action' => 'confirm_migration_crash_report_sent', 'success' => '0' ), EE_MAINTENANCE_ADMIN_URL );
242
-		}elseif($addons_should_be_upgraded_first){
243
-			$this->_template_path = EE_MAINTENANCE_TEMPLATE_PATH . 'ee_upgrade_addons_before_migrating.template.php';
244
-		}else{
245
-			if($most_recent_migration &&
246
-					$most_recent_migration instanceof EE_Data_Migration_Script_Base  &&
247
-					$most_recent_migration->can_continue()){
238
+				)) {
239
+			$this->_template_path = EE_MAINTENANCE_TEMPLATE_PATH.'ee_migration_was_borked_page.template.php';
240
+			$this->_template_args['support_url'] = 'http://eventespresso.com/support/forums/';
241
+			$this->_template_args['next_url'] = EEH_URL::add_query_args_and_nonce(array('action' => 'confirm_migration_crash_report_sent', 'success' => '0'), EE_MAINTENANCE_ADMIN_URL);
242
+		}elseif ($addons_should_be_upgraded_first) {
243
+			$this->_template_path = EE_MAINTENANCE_TEMPLATE_PATH.'ee_upgrade_addons_before_migrating.template.php';
244
+		} else {
245
+			if ($most_recent_migration &&
246
+					$most_recent_migration instanceof EE_Data_Migration_Script_Base &&
247
+					$most_recent_migration->can_continue()) {
248 248
 				$show_backup_db_text = false;
249 249
 				$show_continue_current_migration_script = true;
250 250
 				$show_most_recent_migration = true;
251
-			}elseif(isset($this->_req_data['continue_migration'])){
251
+			}elseif (isset($this->_req_data['continue_migration'])) {
252 252
 				$show_most_recent_migration = true;
253 253
 				$show_continue_current_migration_script = false;
254
-			}else{
254
+			} else {
255 255
 				$show_most_recent_migration = false;
256 256
 				$show_continue_current_migration_script = false;
257 257
 			}
258 258
 
259
-			if(isset($current_script)){
259
+			if (isset($current_script)) {
260 260
 				$migrates_to = $current_script->migrates_to_version();
261
-				$plugin_slug = $migrates_to[ 'slug' ];
262
-				$new_version = $migrates_to[ 'version' ];
263
-				$this->_template_args = array_merge($this->_template_args,array(
264
-					'current_db_state'=>  sprintf(__("EE%s (%s)", "event_espresso"), isset($current_db_state[$plugin_slug]) ? $current_db_state[$plugin_slug] : 3,$plugin_slug),
265
-					'next_db_state'=>isset($current_script) ? sprintf(__("EE%s (%s)", 'event_espresso'),$new_version,$plugin_slug) : NULL));
261
+				$plugin_slug = $migrates_to['slug'];
262
+				$new_version = $migrates_to['version'];
263
+				$this->_template_args = array_merge($this->_template_args, array(
264
+					'current_db_state'=>  sprintf(__("EE%s (%s)", "event_espresso"), isset($current_db_state[$plugin_slug]) ? $current_db_state[$plugin_slug] : 3, $plugin_slug),
265
+					'next_db_state'=>isset($current_script) ? sprintf(__("EE%s (%s)", 'event_espresso'), $new_version, $plugin_slug) : NULL));
266 266
 			}
267 267
 
268
-			$this->_template_path = EE_MAINTENANCE_TEMPLATE_PATH . 'ee_migration_page.template.php';
268
+			$this->_template_path = EE_MAINTENANCE_TEMPLATE_PATH.'ee_migration_page.template.php';
269 269
 			$this->_template_args = array_merge(
270 270
 				$this->_template_args,
271 271
 				array(
272
-					'show_most_recent_migration' => $show_most_recent_migration,//flag for showing the most recent migration's status and/or errors
273
-					'show_migration_progress' => $show_migration_progress,//flag for showing the option to run migrations and see their progress
274
-					'show_backup_db_text' => $show_backup_db_text,//flag for showing text telling the user to backup their DB
275
-					'show_maintenance_switch'=> $show_maintenance_switch,//flag for showing the option to change maintenance mode between levels 0 and 1
276
-					'script_names'=>$script_names,//array of names of scripts that have run
277
-					'show_continue_current_migration_script'=>$show_continue_current_migration_script,//flag to change wording to indicating that we're only CONTINUING a migration script (somehow it got interrupted0
272
+					'show_most_recent_migration' => $show_most_recent_migration, //flag for showing the most recent migration's status and/or errors
273
+					'show_migration_progress' => $show_migration_progress, //flag for showing the option to run migrations and see their progress
274
+					'show_backup_db_text' => $show_backup_db_text, //flag for showing text telling the user to backup their DB
275
+					'show_maintenance_switch'=> $show_maintenance_switch, //flag for showing the option to change maintenance mode between levels 0 and 1
276
+					'script_names'=>$script_names, //array of names of scripts that have run
277
+					'show_continue_current_migration_script'=>$show_continue_current_migration_script, //flag to change wording to indicating that we're only CONTINUING a migration script (somehow it got interrupted0
278 278
 					'reset_db_page_link' => EE_Admin_Page::add_query_args_and_nonce(array('action'=>'reset_db'), EE_MAINTENANCE_ADMIN_URL),
279
-					'update_migration_script_page_link' => EE_Admin_Page::add_query_args_and_nonce(array('action'=>'change_maintenance_level'),EE_MAINTENANCE_ADMIN_URL),
280
-					'ultimate_db_state'=>  sprintf(__("EE%s", 'event_espresso'),espresso_version()),
279
+					'update_migration_script_page_link' => EE_Admin_Page::add_query_args_and_nonce(array('action'=>'change_maintenance_level'), EE_MAINTENANCE_ADMIN_URL),
280
+					'ultimate_db_state'=>  sprintf(__("EE%s", 'event_espresso'), espresso_version()),
281 281
 				)
282 282
 			);
283 283
 		//make sure we have the form fields helper available. It usually is, but sometimes it isn't
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 			'status_fatal_error'=>  EE_Data_Migration_Manager::status_fatal_error,
292 292
 			'status_completed'=>  EE_Data_Migration_Manager::status_completed));
293 293
 		}
294
-		$this->_template_args['most_recent_migration'] = $most_recent_migration;//the actual most recently ran migration
294
+		$this->_template_args['most_recent_migration'] = $most_recent_migration; //the actual most recently ran migration
295 295
 		$this->_template_args['admin_page_content'] = EEH_Template::display_template($this->_template_path, $this->_template_args, TRUE);
296 296
 		$this->display_admin_page_with_sidebar();
297 297
 	}
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 	/**
302 302
 	 * returns JSON and executes another step of the currently-executing data migration (called via ajax)
303 303
 	 */
304
-	public function migration_step(){
304
+	public function migration_step() {
305 305
 		$this->_template_args['data'] = EE_Data_Migration_Manager::instance()->response_to_migration_ajax_request();
306 306
 		$this->_return_json();
307 307
 	}
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
 	 * Can be used by js when it notices a response with HTML in it in order
313 313
 	 * to log the malformed response
314 314
 	 */
315
-	public function add_error_to_migrations_ran(){
315
+	public function add_error_to_migrations_ran() {
316 316
 		EE_Data_Migration_Manager::instance()->add_error_to_migrations_ran($this->_req_data['message']);
317 317
 		$this->_template_args['data'] = array('ok'=>true);
318 318
 		$this->_return_json();
@@ -323,14 +323,14 @@  discard block
 block discarded – undo
323 323
 	/**
324 324
 	 * changes the maintenance level, provided there are still no migration scripts that shoudl run
325 325
 	 */
326
-	public function _change_maintenance_level(){
326
+	public function _change_maintenance_level() {
327 327
 		$new_level = intval($this->_req_data['maintenance_mode_level']);
328
-		if( ! EE_Data_Migration_Manager::instance()->check_for_applicable_data_migration_scripts()){
328
+		if ( ! EE_Data_Migration_Manager::instance()->check_for_applicable_data_migration_scripts()) {
329 329
 			EE_Maintenance_Mode::instance()->set_maintenance_level($new_level);
330 330
 			$success = true;
331
-		}else{
331
+		} else {
332 332
 			EE_Maintenance_Mode::instance()->set_maintenance_mode_if_db_old();
333
-			$success= false;
333
+			$success = false;
334 334
 		}
335 335
 		$this->_redirect_after_action($success, 'Maintenance Mode', __("Updated", "event_espresso"));
336 336
 	}
@@ -340,9 +340,9 @@  discard block
 block discarded – undo
340 340
 	/**
341 341
 	 * a tab with options for exporting EE data
342 342
 	 */
343
-	public function _csv_export(){
343
+	public function _csv_export() {
344 344
 		$csv_export_form = $this->_generate_csv_export_form();
345
-		$this->_template_args[ 'admin_page_content' ] = $csv_export_form->get_html_and_js();
345
+		$this->_template_args['admin_page_content'] = $csv_export_form->get_html_and_js();
346 346
 		$this->display_admin_page_with_sidebar();
347 347
 	}
348 348
 
@@ -351,8 +351,8 @@  discard block
 block discarded – undo
351 351
 	/**
352 352
 	 * a tab with options for exporting EE data
353 353
 	 */
354
-	public function _generate_csv_export_form(){
355
-		EE_Registry::instance()->load_helper( 'HTML' );
354
+	public function _generate_csv_export_form() {
355
+		EE_Registry::instance()->load_helper('HTML');
356 356
 		return new EE_Form_Section_Proper(
357 357
 			array(
358 358
 				'name'            => 'csv_export',
@@ -361,11 +361,11 @@  discard block
 block discarded – undo
361 361
 					'full' => new EE_Form_Section_HTML(
362 362
 						EEH_HTML::link(
363 363
 							EE_Admin_Page::add_query_args_and_nonce(
364
-								array(  'action' => 'full_csv_export', ),
364
+								array('action' => 'full_csv_export',),
365 365
 								EE_MAINTENANCE_ADMIN_URL
366 366
 							),
367
-							__( 'Export ALL Event Espresso Data to CSV.', 'event_espresso' ),
368
-							__( 'Export ALL Event Espresso Data to CSV.', 'event_espresso' ),
367
+							__('Export ALL Event Espresso Data to CSV.', 'event_espresso'),
368
+							__('Export ALL Event Espresso Data to CSV.', 'event_espresso'),
369 369
 							'',
370 370
 							'button-primary'
371 371
 						)
@@ -382,8 +382,8 @@  discard block
 block discarded – undo
382 382
 	/**
383 383
 	 * a tab with options for resetting and/or deleting EE data
384 384
 	 */
385
-	public function _full_csv_export(){
386
-		EE_Registry::instance()->load_class( 'Export', array(), false, true, true );
385
+	public function _full_csv_export() {
386
+		EE_Registry::instance()->load_class('Export', array(), false, true, true);
387 387
 		$EE_Export = EE_Export::instance(
388 388
 			array(
389 389
 				'export' => 'report',
@@ -398,9 +398,9 @@  discard block
 block discarded – undo
398 398
 	/**
399 399
 	 * a tab with options for resetting and/or deleting EE data
400 400
 	 */
401
-	public function _data_reset_and_delete(){
402
-		$this->_template_path = EE_MAINTENANCE_TEMPLATE_PATH . 'ee_data_reset_and_delete.template.php';
403
-		$this->_template_args['reset_capabilities_button'] = $this->get_action_link_or_button( 'reset_capabilities', 'reset_capabilities', array(),  'button button-primary' );
401
+	public function _data_reset_and_delete() {
402
+		$this->_template_path = EE_MAINTENANCE_TEMPLATE_PATH.'ee_data_reset_and_delete.template.php';
403
+		$this->_template_args['reset_capabilities_button'] = $this->get_action_link_or_button('reset_capabilities', 'reset_capabilities', array(), 'button button-primary');
404 404
 		$this->_template_args['delete_db_url'] = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'delete_db'), EE_MAINTENANCE_ADMIN_URL);
405 405
 		$this->_template_args['reset_db_url'] = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'reset_db'), EE_MAINTENANCE_ADMIN_URL);
406 406
 		$this->_template_args['admin_page_content'] = EEH_Template::display_template($this->_template_path, $this->_template_args, TRUE);
@@ -410,9 +410,9 @@  discard block
 block discarded – undo
410 410
 
411 411
 
412 412
 	protected function _reset_capabilities() {
413
-		EE_Registry::instance()->CAP->init_caps( true );
414
-		EE_Error::add_success( __('Default Event Espresso capabilities have been restored for all current roles.', 'event_espresso' ) );
415
-		$this->_redirect_after_action( FALSE, '', '', array( 'action' => 'data_reset' ), TRUE );
413
+		EE_Registry::instance()->CAP->init_caps(true);
414
+		EE_Error::add_success(__('Default Event Espresso capabilities have been restored for all current roles.', 'event_espresso'));
415
+		$this->_redirect_after_action(FALSE, '', '', array('action' => 'data_reset'), TRUE);
416 416
 	}
417 417
 
418 418
 	/**
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
 	 */
423 423
 	protected function _reattempt_migration() {
424 424
 		EE_Data_Migration_Manager::instance()->reattempt();
425
-		$this->_redirect_after_action( FALSE, '', '', array( 'action' => 'default' ), TRUE );
425
+		$this->_redirect_after_action(FALSE, '', '', array('action' => 'default'), TRUE);
426 426
 	}
427 427
 
428 428
 
@@ -431,8 +431,8 @@  discard block
 block discarded – undo
431 431
 	/**
432 432
 	 * shows the big ol' System Information page
433 433
 	 */
434
-	public function _system_status(){
435
-		$this->_template_path = EE_MAINTENANCE_TEMPLATE_PATH . 'ee_system_stati_page.template.php';
434
+	public function _system_status() {
435
+		$this->_template_path = EE_MAINTENANCE_TEMPLATE_PATH.'ee_system_stati_page.template.php';
436 436
 		$this->_template_args['system_stati'] = EEM_System_Status::instance()->get_system_stati();
437 437
 		$this->_template_args['admin_page_content'] = EEH_Template::display_template($this->_template_path, $this->_template_args, TRUE);
438 438
 		$this->display_admin_page_with_sidebar();
@@ -440,30 +440,30 @@  discard block
 block discarded – undo
440 440
 
441 441
 
442 442
 
443
-	public function _send_migration_crash_report(){
443
+	public function _send_migration_crash_report() {
444 444
 		$from = $this->_req_data['from'];
445 445
 		$from_name = $this->_req_data['from_name'];
446 446
 		$body = $this->_req_data['body'];
447
-		try{
447
+		try {
448 448
 		$success = wp_mail(EE_SUPPORT_EMAIL,
449 449
 				'Migration Crash Report',
450
-				$body."/r/n<br>".  print_r(EEM_System_Status::instance()->get_system_stati(),true),
450
+				$body."/r/n<br>".print_r(EEM_System_Status::instance()->get_system_stati(), true),
451 451
 				array(
452 452
 					"from:$from_name<$from>",
453 453
 //					'content-type:text/html charset=UTF-8'
454 454
 					));
455
-		}catch( Exception $e ){
455
+		} catch (Exception $e) {
456 456
 			$success = FALSE;
457 457
 		}
458
-		$this->_redirect_after_action($success, __("Migration Crash Report", "event_espresso"), __("sent", "event_espresso"),array('success'=>$success,'action'=>'confirm_migration_crash_report_sent'));
458
+		$this->_redirect_after_action($success, __("Migration Crash Report", "event_espresso"), __("sent", "event_espresso"), array('success'=>$success, 'action'=>'confirm_migration_crash_report_sent'));
459 459
 	}
460 460
 
461 461
 
462 462
 
463
-	public function _confirm_migration_crash_report_sent(){
464
-		try{
463
+	public function _confirm_migration_crash_report_sent() {
464
+		try {
465 465
 			$most_recent_migration = EE_Data_Migration_Manager::instance()->get_last_ran_script(true);
466
-		}catch(EE_Error $e){
466
+		} catch (EE_Error $e) {
467 467
 
468 468
 			EE_Data_Migration_Manager::instance()->add_error_to_migrations_ran($e->getMessage());
469 469
 			//now, just so we can display the page correctly, make a error migration script stage object
@@ -471,14 +471,14 @@  discard block
 block discarded – undo
471 471
 			$most_recent_migration = new EE_DMS_Unknown_1_0_0();
472 472
 			$most_recent_migration->add_error($e->getMessage());
473 473
 		}
474
-		$success = $this->_req_data['success']=='1' ? true : false;
474
+		$success = $this->_req_data['success'] == '1' ? true : false;
475 475
 		$this->_template_args['success'] = $success;
476
-		$this->_template_args[ 'most_recent_migration' ] = $most_recent_migration;
476
+		$this->_template_args['most_recent_migration'] = $most_recent_migration;
477 477
 		$this->_template_args['reset_db_action_url'] = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'reset_db'), EE_MAINTENANCE_ADMIN_URL);
478
-		$this->_template_args[ 'reset_db_page_url' ] = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'data_reset'), EE_MAINTENANCE_ADMIN_URL);
479
-		$this->_template_args[ 'reattempt_action_url' ] = EE_Admin_Page::add_query_args_and_nonce( array( 'action' => 'reattempt_migration'), EE_MAINTENANCE_ADMIN_URL );
480
-		$this->_template_path = EE_MAINTENANCE_TEMPLATE_PATH . 'ee_confirm_migration_crash_report_sent.template.php';
481
-		$this->_template_args['admin_page_content'] = EEH_Template::display_template($this->_template_path,$this->_template_args,TRUE);
478
+		$this->_template_args['reset_db_page_url'] = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'data_reset'), EE_MAINTENANCE_ADMIN_URL);
479
+		$this->_template_args['reattempt_action_url'] = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'reattempt_migration'), EE_MAINTENANCE_ADMIN_URL);
480
+		$this->_template_path = EE_MAINTENANCE_TEMPLATE_PATH.'ee_confirm_migration_crash_report_sent.template.php';
481
+		$this->_template_args['admin_page_content'] = EEH_Template::display_template($this->_template_path, $this->_template_args, TRUE);
482 482
 		$this->display_admin_page_with_sidebar();
483 483
 	}
484 484
 
@@ -491,18 +491,18 @@  discard block
 block discarded – undo
491 491
 	 * @param boolean $nuke_old_ee4_data controls whether or not we
492 492
 	 * destroy the old ee4 data, or just try initializing ee4 default data
493 493
 	 */
494
-	public function _reset_db( $nuke_old_ee4_data = TRUE ){
494
+	public function _reset_db($nuke_old_ee4_data = TRUE) {
495 495
 		EE_Maintenance_Mode::instance()->set_maintenance_level(EE_Maintenance_Mode::level_0_not_in_maintenance);
496 496
 
497
-		if( $nuke_old_ee4_data ){
497
+		if ($nuke_old_ee4_data) {
498 498
 			EEH_Activation::delete_all_espresso_cpt_data();
499
-			EEH_Activation::delete_all_espresso_tables_and_data( FALSE );
499
+			EEH_Activation::delete_all_espresso_tables_and_data(FALSE);
500 500
 			EEH_Activation::remove_cron_tasks();
501 501
 		}
502 502
 		//make sure when we reset the registry's config that it
503 503
 		//switches to using the new singleton
504
-		EE_Registry::instance()->CFG = EE_Registry::instance()->CFG->reset( TRUE );
505
-		EE_System::instance()->initialize_db_if_no_migrations_required( TRUE );
504
+		EE_Registry::instance()->CFG = EE_Registry::instance()->CFG->reset(TRUE);
505
+		EE_System::instance()->initialize_db_if_no_migrations_required(TRUE);
506 506
 		EE_System::instance()->redirect_to_about_ee();
507 507
 	}
508 508
 
@@ -511,20 +511,20 @@  discard block
 block discarded – undo
511 511
 	/**
512 512
 	 * Deletes ALL EE tables, Records, and Options from the database.
513 513
 	 */
514
-	public function _delete_db(){
514
+	public function _delete_db() {
515 515
 		EE_Maintenance_Mode::instance()->set_maintenance_level(EE_Maintenance_Mode::level_0_not_in_maintenance);
516 516
 		EEH_Activation::delete_all_espresso_cpt_data();
517 517
 		EEH_Activation::delete_all_espresso_tables_and_data();
518 518
 		EEH_Activation::remove_cron_tasks();
519 519
 		EEH_Activation::deactivate_event_espresso();
520
-		wp_safe_redirect( admin_url( 'plugins.php' ));
520
+		wp_safe_redirect(admin_url('plugins.php'));
521 521
 		exit;
522 522
 	}
523 523
 
524 524
 	/**
525 525
 	 * sets up EE4 to rerun the migrations from ee3 to ee4
526 526
 	 */
527
-	public function _rerun_migration_from_ee3(){
527
+	public function _rerun_migration_from_ee3() {
528 528
 		EE_Maintenance_Mode::instance()->set_maintenance_level(EE_Maintenance_Mode::level_0_not_in_maintenance);
529 529
 		EEH_Activation::delete_all_espresso_cpt_data();
530 530
 		EEH_Activation::delete_all_espresso_tables_and_data(false);
@@ -551,9 +551,9 @@  discard block
 block discarded – undo
551 551
 		wp_enqueue_script('ee_admin_js');
552 552
 //		wp_enqueue_media();
553 553
 //		wp_enqueue_script('media-upload');
554
-		wp_enqueue_script('ee-maintenance',EE_MAINTENANCE_ASSETS_URL.'/ee-maintenance.js',array('jquery'),EVENT_ESPRESSO_VERSION,true);
554
+		wp_enqueue_script('ee-maintenance', EE_MAINTENANCE_ASSETS_URL.'/ee-maintenance.js', array('jquery'), EVENT_ESPRESSO_VERSION, true);
555 555
 
556
-		wp_register_style( 'espresso_maintenance', EE_MAINTENANCE_ASSETS_URL . 'ee-maintenance.css', array(), EVENT_ESPRESSO_VERSION );
556
+		wp_register_style('espresso_maintenance', EE_MAINTENANCE_ASSETS_URL.'ee-maintenance.css', array(), EVENT_ESPRESSO_VERSION);
557 557
 		wp_enqueue_style('espresso_maintenance');
558 558
 	}
559 559
 
Please login to merge, or discard this patch.
maintenance/templates/ee_confirm_migration_crash_report_sent.template.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -5,39 +5,39 @@  discard block
 block discarded – undo
5 5
 /** @type string $reset_db_action_url */
6 6
 /** @type EE_Data_Migration_Script_Base $most_recent_migration */
7 7
 ?>
8
-<?php if ( $success ) { ?>
9
-	<h1><?php _e( "Data Migration Report Sent", "event_espresso" ); ?></h1>
10
-	<p><?php _e( "A migration crash report email was sent to Event Espresso. You should hear back from us soon.", "event_espresso" ); ?></p>
8
+<?php if ($success) { ?>
9
+	<h1><?php _e("Data Migration Report Sent", "event_espresso"); ?></h1>
10
+	<p><?php _e("A migration crash report email was sent to Event Espresso. You should hear back from us soon.", "event_espresso"); ?></p>
11 11
 <?php } else {//didn't send email properly ?>
12
-	<h1><?php _e( "Migration Report not sent", "event_espresso" ); ?></h1>
13
-	<p><?php _e( "An error occurred and we were not able to automatically send a report to Event Espresso support.", "event_espresso" ); ?></p>
14
-	<p><?php printf( __( "Please copy-and-paste the system information below to %s", "event_espresso" ), '<a href="mailto:' . EE_SUPPORT_EMAIL . '">' .EE_SUPPORT_EMAIL . "</a>" ); ?></p>
12
+	<h1><?php _e("Migration Report not sent", "event_espresso"); ?></h1>
13
+	<p><?php _e("An error occurred and we were not able to automatically send a report to Event Espresso support.", "event_espresso"); ?></p>
14
+	<p><?php printf(__("Please copy-and-paste the system information below to %s", "event_espresso"), '<a href="mailto:'.EE_SUPPORT_EMAIL.'">'.EE_SUPPORT_EMAIL."</a>"); ?></p>
15 15
 	<label>
16
-		<?php _e( "system status info", "event_espresso" ); ?>
17
-		<textarea name="system_status_info" class="system_status_info"><?php print_r( EEM_System_Status::instance()->get_system_stati() ); ?></textarea>
16
+		<?php _e("system status info", "event_espresso"); ?>
17
+		<textarea name="system_status_info" class="system_status_info"><?php print_r(EEM_System_Status::instance()->get_system_stati()); ?></textarea>
18 18
 	</label>
19 19
 <?php } ?>
20 20
 
21 21
 
22
-<h1><?php _e( "What's next?", 'event_espresso' ); ?></h1>
23
-<p><?php _e( "Well, it depends on your situation:", 'event_espresso' ); ?></p>
22
+<h1><?php _e("What's next?", 'event_espresso'); ?></h1>
23
+<p><?php _e("Well, it depends on your situation:", 'event_espresso'); ?></p>
24 24
 <div class='ee-table-wrap'>
25 25
 	<table>
26 26
 		<thead>
27 27
 			<tr>
28
-				<th><?php _e( "Your Situation", 'event_espresso' ); ?></th>
29
-				<th><?php _e( "Suggested Action", 'event_espresso' ); ?></th>
28
+				<th><?php _e("Your Situation", 'event_espresso'); ?></th>
29
+				<th><?php _e("Suggested Action", 'event_espresso'); ?></th>
30 30
 			</tr>
31 31
 		</thead>
32 32
 		<tbody>
33 33
 			<tr>
34
-				<td><p class='big-text'><?php _e( "I want to retry migrating my data", 'event_espresso' ); ?></p></td>
34
+				<td><p class='big-text'><?php _e("I want to retry migrating my data", 'event_espresso'); ?></p></td>
35 35
 				<td>
36 36
 					<p>
37 37
 						<?php
38 38
 						printf(
39
-							__( 'First, %1$s check the forums %2$s to see if there is a solution before re-attempting to migrate. Often it helps to deactivate other plugins which may have conflicts; or it may help to add %3$s to your %4$s wp-config.php%5$s (which will make the migrations run slower, but may resolve any memory exhaustion errors.', 'event_espresso' ),
40
-							"<a href='" . EE_SUPPORT_EMAIL . "' target='_blank'>",
39
+							__('First, %1$s check the forums %2$s to see if there is a solution before re-attempting to migrate. Often it helps to deactivate other plugins which may have conflicts; or it may help to add %3$s to your %4$s wp-config.php%5$s (which will make the migrations run slower, but may resolve any memory exhaustion errors.', 'event_espresso'),
40
+							"<a href='".EE_SUPPORT_EMAIL."' target='_blank'>",
41 41
 							'</a>',
42 42
 							'<pre lang="php">define( EE_MIGRATION_STEP_SIZE, 10 );</pre>',
43 43
 							'<b>',
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 					<p>
50 50
 						<?php
51 51
 						printf(
52
-							__( 'To retry migrating your data: restore to the backup you made before the migration and reactivate EE (and any addons you are using) and re-run the migration scripts. If you did not make a database migration and are migrating from EE3: delete your EE4 data (use the %1$s Reset/Delete Data tab above%2$s), and then reactivate EE4, and then re-run the migration scripts. If you did not make a database backup, are not migrating from EE3, have found a solution to the fatal error you received, and are willing to possibly have some data lost, %3$sattempt to continue migrating%2$s.', 'event_espresso' ),
52
+							__('To retry migrating your data: restore to the backup you made before the migration and reactivate EE (and any addons you are using) and re-run the migration scripts. If you did not make a database migration and are migrating from EE3: delete your EE4 data (use the %1$s Reset/Delete Data tab above%2$s), and then reactivate EE4, and then re-run the migration scripts. If you did not make a database backup, are not migrating from EE3, have found a solution to the fatal error you received, and are willing to possibly have some data lost, %3$sattempt to continue migrating%2$s.', 'event_espresso'),
53 53
 							"<a href='$reset_db_page_url'>",
54 54
 							"</a>",
55 55
 							"<a class='button-primary' href='$reattempt_action_url'>"
@@ -60,13 +60,13 @@  discard block
 block discarded – undo
60 60
 			</tr>
61 61
 			<tr>
62 62
 				<td>
63
-					<p class='big-text'><?php _e( "I want to hear from Support before proceeding", 'event_espresso' ); ?></p>
63
+					<p class='big-text'><?php _e("I want to hear from Support before proceeding", 'event_espresso'); ?></p>
64 64
 				</td>
65 65
 				<td>
66 66
 					<?php
67 67
 					printf(
68
-						__( 'Just make sure you\'ve %1$s checked for a solution in the forums,%2$s and properly contacted Support. We will get back to you as soon as possible', 'event_espresso' ),
69
-						"<a href='" . EE_SUPPORT_EMAIL . "'>",
68
+						__('Just make sure you\'ve %1$s checked for a solution in the forums,%2$s and properly contacted Support. We will get back to you as soon as possible', 'event_espresso'),
69
+						"<a href='".EE_SUPPORT_EMAIL."'>",
70 70
 						"</a>"
71 71
 					);
72 72
 					?>
@@ -74,12 +74,12 @@  discard block
 block discarded – undo
74 74
 			</tr>
75 75
 			<tr>
76 76
 				<td>
77
-					<p class='big-text'><?php printf( __( 'I don\'t need my old EE %s data', 'event_espresso' ), $most_recent_migration->slug() ); ?></p>
77
+					<p class='big-text'><?php printf(__('I don\'t need my old EE %s data', 'event_espresso'), $most_recent_migration->slug()); ?></p>
78 78
 				</td>
79 79
 				<td>
80 80
 					<?php
81 81
 					printf(
82
-						__( 'If you are ok with losing all the EE %1$s data, you can skip the migrations and %2$s use EE4 with only default Data%3$s', 'event_espresso' ),
82
+						__('If you are ok with losing all the EE %1$s data, you can skip the migrations and %2$s use EE4 with only default Data%3$s', 'event_espresso'),
83 83
 						$most_recent_migration->slug(),
84 84
 						"<a id='do-not-migrate' class='do-not-migrate button-primary' href='$reset_db_action_url'>",
85 85
 						"</a>"
@@ -89,20 +89,20 @@  discard block
 block discarded – undo
89 89
 			</tr>
90 90
 			<tr>
91 91
 				<td>
92
-					<p class='big-text'><?php printf( __( 'I want to go back to my old version of EE %1$s', 'event_espresso' ), $most_recent_migration->slug() ); ?>
92
+					<p class='big-text'><?php printf(__('I want to go back to my old version of EE %1$s', 'event_espresso'), $most_recent_migration->slug()); ?>
93 93
 				</td>
94 94
 				<td>
95 95
 					<p>
96 96
 					<?php
97 97
 					printf(
98
-						__( 'Then we suggest you re-activate the old version of EE %3$s and restore your database to the backup you made just before migrating . If you didn\'t backup your database and are migrating from EE3, you can also delete your EE4 data (use on the %1$s"Reset/Delete Data" tab above%2$s), and then reactivate EE3 from the plugins page. Note: some of your EE3 shortcodes may have been changed to their EE4 equivalents, so you will need to change them back.', 'event_espresso' ),
98
+						__('Then we suggest you re-activate the old version of EE %3$s and restore your database to the backup you made just before migrating . If you didn\'t backup your database and are migrating from EE3, you can also delete your EE4 data (use on the %1$s"Reset/Delete Data" tab above%2$s), and then reactivate EE3 from the plugins page. Note: some of your EE3 shortcodes may have been changed to their EE4 equivalents, so you will need to change them back.', 'event_espresso'),
99 99
 						"<a href='$reset_db_page_url'>",
100 100
 						"</a>",
101 101
 						$most_recent_migration->slug()
102 102
 					);
103 103
 					?>
104 104
 					</p>
105
-					<p><?php _e( "If you ever decide to re-attempt using EE4, you will again be given the option to migrate your EE3 data or not.", 'event_espresso' ); ?></p>
105
+					<p><?php _e("If you ever decide to re-attempt using EE4, you will again be given the option to migrate your EE3 data or not.", 'event_espresso'); ?></p>
106 106
 				</td>
107 107
 			</tr>
108 108
 
Please login to merge, or discard this patch.
admin_pages/maintenance/templates/ee_migration_page.template.php 1 patch
Spacing   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@  discard block
 block discarded – undo
16 16
  * @type string $reset_db_page_link
17 17
  */
18 18
 
19
-if ( $show_backup_db_text ) { ?>
20
-<h1><span class="dashicons dashicons-migrate"></span><?php _e("Database Migration Manager", "event_espresso");?></h1>
19
+if ($show_backup_db_text) { ?>
20
+<h1><span class="dashicons dashicons-migrate"></span><?php _e("Database Migration Manager", "event_espresso"); ?></h1>
21 21
 <?php } ?>
22 22
 <div class="padding">
23 23
 	<div id="migration-prep">
24 24
 
25
- 		<?php if ( $script_names ) { ?>
25
+ 		<?php if ($script_names) { ?>
26 26
  			<h3 class="espresso-header">
27 27
  				<span class="dashicons dashicons-flag ee-icon-size-22"></span>
28 28
  				<?php
@@ -39,34 +39,34 @@  discard block
 block discarded – undo
39 39
 				?>
40 40
  			</h3>
41 41
  			<p>
42
- 			<?php echo apply_filters('FHEE__ee_migration_page__p_after_header',sprintf(__("Since you have already been using Event Espresso and have previous event and registration data in your database, you have the option to migrate, or copy over, this existing data into a format that is compatible with %s.", "event_espresso"),$next_db_state),$next_db_state);?>
42
+ 			<?php echo apply_filters('FHEE__ee_migration_page__p_after_header', sprintf(__("Since you have already been using Event Espresso and have previous event and registration data in your database, you have the option to migrate, or copy over, this existing data into a format that is compatible with %s.", "event_espresso"), $next_db_state), $next_db_state); ?>
43 43
  			</p>
44
- 		<?php } elseif ( $show_most_recent_migration ) { ?>
44
+ 		<?php } elseif ($show_most_recent_migration) { ?>
45 45
  			 <h3 class="espresso-header">
46 46
  			 	<span class="dashicons dashicons-awards ee-icon-size-22"></span>
47
- 				 <?php echo apply_filters('FHEE__ee_migration_page__done_migration_header',sprintf(__('Congratulations! Your database is "up-to-date" and you are ready to begin using %s', "event_espresso"),$ultimate_db_state));?>
47
+ 				 <?php echo apply_filters('FHEE__ee_migration_page__done_migration_header', sprintf(__('Congratulations! Your database is "up-to-date" and you are ready to begin using %s', "event_espresso"), $ultimate_db_state)); ?>
48 48
  			 </h3>
49 49
  			 <p>
50
- 			 	<?php echo apply_filters('FHEE__ee_migration_page__p_after_done_migration_header',sprintf(__("Time to find out about all the great new features %s has to offer.", "event_espresso"),$ultimate_db_state));?> &nbsp;
51
- 			 	<b><a id="get-started-after-migrate" class="button-primary" href="<?php echo add_query_arg( array( 'page' => 'espresso_about' ), admin_url( 'admin.php' )); ?>">
52
- 			 		<?php _e("Let's Get Started", "event_espresso");?>&nbsp;<span class="dashicons dashicons-arrow-right ee-icon-size-22" style="margin:0;"></span>
50
+ 			 	<?php echo apply_filters('FHEE__ee_migration_page__p_after_done_migration_header', sprintf(__("Time to find out about all the great new features %s has to offer.", "event_espresso"), $ultimate_db_state)); ?> &nbsp;
51
+ 			 	<b><a id="get-started-after-migrate" class="button-primary" href="<?php echo add_query_arg(array('page' => 'espresso_about'), admin_url('admin.php')); ?>">
52
+ 			 		<?php _e("Let's Get Started", "event_espresso"); ?>&nbsp;<span class="dashicons dashicons-arrow-right ee-icon-size-22" style="margin:0;"></span>
53 53
  			 	</a></b>
54 54
  			 </p>
55 55
  		<?php } ?>
56 56
 
57 57
 
58
-		<?php if ($show_backup_db_text){ ?>
58
+		<?php if ($show_backup_db_text) { ?>
59 59
 		<div id="migration-options-dv">
60 60
 			<h2>
61 61
 				<span class="dashicons dashicons-admin-tools"></span>
62
-				<?php _e("Migration Options", "event_espresso");?>
63
-				<span class="tiny-text lt-grey-text"> &nbsp; <?php _e(' to migrate or not to migrate?', "event_espresso");?></span>
62
+				<?php _e("Migration Options", "event_espresso"); ?>
63
+				<span class="tiny-text lt-grey-text"> &nbsp; <?php _e(' to migrate or not to migrate?', "event_espresso"); ?></span>
64 64
 			</h2>
65 65
 			<div class="ee-table-wrap">
66 66
 				<table>
67 67
 					<tbody>
68 68
 						<tr>
69
-							<td><h3><?php _e('1', 'event_espresso');?></h3></td>
69
+							<td><h3><?php _e('1', 'event_espresso'); ?></h3></td>
70 70
 							<td>
71 71
 								<?php
72 72
 								echo apply_filters(
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 									__('%1$sYes. I have backed up my database%2$s, %3$sunderstand the risks involved%4$s, and am ready to migrate my existing %5$s data to %6$s.', "event_espresso"),
76 76
 									'<strong>',
77 77
 									'</strong>',
78
-									'<a id="migration-risks" class="" title="' . esc_attr__('click for more details', "event_espresso") . '">',
78
+									'<a id="migration-risks" class="" title="'.esc_attr__('click for more details', "event_espresso").'">',
79 79
 									'</a>',
80 80
 										$current_db_state,
81 81
 										$next_db_state
@@ -84,18 +84,18 @@  discard block
 block discarded – undo
84 84
 									$next_db_state
85 85
 								);
86 86
 								?>
87
-								<a id="display-migration-details" class="display-the-hidden lt-grey-text smaller-text hide-if-no-js" rel="migration-details" ><?php _e('click for more details', "event_espresso");?>&nbsp;+</a>
88
-								<a  id="hide-migration-details" class="hide-the-displayed lt-grey-text smaller-text hide-if-no-js"  rel="migration-details" style="display:none;" ><?php echo sprintf( __( 'hide%1$sdetails%1$s-', 'event_espresso' ), '&nbsp;' ); ?></a>
87
+								<a id="display-migration-details" class="display-the-hidden lt-grey-text smaller-text hide-if-no-js" rel="migration-details" ><?php _e('click for more details', "event_espresso"); ?>&nbsp;+</a>
88
+								<a  id="hide-migration-details" class="hide-the-displayed lt-grey-text smaller-text hide-if-no-js"  rel="migration-details" style="display:none;" ><?php echo sprintf(__('hide%1$sdetails%1$s-', 'event_espresso'), '&nbsp;'); ?></a>
89 89
 							</td>
90 90
 							<td>
91
-								<a id="db-backed-up" class="toggle-migration-monitor button-primary"><?php echo apply_filters('FHEE__ee_migration_page__option_1_button_text',sprintf(__("Migrate My %s Data to %s", "event_espresso"),$current_db_state,$next_db_state),$current_db_state,$next_db_state);?></a>
91
+								<a id="db-backed-up" class="toggle-migration-monitor button-primary"><?php echo apply_filters('FHEE__ee_migration_page__option_1_button_text', sprintf(__("Migrate My %s Data to %s", "event_espresso"), $current_db_state, $next_db_state), $current_db_state, $next_db_state); ?></a>
92 92
 							</td>
93 93
 						</tr>
94 94
 						<tr>
95 95
 							<td colspan="3" style="padding: 0">
96 96
 								<div id="migration-details-dv" style="display: none; padding: 1em;">
97 97
 
98
-									<span class="reminder-spn"><?php printf(__("%s Important: %s Before migrating, please back up your database and files.", "event_espresso"),"<b>","</b>");?></span>
98
+									<span class="reminder-spn"><?php printf(__("%s Important: %s Before migrating, please back up your database and files.", "event_espresso"), "<b>", "</b>"); ?></span>
99 99
 									<p>
100 100
 									<?php
101 101
 										printf(
@@ -111,27 +111,27 @@  discard block
 block discarded – undo
111 111
 										);
112 112
 									?>
113 113
 									</p>
114
-									<?php do_action('AHEE__ee_migration_page__option_1_extra_details');?>
114
+									<?php do_action('AHEE__ee_migration_page__option_1_extra_details'); ?>
115 115
 								</div>
116 116
 							</td>
117 117
 						</tr>
118 118
 						<tr>
119
-							<td><h3><?php _e('2', 'event_espresso');?></h3></td>
119
+							<td><h3><?php _e('2', 'event_espresso'); ?></h3></td>
120 120
 							<td>
121
-								<?php echo apply_filters( 'FHEE__ee_migration_page__option_2_main',sprintf(__('I do NOT want to migrate my %1$s data to %2$s at this time and just want to use %3$s without migrating data.', "event_espresso"),$current_db_state,$next_db_state,$ultimate_db_state),$current_db_state,$next_db_state,$ultimate_db_state);?><br />
122
-								<span class="reminder-spn"><?php _e( 'Please Note: In order to avoid errors, any existing Event Espresso data (events, ticket, registrations, etc) in your db will be erased! Regular WP data will NOT be affected.', 'event_espresso' );?></span>
123
-								<a id="display-no-migration-details" class="display-the-hidden lt-grey-text smaller-text hide-if-no-js" rel="no-migration-details"><?php _e('click for more details', "event_espresso");?>&nbsp;+</a>
124
-								<a  id="hide-no-migration-details" class="hide-the-displayed lt-grey-text smaller-text hide-if-no-js"  rel="no-migration-details" style="display:none;" ><?php echo sprintf( __( 'hide%1$sdetails%1$s-', 'event_espresso' ), '&nbsp;' ); ?></a>
121
+								<?php echo apply_filters('FHEE__ee_migration_page__option_2_main', sprintf(__('I do NOT want to migrate my %1$s data to %2$s at this time and just want to use %3$s without migrating data.', "event_espresso"), $current_db_state, $next_db_state, $ultimate_db_state), $current_db_state, $next_db_state, $ultimate_db_state); ?><br />
122
+								<span class="reminder-spn"><?php _e('Please Note: In order to avoid errors, any existing Event Espresso data (events, ticket, registrations, etc) in your db will be erased! Regular WP data will NOT be affected.', 'event_espresso'); ?></span>
123
+								<a id="display-no-migration-details" class="display-the-hidden lt-grey-text smaller-text hide-if-no-js" rel="no-migration-details"><?php _e('click for more details', "event_espresso"); ?>&nbsp;+</a>
124
+								<a  id="hide-no-migration-details" class="hide-the-displayed lt-grey-text smaller-text hide-if-no-js"  rel="no-migration-details" style="display:none;" ><?php echo sprintf(__('hide%1$sdetails%1$s-', 'event_espresso'), '&nbsp;'); ?></a>
125 125
 							</td>
126 126
 							<td>
127
-								<a id="do-not-migrate" class="do-not-migrate button-primary" href="<?php echo $reset_db_page_link;?>"><?php echo apply_filters('FHEE__ee_migration_page__option_2_button_text',sprintf(__("Just Start %s and Delete Existing Data", "event_espresso"),$ultimate_db_state),$ultimate_db_state);?></a>
127
+								<a id="do-not-migrate" class="do-not-migrate button-primary" href="<?php echo $reset_db_page_link; ?>"><?php echo apply_filters('FHEE__ee_migration_page__option_2_button_text', sprintf(__("Just Start %s and Delete Existing Data", "event_espresso"), $ultimate_db_state), $ultimate_db_state); ?></a>
128 128
 							</td>
129 129
 						</tr>
130 130
 						<tr>
131 131
 							<td colspan="3" style="padding: 0">
132 132
 								<div id="no-migration-details-dv" style="display: none; padding: 1em;">
133 133
 									<p>
134
-									<?php echo apply_filters('FHEE__ee_migration_page__option_2_details',sprintf(__("If your existing Event and Registration Data is no longer relevant nor required, you can just start up %s without performing a data migration.", "event_espresso"),$ultimate_db_state),$ultimate_db_state);?>
134
+									<?php echo apply_filters('FHEE__ee_migration_page__option_2_details', sprintf(__("If your existing Event and Registration Data is no longer relevant nor required, you can just start up %s without performing a data migration.", "event_espresso"), $ultimate_db_state), $ultimate_db_state); ?>
135 135
 									</p>
136 136
 								</div>
137 137
 							</td>
@@ -139,20 +139,20 @@  discard block
 block discarded – undo
139 139
 					</tbody>
140 140
 				</table>
141 141
 			</div>
142
-			<?php do_action('AHEE__ee_migration_page__after_migration_options_table');?>
142
+			<?php do_action('AHEE__ee_migration_page__after_migration_options_table'); ?>
143 143
 		</div>
144 144
 	<?php } ?>
145 145
 
146 146
 	<?php
147
-		if ( $show_most_recent_migration ) {
148
-			if( $most_recent_migration && $most_recent_migration instanceof EE_Data_Migration_Script_Base ) {
149
-				if( $most_recent_migration->can_continue() ) {
147
+		if ($show_most_recent_migration) {
148
+			if ($most_recent_migration && $most_recent_migration instanceof EE_Data_Migration_Script_Base) {
149
+				if ($most_recent_migration->can_continue()) {
150 150
 					//tell the user they should continue their migration because it appears to be unfinished... well, assuming there were no errors ?>
151 151
 					<h3 class="espresso-header">
152 152
 						<span class="dashicons dashicons-star-half ee-icon-size-22"></span>
153
-						<?php printf(__("It appears that your previous Data Migration Task (%s) is incomplete, and should be resumed", "event_espresso"),$most_recent_migration->pretty_name());?>
153
+						<?php printf(__("It appears that your previous Data Migration Task (%s) is incomplete, and should be resumed", "event_espresso"), $most_recent_migration->pretty_name()); ?>
154 154
 					</h3>
155
-			<?php } elseif ( $most_recent_migration->is_broken() ) {
155
+			<?php } elseif ($most_recent_migration->is_broken()) {
156 156
 					//tell the user the migration failed and they should notify EE?>
157 157
 					<h3 class="espresso-header">
158 158
 						<span class="dashicons dashicons-no ee-icon-size-22"></span>
@@ -161,19 +161,19 @@  discard block
 block discarded – undo
161 161
 			<?php }
162 162
 
163 163
 				//display errors or not of the most recent migration ran
164
-				if ( $most_recent_migration->get_errors() ){ ?>
164
+				if ($most_recent_migration->get_errors()) { ?>
165 165
 					<div class="ee-attention">
166
-						<strong><?php printf(__("Warnings occurred during your last migration (%s):",'event_espresso'),$most_recent_migration->pretty_name()) ?></strong>
167
-						<a id="show-hide-migration-warnings" class="display-the-hidden"><?php _e("Show Warnings", 'event_espresso');?></a>
166
+						<strong><?php printf(__("Warnings occurred during your last migration (%s):", 'event_espresso'), $most_recent_migration->pretty_name()) ?></strong>
167
+						<a id="show-hide-migration-warnings" class="display-the-hidden"><?php _e("Show Warnings", 'event_espresso'); ?></a>
168 168
 						<ul class="migration-warnings" style="display:none">
169
-						<?php foreach($most_recent_migration->get_errors() as $error){ ?>
169
+						<?php foreach ($most_recent_migration->get_errors() as $error) { ?>
170 170
 							<li><?php echo $error ?></li>
171 171
 						<?php }?>
172 172
 						</ul>
173 173
 					</div>
174 174
 				<?php } else {
175 175
 					//there were no errors during the last migration, just say so?>
176
-					<h2><?php printf(__("The last data migration task (%s) ran successfully without errors.", "event_espresso"),$most_recent_migration->pretty_name())?></h2>
176
+					<h2><?php printf(__("The last data migration task (%s) ran successfully without errors.", "event_espresso"), $most_recent_migration->pretty_name())?></h2>
177 177
 				<?php }
178 178
 				} else {
179 179
 			}
@@ -184,12 +184,12 @@  discard block
 block discarded – undo
184 184
 	</div>
185 185
 	<!--end of #migration-prep-->
186 186
 
187
-	<?php if ($show_migration_progress){?>
187
+	<?php if ($show_migration_progress) {?>
188 188
 	<div id='migration-monitor' <?php echo $show_backup_db_text ? "style='display:none'" : ''?>>
189
-		<?php if( $show_backup_db_text){?>
189
+		<?php if ($show_backup_db_text) {?>
190 190
 		<p>
191 191
 			<a class="toggle-migration-monitor small-text" style="cursor: pointer;">
192
-				<span class="dashicons dashicons-arrow-left-alt2" style="top:0;"></span><?php _e("return to previous screen", "event_espresso");?>
192
+				<span class="dashicons dashicons-arrow-left-alt2" style="top:0;"></span><?php _e("return to previous screen", "event_espresso"); ?>
193 193
 			</a>
194 194
 			<br/>
195 195
 
@@ -198,33 +198,33 @@  discard block
 block discarded – undo
198 198
 		<div id='progress-area'>
199 199
 			<h3 class="espresso-header">
200 200
 				<?php
201
-				echo  sprintf( _n(
201
+				echo  sprintf(_n(
202 202
 					"In order to import all of your existing Event Espresso data, the following upgrade task needs to be performed:",
203 203
 					"In order to import all of your existing Event Espresso data, the following %s upgrade tasks need to be performed:",
204 204
 					count($script_names),
205 205
 					"event_espresso"
206
-				), count( $script_names ) );?>
206
+				), count($script_names)); ?>
207 207
 			</h3>
208 208
 			<ul style="list-style: inside;">
209
-				<?php foreach($script_names as $script_name){?>
209
+				<?php foreach ($script_names as $script_name) {?>
210 210
 				<li style="margin: 0 0 1em 1em; line-height: 1.1em;"><?php echo $script_name?></li>
211 211
 				<?php }?>
212 212
 			</ul>
213 213
 			<br/>
214 214
 			<?php if (count($script_names) > 1) {?>
215
-			<p><?php _e("Please note: after each task is completed you will need to continue the data migration, or report an error to Event Espresso.", "event_espresso");?></p>
215
+			<p><?php _e("Please note: after each task is completed you will need to continue the data migration, or report an error to Event Espresso.", "event_espresso"); ?></p>
216 216
 			<?php }?>
217 217
 
218 218
 			<div class="ee-attention">
219 219
 				<p>
220 220
 					<span class="reminder-spn">
221
-						<strong><?php _e("Please Note:", "event_espresso");?></strong>
221
+						<strong><?php _e("Please Note:", "event_espresso"); ?></strong>
222 222
 					</span>
223 223
 					<br/>
224
-					<?php _e("Depending on the number of events and the complexity of the information in your database, this could take a few minutes.", "event_espresso");?>
224
+					<?php _e("Depending on the number of events and the complexity of the information in your database, this could take a few minutes.", "event_espresso"); ?>
225 225
 				</p>
226 226
 				<p>
227
-					<?php printf(__("%sPlease be patient and do NOT navigate away from this page once the migration has begun%s. If any issues arise due to existing malformed data, an itemized report will be made available to you after the migration has completed.", "event_espresso"),'<strong>', '</strong>' );?>
227
+					<?php printf(__("%sPlease be patient and do NOT navigate away from this page once the migration has begun%s. If any issues arise due to existing malformed data, an itemized report will be made available to you after the migration has completed.", "event_espresso"), '<strong>', '</strong>'); ?>
228 228
 				</p>
229 229
 				<p>
230 230
 					<?php _e("Click the button below to begin the migration process.", "event_espresso") ?>
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 			<!-- #progress-responsive -->
240 240
 
241 241
 			<button id='start-migration' class='button-primary'>
242
-				<?php echo $show_continue_current_migration_script ? __("Continue Migration", "event_espresso") : __("Begin Migration", "event_espresso");?>
242
+				<?php echo $show_continue_current_migration_script ? __("Continue Migration", "event_espresso") : __("Begin Migration", "event_espresso"); ?>
243 243
 			</button>
244 244
 			<br class="clear"/>
245 245
 
@@ -255,9 +255,9 @@  discard block
 block discarded – undo
255 255
 	</div>
256 256
 
257 257
 <?php }
258
-	   if ( $show_maintenance_switch ) {
258
+	   if ($show_maintenance_switch) {
259 259
  ?>
260
-	<h2><span class="dashicons dashicons-admin-tools"></span><?php  _e('Set Event Espresso Maintenance Mode', 'event_espresso');?></h2>
260
+	<h2><span class="dashicons dashicons-admin-tools"></span><?php  _e('Set Event Espresso Maintenance Mode', 'event_espresso'); ?></h2>
261 261
    	<form method='post' action='<?php echo $update_migration_script_page_link?>'>
262 262
 		<div class="ee-table-wrap">
263 263
 			<table>
@@ -266,9 +266,9 @@  discard block
 block discarded – undo
266 266
 						<input type="radio" id="maintenance_mode_level_off" name="maintenance_mode_level" value="0" <?php echo EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_0_not_in_maintenance ? 'checked="checked"' : ''?>>
267 267
 					</td>
268 268
 					<th align="left">
269
-						<label for="maintenance_mode_level_off"><?php  _e('Maintenance Mode OFF', 'event_espresso');?></label>
269
+						<label for="maintenance_mode_level_off"><?php  _e('Maintenance Mode OFF', 'event_espresso'); ?></label>
270 270
 				   		<p class='description' style="font-weight: normal;">
271
-					   		<?php _e("This is the normal operating mode for Event Espresso and allows all functionality to be viewed by all site visitors.", "event_espresso");?>
271
+					   		<?php _e("This is the normal operating mode for Event Espresso and allows all functionality to be viewed by all site visitors.", "event_espresso"); ?>
272 272
 				   		</p>
273 273
 					</th>
274 274
 				</tr>
@@ -281,14 +281,14 @@  discard block
 block discarded – undo
281 281
 							<?php  _e('Maintenance Mode ON', 'event_espresso')?>
282 282
 						</label>
283 283
 				   		<p class='description' style="font-weight: normal;">
284
-					   		<?php _e("This disables Event Espresso frontend functionality for all site visitors that are not administrators, and allows you to configure and/or test things on the frontend of your website before others can see.", "event_espresso");?>
284
+					   		<?php _e("This disables Event Espresso frontend functionality for all site visitors that are not administrators, and allows you to configure and/or test things on the frontend of your website before others can see.", "event_espresso"); ?>
285 285
 				   		</p>
286 286
 					</th>
287 287
 				</tr>
288 288
 			</table>
289 289
 		</div>
290 290
 		<p>
291
-   			<input type='submit' class="button-primary" value='<?php _e("Update Maintenance Mode", "event_espresso");?>'>
291
+   			<input type='submit' class="button-primary" value='<?php _e("Update Maintenance Mode", "event_espresso"); ?>'>
292 292
    		</p>
293 293
    	</form>
294 294
 	   	<?php
Please login to merge, or discard this patch.
admin_pages/maintenance/templates/ee_migration_was_borked_page.template.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 ?>
4
-<h1><?php _e("Data Migration Error", "event_espresso");?></h1>
5
-<p class='error'><?php printf(__("Your last data migration had a %s FATAL ERROR, and CANNOT be continued%s.", "event_espresso"),"<b>","</b>");?></p>
6
-<a id="show-hide-migration-warnings" class="display-the-hidden"><?php _e("Show Errors", 'event_espresso');?></a>
4
+<h1><?php _e("Data Migration Error", "event_espresso"); ?></h1>
5
+<p class='error'><?php printf(__("Your last data migration had a %s FATAL ERROR, and CANNOT be continued%s.", "event_espresso"), "<b>", "</b>"); ?></p>
6
+<a id="show-hide-migration-warnings" class="display-the-hidden"><?php _e("Show Errors", 'event_espresso'); ?></a>
7 7
 <ul class="migration-warnings" style="display:none">
8
-<?php foreach($most_recent_migration->get_errors() as $error){ ?>
8
+<?php foreach ($most_recent_migration->get_errors() as $error) { ?>
9 9
 	<li><?php echo $error ?></li>
10 10
 <?php }?>
11 11
 </ul>
12
-<h2><?php _e("Fill out the below form to automatically Send Event Espresso a Crash Report", "event_espresso");?></h2>
13
-<form action='<?php echo EE_Admin_Page::add_query_args_and_nonce(array('action'=>'send_migration_crash_report'), EE_MAINTENANCE_ADMIN_URL);?>' method='post'>
12
+<h2><?php _e("Fill out the below form to automatically Send Event Espresso a Crash Report", "event_espresso"); ?></h2>
13
+<form action='<?php echo EE_Admin_Page::add_query_args_and_nonce(array('action'=>'send_migration_crash_report'), EE_MAINTENANCE_ADMIN_URL); ?>' method='post'>
14 14
 	<table class='widefat'>
15
-		<tr><td><label for='from'><?php _e("From/Reply-To:", "event_espresso");?></label></td><td><input name='from' id='from' type='text' style="width:200px"value='<?php echo get_bloginfo('admin_email','display'); ?>'></td></tr>
16
-		<tr><td><label for='from_name'><?php _e("Your Name", "event_espresso");?></label></td><td><input name='from_name' id='from_name' type='text' style="width:200px"value='<?php printf(__("Admin of %s", "event_espresso"),get_bloginfo('name','display'));?>'></td></tr>
17
-		<tr><td><label for='body'><?php _e("Comments", "event_espresso");?></label></td><td><textarea name="body" id="body" class='system_status_info'><?php _e("Enter any comments about why you think the error may have occurred", "event_espresso");?></textarea>
18
-			<p class='description'><?php _e("Note: the System Information report will also be added to the email's body, which contains information about your Event Espresso, Wordpress, and PHP settings which can be helpful in debugging the problem.", "event_espresso");?></p></td></tr>
19
-		<tr><td colspan="2"><input type="submit" value="<?php _e("Mail Crash Report to Event Espresso", "event_espresso");?>"/></td></tr>
15
+		<tr><td><label for='from'><?php _e("From/Reply-To:", "event_espresso"); ?></label></td><td><input name='from' id='from' type='text' style="width:200px"value='<?php echo get_bloginfo('admin_email', 'display'); ?>'></td></tr>
16
+		<tr><td><label for='from_name'><?php _e("Your Name", "event_espresso"); ?></label></td><td><input name='from_name' id='from_name' type='text' style="width:200px"value='<?php printf(__("Admin of %s", "event_espresso"), get_bloginfo('name', 'display')); ?>'></td></tr>
17
+		<tr><td><label for='body'><?php _e("Comments", "event_espresso"); ?></label></td><td><textarea name="body" id="body" class='system_status_info'><?php _e("Enter any comments about why you think the error may have occurred", "event_espresso"); ?></textarea>
18
+			<p class='description'><?php _e("Note: the System Information report will also be added to the email's body, which contains information about your Event Espresso, Wordpress, and PHP settings which can be helpful in debugging the problem.", "event_espresso"); ?></p></td></tr>
19
+		<tr><td colspan="2"><input type="submit" value="<?php _e("Mail Crash Report to Event Espresso", "event_espresso"); ?>"/></td></tr>
20 20
 	</table>
21 21
 </form>
22 22
 <br>
23
-<p><?php printf(__('...or copy-and-paste the below information to %1$s %2$s %3$s', "event_espresso"),'<a href="mailto:'.EE_SUPPORT_EMAIL.'">',EE_SUPPORT_EMAIL,"</a>");?></p>
24
-<textarea class="system_status_info"><?php print_r( EEM_System_Status::instance()->get_system_stati())?></textarea>
25
-<p><?php printf( __( '%1$sNext Step%2$s', 'event_espresso' ), "<a href='$next_url'>","</a>");?></p>
26
-<p><?php printf( __( '...or %1$sDON\'T send migration crash report%2$s.', 'event_espresso' ), "<a href='$next_url'>","</a>");?></p>
23
+<p><?php printf(__('...or copy-and-paste the below information to %1$s %2$s %3$s', "event_espresso"), '<a href="mailto:'.EE_SUPPORT_EMAIL.'">', EE_SUPPORT_EMAIL, "</a>"); ?></p>
24
+<textarea class="system_status_info"><?php print_r(EEM_System_Status::instance()->get_system_stati())?></textarea>
25
+<p><?php printf(__('%1$sNext Step%2$s', 'event_espresso'), "<a href='$next_url'>", "</a>"); ?></p>
26
+<p><?php printf(__('...or %1$sDON\'T send migration crash report%2$s.', 'event_espresso'), "<a href='$next_url'>", "</a>"); ?></p>
Please login to merge, or discard this patch.