Completed
Branch dev (77ab2a)
by
unknown
42:03 queued 31:35
created
languages/event_espresso-translations-js.php 1 patch
Spacing   +490 added lines, -490 removed lines patch added patch discarded remove patch
@@ -2,226 +2,226 @@  discard block
 block discarded – undo
2 2
 /* THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY. */
3 3
 $generated_i18n_strings = array(
4 4
 	// Reference: packages/ui-components/src/Pagination/constants.ts:6
5
-	__( '2', 'event_espresso' ),
5
+	__('2', 'event_espresso'),
6 6
 
7 7
 	// Reference: packages/ui-components/src/Pagination/constants.ts:7
8
-	__( '6', 'event_espresso' ),
8
+	__('6', 'event_espresso'),
9 9
 
10 10
 	// Reference: packages/ui-components/src/Pagination/constants.ts:8
11
-	__( '12', 'event_espresso' ),
11
+	__('12', 'event_espresso'),
12 12
 
13 13
 	// Reference: packages/ui-components/src/Pagination/constants.ts:9
14
-	__( '24', 'event_espresso' ),
14
+	__('24', 'event_espresso'),
15 15
 
16 16
 	// Reference: packages/ui-components/src/Pagination/constants.ts:10
17
-	__( '48', 'event_espresso' ),
17
+	__('48', 'event_espresso'),
18 18
 
19 19
 	// Reference: domains/blocks/src/components/AvatarImage.tsx:27
20
-	__( 'contact avatar', 'event_espresso' ),
20
+	__('contact avatar', 'event_espresso'),
21 21
 
22 22
 	// Reference: domains/blocks/src/components/OrderByControl.tsx:12
23
-	__( 'Order by', 'event_espresso' ),
23
+	__('Order by', 'event_espresso'),
24 24
 
25 25
 	// Reference: domains/blocks/src/components/RegStatusControl.tsx:17
26 26
 	// Reference: domains/blocks/src/event-attendees/controls/SelectStatus.tsx:13
27
-	__( 'Select Registration Status', 'event_espresso' ),
27
+	__('Select Registration Status', 'event_espresso'),
28 28
 
29 29
 	// Reference: domains/blocks/src/components/SortOrderControl.tsx:14
30
-	__( 'Ascending', 'event_espresso' ),
30
+	__('Ascending', 'event_espresso'),
31 31
 
32 32
 	// Reference: domains/blocks/src/components/SortOrderControl.tsx:18
33
-	__( 'Descending', 'event_espresso' ),
33
+	__('Descending', 'event_espresso'),
34 34
 
35 35
 	// Reference: domains/blocks/src/components/SortOrderControl.tsx:24
36
-	__( 'Sort order:', 'event_espresso' ),
36
+	__('Sort order:', 'event_espresso'),
37 37
 
38 38
 	// Reference: domains/blocks/src/event-attendees/AttendeesDisplay.tsx:41
39
-	__( 'There was some error fetching attendees list', 'event_espresso' ),
39
+	__('There was some error fetching attendees list', 'event_espresso'),
40 40
 
41 41
 	// Reference: domains/blocks/src/event-attendees/AttendeesDisplay.tsx:47
42
-	__( 'To get started, select what event you want to show attendees from in the block settings.', 'event_espresso' ),
42
+	__('To get started, select what event you want to show attendees from in the block settings.', 'event_espresso'),
43 43
 
44 44
 	// Reference: domains/blocks/src/event-attendees/AttendeesDisplay.tsx:53
45
-	__( 'There are no attendees for selected options.', 'event_espresso' ),
45
+	__('There are no attendees for selected options.', 'event_espresso'),
46 46
 
47 47
 	// Reference: domains/blocks/src/event-attendees/controls/ArchiveSettings.tsx:12
48
-	__( 'Display on Archives', 'event_espresso' ),
48
+	__('Display on Archives', 'event_espresso'),
49 49
 
50 50
 	// Reference: domains/blocks/src/event-attendees/controls/ArchiveSettings.tsx:17
51
-	__( 'Attendees are shown whenever this post is listed in an archive view.', 'event_espresso' ),
51
+	__('Attendees are shown whenever this post is listed in an archive view.', 'event_espresso'),
52 52
 
53 53
 	// Reference: domains/blocks/src/event-attendees/controls/ArchiveSettings.tsx:18
54
-	__( 'Attendees are hidden whenever this post is listed in an archive view.', 'event_espresso' ),
54
+	__('Attendees are hidden whenever this post is listed in an archive view.', 'event_espresso'),
55 55
 
56 56
 	// Reference: domains/blocks/src/event-attendees/controls/AttendeeLimit.tsx:29
57
-	__( 'Number of Attendees to Display:', 'event_espresso' ),
57
+	__('Number of Attendees to Display:', 'event_espresso'),
58 58
 
59 59
 	// Reference: domains/blocks/src/event-attendees/controls/AttendeeLimit.tsx:34
60 60
 	/* translators: %d attendees count */
61
-	_n_noop( 'Used to adjust the number of attendees displayed (There is %d total attendee for the current filter settings).', 'Used to adjust the number of attendees displayed (There are %d total attendees for the current filter settings).', 'event_espresso' ),
61
+	_n_noop('Used to adjust the number of attendees displayed (There is %d total attendee for the current filter settings).', 'Used to adjust the number of attendees displayed (There are %d total attendees for the current filter settings).', 'event_espresso'),
62 62
 
63 63
 	// Reference: domains/blocks/src/event-attendees/controls/GravatarSettings.tsx:27
64
-	__( 'Display Gravatar', 'event_espresso' ),
64
+	__('Display Gravatar', 'event_espresso'),
65 65
 
66 66
 	// Reference: domains/blocks/src/event-attendees/controls/GravatarSettings.tsx:32
67
-	__( 'Gravatar images are shown for each attendee.', 'event_espresso' ),
67
+	__('Gravatar images are shown for each attendee.', 'event_espresso'),
68 68
 
69 69
 	// Reference: domains/blocks/src/event-attendees/controls/GravatarSettings.tsx:33
70
-	__( 'No gravatar images are shown for each attendee.', 'event_espresso' ),
70
+	__('No gravatar images are shown for each attendee.', 'event_espresso'),
71 71
 
72 72
 	// Reference: domains/blocks/src/event-attendees/controls/GravatarSettings.tsx:38
73
-	__( 'Size of Gravatar', 'event_espresso' ),
73
+	__('Size of Gravatar', 'event_espresso'),
74 74
 
75 75
 	// Reference: domains/blocks/src/event-attendees/controls/SelectDatetime.tsx:22
76
-	__( 'Select Datetime', 'event_espresso' ),
76
+	__('Select Datetime', 'event_espresso'),
77 77
 
78 78
 	// Reference: domains/blocks/src/event-attendees/controls/SelectEvent.tsx:22
79
-	__( 'Select Event', 'event_espresso' ),
79
+	__('Select Event', 'event_espresso'),
80 80
 
81 81
 	// Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:11
82
-	__( 'Attendee id', 'event_espresso' ),
82
+	__('Attendee id', 'event_espresso'),
83 83
 
84 84
 	// Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:15
85
-	__( 'Last name only', 'event_espresso' ),
85
+	__('Last name only', 'event_espresso'),
86 86
 
87 87
 	// Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:19
88
-	__( 'First name only', 'event_espresso' ),
88
+	__('First name only', 'event_espresso'),
89 89
 
90 90
 	// Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:23
91
-	__( 'First, then Last name', 'event_espresso' ),
91
+	__('First, then Last name', 'event_espresso'),
92 92
 
93 93
 	// Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:27
94
-	__( 'Last, then First name', 'event_espresso' ),
94
+	__('Last, then First name', 'event_espresso'),
95 95
 
96 96
 	// Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:41
97
-	__( 'Order Attendees by:', 'event_espresso' ),
97
+	__('Order Attendees by:', 'event_espresso'),
98 98
 
99 99
 	// Reference: domains/blocks/src/event-attendees/controls/SelectTicket.tsx:22
100
-	__( 'Select Ticket', 'event_espresso' ),
100
+	__('Select Ticket', 'event_espresso'),
101 101
 
102 102
 	// Reference: domains/blocks/src/event-attendees/controls/index.tsx:21
103
-	__( 'Filter By Settings', 'event_espresso' ),
103
+	__('Filter By Settings', 'event_espresso'),
104 104
 
105 105
 	// Reference: domains/blocks/src/event-attendees/controls/index.tsx:36
106
-	__( 'Gravatar Setttings', 'event_espresso' ),
106
+	__('Gravatar Setttings', 'event_espresso'),
107 107
 
108 108
 	// Reference: domains/blocks/src/event-attendees/controls/index.tsx:39
109
-	__( 'Archive Settings', 'event_espresso' ),
109
+	__('Archive Settings', 'event_espresso'),
110 110
 
111 111
 	// Reference: domains/blocks/src/event-attendees/index.tsx:10
112
-	__( 'Event Attendees', 'event_espresso' ),
112
+	__('Event Attendees', 'event_espresso'),
113 113
 
114 114
 	// Reference: domains/blocks/src/event-attendees/index.tsx:11
115
-	__( 'Displays a list of people that have registered for the specified event', 'event_espresso' ),
115
+	__('Displays a list of people that have registered for the specified event', 'event_espresso'),
116 116
 
117 117
 	// Reference: domains/blocks/src/event-attendees/index.tsx:14
118
-	__( 'event', 'event_espresso' ),
118
+	__('event', 'event_espresso'),
119 119
 
120 120
 	// Reference: domains/blocks/src/event-attendees/index.tsx:14
121
-	__( 'attendees', 'event_espresso' ),
121
+	__('attendees', 'event_espresso'),
122 122
 
123 123
 	// Reference: domains/blocks/src/event-attendees/index.tsx:14
124
-	__( 'list', 'event_espresso' ),
124
+	__('list', 'event_espresso'),
125 125
 
126 126
 	// Reference: domains/blocks/src/services/utils.ts:17
127
-	__( 'Error', 'event_espresso' ),
127
+	__('Error', 'event_espresso'),
128 128
 
129 129
 	// Reference: domains/blocks/src/services/utils.ts:24
130 130
 	// Reference: packages/ui-components/src/SimpleEntityList/EntityTemplate.tsx:16
131
-	__( 'Select…', 'event_espresso' ),
131
+	__('Select…', 'event_espresso'),
132 132
 
133 133
 	// Reference: domains/blocks/src/services/utils.ts:9
134
-	__( 'Loading…', 'event_espresso' ),
134
+	__('Loading…', 'event_espresso'),
135 135
 
136 136
 	// Reference: domains/eventEditor/src/ui/EventDescription.tsx:32
137
-	__( 'Event Description', 'event_espresso' ),
137
+	__('Event Description', 'event_espresso'),
138 138
 
139 139
 	// Reference: domains/eventEditor/src/ui/EventRegistrationOptions/ActiveStatus.tsx:22
140
-	__( 'Active status', 'event_espresso' ),
140
+	__('Active status', 'event_espresso'),
141 141
 
142 142
 	// Reference: domains/eventEditor/src/ui/EventRegistrationOptions/AltRegPage.tsx:14
143
-	__( 'Alternative Registration Page', 'event_espresso' ),
143
+	__('Alternative Registration Page', 'event_espresso'),
144 144
 
145 145
 	// Reference: domains/eventEditor/src/ui/EventRegistrationOptions/DefaultRegistrationStatus.tsx:15
146
-	__( 'Default Registration Status', 'event_espresso' ),
146
+	__('Default Registration Status', 'event_espresso'),
147 147
 
148 148
 	// Reference: domains/eventEditor/src/ui/EventRegistrationOptions/Donations.tsx:9
149
-	__( 'Donations Enabled', 'event_espresso' ),
149
+	__('Donations Enabled', 'event_espresso'),
150 150
 
151 151
 	// Reference: domains/eventEditor/src/ui/EventRegistrationOptions/Donations.tsx:9
152
-	__( 'Donations Disabled', 'event_espresso' ),
152
+	__('Donations Disabled', 'event_espresso'),
153 153
 
154 154
 	// Reference: domains/eventEditor/src/ui/EventRegistrationOptions/EventManager.tsx:16
155
-	__( 'Event Manager', 'event_espresso' ),
155
+	__('Event Manager', 'event_espresso'),
156 156
 
157 157
 	// Reference: domains/eventEditor/src/ui/EventRegistrationOptions/EventPhoneNumber.tsx:11
158
-	__( 'Event Phone Number', 'event_espresso' ),
158
+	__('Event Phone Number', 'event_espresso'),
159 159
 
160 160
 	// Reference: domains/eventEditor/src/ui/EventRegistrationOptions/MaxRegistrations.tsx:12
161
-	__( 'Max Registrations per Transaction', 'event_espresso' ),
161
+	__('Max Registrations per Transaction', 'event_espresso'),
162 162
 
163 163
 	// Reference: domains/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:9
164
-	__( 'Ticket Selector Enabled', 'event_espresso' ),
164
+	__('Ticket Selector Enabled', 'event_espresso'),
165 165
 
166 166
 	// Reference: domains/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:9
167
-	__( 'Ticket Selector Disabled', 'event_espresso' ),
167
+	__('Ticket Selector Disabled', 'event_espresso'),
168 168
 
169 169
 	// Reference: domains/eventEditor/src/ui/EventRegistrationOptions/index.tsx:42
170
-	__( 'Registration Options', 'event_espresso' ),
170
+	__('Registration Options', 'event_espresso'),
171 171
 
172 172
 	// Reference: domains/eventEditor/src/ui/datetimes/DateRegistrationsLink.tsx:13
173
-	__( 'view ALL registrations for this date.', 'event_espresso' ),
173
+	__('view ALL registrations for this date.', 'event_espresso'),
174 174
 
175 175
 	// Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:10
176
-	__( 'primary information about the date', 'event_espresso' ),
176
+	__('primary information about the date', 'event_espresso'),
177 177
 
178 178
 	// Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:10
179
-	__( 'Date Details', 'event_espresso' ),
179
+	__('Date Details', 'event_espresso'),
180 180
 
181 181
 	// Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:11
182 182
 	// Reference: domains/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:16
183 183
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:16
184
-	__( 'relations between tickets and dates', 'event_espresso' ),
184
+	__('relations between tickets and dates', 'event_espresso'),
185 185
 
186 186
 	// Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:11
187
-	__( 'Assign Tickets', 'event_espresso' ),
187
+	__('Assign Tickets', 'event_espresso'),
188 188
 
189 189
 	// Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/FooterButtons.tsx:22
190
-	__( 'Save and assign tickets', 'event_espresso' ),
190
+	__('Save and assign tickets', 'event_espresso'),
191 191
 
192 192
 	// Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/Modal.tsx:26
193 193
 	/* translators: %s datetime id */
194
-	__( 'Edit datetime %s', 'event_espresso' ),
194
+	__('Edit datetime %s', 'event_espresso'),
195 195
 
196 196
 	// Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/Modal.tsx:29
197
-	__( 'New Datetime', 'event_espresso' ),
197
+	__('New Datetime', 'event_espresso'),
198 198
 
199 199
 	// Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:108
200 200
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:108
201 201
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:117
202 202
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:108
203
-	__( 'Details', 'event_espresso' ),
203
+	__('Details', 'event_espresso'),
204 204
 
205 205
 	// Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:112
206 206
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:112
207 207
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:81
208
-	__( 'Capacity', 'event_espresso' ),
208
+	__('Capacity', 'event_espresso'),
209 209
 
210 210
 	// Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:117
211
-	__( 'The maximum number of registrants that can attend the event at this particular date.', 'event_espresso' ),
211
+	__('The maximum number of registrants that can attend the event at this particular date.', 'event_espresso'),
212 212
 
213 213
 	// Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:121
214
-	__( 'Set to 0 to close registration or leave blank for no limit.', 'event_espresso' ),
214
+	__('Set to 0 to close registration or leave blank for no limit.', 'event_espresso'),
215 215
 
216 216
 	// Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:126
217 217
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:189
218
-	__( 'Trash', 'event_espresso' ),
218
+	__('Trash', 'event_espresso'),
219 219
 
220 220
 	// Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:71
221 221
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:45
222 222
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:80
223 223
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:45
224
-	__( 'Basics', 'event_espresso' ),
224
+	__('Basics', 'event_espresso'),
225 225
 
226 226
 	// Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:75
227 227
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:49
@@ -229,246 +229,246 @@  discard block
 block discarded – undo
229 229
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:84
230 230
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:49
231 231
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:40
232
-	__( 'Name', 'event_espresso' ),
232
+	__('Name', 'event_espresso'),
233 233
 
234 234
 	// Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:80
235 235
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:55
236 236
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:89
237 237
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:55
238 238
 	// Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:41
239
-	__( 'Description', 'event_espresso' ),
239
+	__('Description', 'event_espresso'),
240 240
 
241 241
 	// Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:88
242 242
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:63
243 243
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:63
244
-	__( 'Dates', 'event_espresso' ),
244
+	__('Dates', 'event_espresso'),
245 245
 
246 246
 	// Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:92
247 247
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:51
248 248
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:101
249
-	__( 'Start Date', 'event_espresso' ),
249
+	__('Start Date', 'event_espresso'),
250 250
 
251 251
 	// Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:98
252 252
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:65
253 253
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:107
254
-	__( 'End Date', 'event_espresso' ),
254
+	__('End Date', 'event_espresso'),
255 255
 
256 256
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/DatesList.tsx:34
257 257
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/TableView.tsx:33
258
-	__( 'Event Dates', 'event_espresso' ),
258
+	__('Event Dates', 'event_espresso'),
259 259
 
260 260
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/DatesList.tsx:37
261
-	__( 'loading event dates…', 'event_espresso' ),
261
+	__('loading event dates…', 'event_espresso'),
262 262
 
263 263
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/DatesListButtons.tsx:23
264
-	__( 'Ticket Assignments', 'event_espresso' ),
264
+	__('Ticket Assignments', 'event_espresso'),
265 265
 
266 266
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:25
267
-	__( 'Number of related tickets', 'event_espresso' ),
267
+	__('Number of related tickets', 'event_espresso'),
268 268
 
269 269
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:26
270
-	__( 'There are no tickets assigned to this datetime. Please click the ticket icon to update the assignments.', 'event_espresso' ),
270
+	__('There are no tickets assigned to this datetime. Please click the ticket icon to update the assignments.', 'event_espresso'),
271 271
 
272 272
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:34
273
-	__( 'assign tickets', 'event_espresso' ),
273
+	__('assign tickets', 'event_espresso'),
274 274
 
275 275
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:19
276
-	__( 'event date main menu', 'event_espresso' ),
276
+	__('event date main menu', 'event_espresso'),
277 277
 
278 278
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:27
279
-	__( 'Permanently delete Datetime?', 'event_espresso' ),
279
+	__('Permanently delete Datetime?', 'event_espresso'),
280 280
 
281 281
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:27
282
-	__( 'Move Datetime to Trash?', 'event_espresso' ),
282
+	__('Move Datetime to Trash?', 'event_espresso'),
283 283
 
284 284
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:29
285
-	__( 'Are you sure you want to permanently delete this datetime? This action is permanent and can not be undone.', 'event_espresso' ),
285
+	__('Are you sure you want to permanently delete this datetime? This action is permanent and can not be undone.', 'event_espresso'),
286 286
 
287 287
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:32
288
-	__( 'Are you sure you want to move this datetime to the trash? You can "untrash" this datetime later if you need to.', 'event_espresso' ),
288
+	__('Are you sure you want to move this datetime to the trash? You can "untrash" this datetime later if you need to.', 'event_espresso'),
289 289
 
290 290
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:41
291 291
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:44
292
-	__( 'delete permanently', 'event_espresso' ),
292
+	__('delete permanently', 'event_espresso'),
293 293
 
294 294
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:41
295
-	__( 'trash datetime', 'event_espresso' ),
295
+	__('trash datetime', 'event_espresso'),
296 296
 
297 297
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:52
298
-	__( 'edit datetime', 'event_espresso' ),
298
+	__('edit datetime', 'event_espresso'),
299 299
 
300 300
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:53
301
-	__( 'copy datetime', 'event_espresso' ),
301
+	__('copy datetime', 'event_espresso'),
302 302
 
303 303
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:36
304 304
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:39
305 305
 	// Reference: packages/ui-components/src/bulkEdit/BulkActions.tsx:43
306
-	__( 'bulk actions', 'event_espresso' ),
306
+	__('bulk actions', 'event_espresso'),
307 307
 
308 308
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:40
309
-	__( 'edit datetime details', 'event_espresso' ),
309
+	__('edit datetime details', 'event_espresso'),
310 310
 
311 311
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:44
312
-	__( 'delete datetimes', 'event_espresso' ),
312
+	__('delete datetimes', 'event_espresso'),
313 313
 
314 314
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:44
315
-	__( 'trash datetimes', 'event_espresso' ),
315
+	__('trash datetimes', 'event_espresso'),
316 316
 
317 317
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:14
318
-	__( 'Are you sure you want to permanently delete these datetimes? This action can NOT be undone!', 'event_espresso' ),
318
+	__('Are you sure you want to permanently delete these datetimes? This action can NOT be undone!', 'event_espresso'),
319 319
 
320 320
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:15
321
-	__( 'Are you sure you want to trash these datetimes?', 'event_espresso' ),
321
+	__('Are you sure you want to trash these datetimes?', 'event_espresso'),
322 322
 
323 323
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:16
324
-	__( 'Delete datetimes permanently', 'event_espresso' ),
324
+	__('Delete datetimes permanently', 'event_espresso'),
325 325
 
326 326
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:16
327
-	__( 'Trash datetimes', 'event_espresso' ),
327
+	__('Trash datetimes', 'event_espresso'),
328 328
 
329 329
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/EditDetails.tsx:21
330
-	__( 'Bulk edit date details', 'event_espresso' ),
330
+	__('Bulk edit date details', 'event_espresso'),
331 331
 
332 332
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/EditDetails.tsx:22
333
-	__( 'any changes will be applied to ALL of the selected dates.', 'event_espresso' ),
333
+	__('any changes will be applied to ALL of the selected dates.', 'event_espresso'),
334 334
 
335 335
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/formValidation.ts:12
336 336
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/formValidation.ts:12
337
-	__( 'Name must be at least three characters', 'event_espresso' ),
337
+	__('Name must be at least three characters', 'event_espresso'),
338 338
 
339 339
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:67
340 340
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:67
341
-	__( 'Shift dates', 'event_espresso' ),
341
+	__('Shift dates', 'event_espresso'),
342 342
 
343 343
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:92
344 344
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:92
345
-	__( 'earlier', 'event_espresso' ),
345
+	__('earlier', 'event_espresso'),
346 346
 
347 347
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:96
348 348
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:96
349
-	__( 'later', 'event_espresso' ),
349
+	__('later', 'event_espresso'),
350 350
 
351 351
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateCapacity.tsx:36
352
-	__( 'edit capacity (registration limit)…', 'event_espresso' ),
352
+	__('edit capacity (registration limit)…', 'event_espresso'),
353 353
 
354 354
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:38
355
-	__( 'Edit Event Date', 'event_espresso' ),
355
+	__('Edit Event Date', 'event_espresso'),
356 356
 
357 357
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:42
358
-	__( 'edit start and end dates', 'event_espresso' ),
358
+	__('edit start and end dates', 'event_espresso'),
359 359
 
360 360
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:15
361 361
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:15
362
-	__( 'sold', 'event_espresso' ),
362
+	__('sold', 'event_espresso'),
363 363
 
364 364
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:28
365
-	__( 'capacity', 'event_espresso' ),
365
+	__('capacity', 'event_espresso'),
366 366
 
367 367
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:34
368 368
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:33
369
-	__( 'reg list', 'event_espresso' ),
369
+	__('reg list', 'event_espresso'),
370 370
 
371 371
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:42
372 372
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:41
373
-	__( 'Edit description', 'event_espresso' ),
373
+	__('Edit description', 'event_espresso'),
374 374
 
375 375
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:43
376 376
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:42
377
-	__( 'edit description…', 'event_espresso' ),
377
+	__('edit description…', 'event_espresso'),
378 378
 
379 379
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:10
380
-	__( 'Move Date to Trash', 'event_espresso' ),
380
+	__('Move Date to Trash', 'event_espresso'),
381 381
 
382 382
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:13
383 383
 	// Reference: packages/constants/src/datetime.ts:6
384
-	__( 'Active', 'event_espresso' ),
384
+	__('Active', 'event_espresso'),
385 385
 
386 386
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:14
387 387
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:13
388
-	__( 'Trashed', 'event_espresso' ),
388
+	__('Trashed', 'event_espresso'),
389 389
 
390 390
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:15
391 391
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:14
392 392
 	// Reference: packages/constants/src/datetime.ts:8
393
-	__( 'Expired', 'event_espresso' ),
393
+	__('Expired', 'event_espresso'),
394 394
 
395 395
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:16
396 396
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:16
397
-	__( 'Sold Out', 'event_espresso' ),
397
+	__('Sold Out', 'event_espresso'),
398 398
 
399 399
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:17
400 400
 	// Reference: packages/constants/src/datetime.ts:12
401
-	__( 'Upcoming', 'event_espresso' ),
401
+	__('Upcoming', 'event_espresso'),
402 402
 
403 403
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:7
404
-	__( 'Edit Event Date Details', 'event_espresso' ),
404
+	__('Edit Event Date Details', 'event_espresso'),
405 405
 
406 406
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:8
407
-	__( 'View Registrations for this Date', 'event_espresso' ),
407
+	__('View Registrations for this Date', 'event_espresso'),
408 408
 
409 409
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:9
410
-	__( 'Manage Ticket Assignments', 'event_espresso' ),
410
+	__('Manage Ticket Assignments', 'event_espresso'),
411 411
 
412 412
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/editable/EditableName.tsx:17
413 413
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/editable/EditableName.tsx:28
414
-	__( 'edit title…', 'event_espresso' ),
414
+	__('edit title…', 'event_espresso'),
415 415
 
416 416
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/ActiveDatesFilters.tsx:25
417 417
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/ActiveTicketsFilters.tsx:25
418
-	__( 'ON', 'event_espresso' ),
418
+	__('ON', 'event_espresso'),
419 419
 
420 420
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:10
421
-	__( 'end dates only', 'event_espresso' ),
421
+	__('end dates only', 'event_espresso'),
422 422
 
423 423
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:11
424
-	__( 'start and end dates', 'event_espresso' ),
424
+	__('start and end dates', 'event_espresso'),
425 425
 
426 426
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:16
427
-	__( 'dates above 90% capacity', 'event_espresso' ),
427
+	__('dates above 90% capacity', 'event_espresso'),
428 428
 
429 429
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:17
430
-	__( 'dates above 75% capacity', 'event_espresso' ),
430
+	__('dates above 75% capacity', 'event_espresso'),
431 431
 
432 432
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:18
433
-	__( 'dates above 50% capacity', 'event_espresso' ),
433
+	__('dates above 50% capacity', 'event_espresso'),
434 434
 
435 435
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:19
436
-	__( 'dates below 50% capacity', 'event_espresso' ),
436
+	__('dates below 50% capacity', 'event_espresso'),
437 437
 
438 438
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:23
439
-	__( 'all dates', 'event_espresso' ),
439
+	__('all dates', 'event_espresso'),
440 440
 
441 441
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:24
442
-	__( 'all active and upcoming', 'event_espresso' ),
442
+	__('all active and upcoming', 'event_espresso'),
443 443
 
444 444
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:25
445
-	__( 'active dates only', 'event_espresso' ),
445
+	__('active dates only', 'event_espresso'),
446 446
 
447 447
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:26
448
-	__( 'upcoming dates only', 'event_espresso' ),
448
+	__('upcoming dates only', 'event_espresso'),
449 449
 
450 450
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:27
451
-	__( 'next active or upcoming only', 'event_espresso' ),
451
+	__('next active or upcoming only', 'event_espresso'),
452 452
 
453 453
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:28
454
-	__( 'sold out dates only', 'event_espresso' ),
454
+	__('sold out dates only', 'event_espresso'),
455 455
 
456 456
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:29
457
-	__( 'recently expired dates', 'event_espresso' ),
457
+	__('recently expired dates', 'event_espresso'),
458 458
 
459 459
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:30
460
-	__( 'all expired dates', 'event_espresso' ),
460
+	__('all expired dates', 'event_espresso'),
461 461
 
462 462
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:31
463
-	__( 'trashed dates only', 'event_espresso' ),
463
+	__('trashed dates only', 'event_espresso'),
464 464
 
465 465
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:35
466 466
 	// Reference: packages/dates/src/components/DateRangePicker/DateRangePickerLegend.tsx:9
467 467
 	// Reference: packages/dates/src/components/DateRangePicker/index.tsx:61
468
-	__( 'start date', 'event_espresso' ),
468
+	__('start date', 'event_espresso'),
469 469
 
470 470
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:36
471
-	__( 'name', 'event_espresso' ),
471
+	__('name', 'event_espresso'),
472 472
 
473 473
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:37
474 474
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:31
@@ -476,138 +476,138 @@  discard block
 block discarded – undo
476 476
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/table/HeaderCell.tsx:27
477 477
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:31
478 478
 	// Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:23
479
-	__( 'ID', 'event_espresso' ),
479
+	__('ID', 'event_espresso'),
480 480
 
481 481
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:38
482 482
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:47
483
-	__( 'custom order', 'event_espresso' ),
483
+	__('custom order', 'event_espresso'),
484 484
 
485 485
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:42
486 486
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:51
487
-	__( 'display', 'event_espresso' ),
487
+	__('display', 'event_espresso'),
488 488
 
489 489
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:43
490
-	__( 'recurrence', 'event_espresso' ),
490
+	__('recurrence', 'event_espresso'),
491 491
 
492 492
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:44
493 493
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:53
494
-	__( 'sales', 'event_espresso' ),
494
+	__('sales', 'event_espresso'),
495 495
 
496 496
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:45
497 497
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:55
498
-	__( 'sort by', 'event_espresso' ),
498
+	__('sort by', 'event_espresso'),
499 499
 
500 500
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:46
501 501
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:54
502 502
 	// Reference: packages/ee-components/src/EntityList/EntityListFilterBar.tsx:53
503
-	__( 'search', 'event_espresso' ),
503
+	__('search', 'event_espresso'),
504 504
 
505 505
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:47
506 506
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:56
507
-	__( 'status', 'event_espresso' ),
507
+	__('status', 'event_espresso'),
508 508
 
509 509
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:9
510
-	__( 'start dates only', 'event_espresso' ),
510
+	__('start dates only', 'event_espresso'),
511 511
 
512 512
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:18
513 513
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/NewDateModal.tsx:14
514 514
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/OptionsModalButton.tsx:10
515
-	__( 'Add New Date', 'event_espresso' ),
515
+	__('Add New Date', 'event_espresso'),
516 516
 
517 517
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:18
518
-	__( 'Add Single Date', 'event_espresso' ),
518
+	__('Add Single Date', 'event_espresso'),
519 519
 
520 520
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:32
521
-	__( 'Add a single date that only occurs once', 'event_espresso' ),
521
+	__('Add a single date that only occurs once', 'event_espresso'),
522 522
 
523 523
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:34
524
-	__( 'Single Date', 'event_espresso' ),
524
+	__('Single Date', 'event_espresso'),
525 525
 
526 526
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:106
527
-	__( 'Reg list', 'event_espresso' ),
527
+	__('Reg list', 'event_espresso'),
528 528
 
529 529
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:107
530 530
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:111
531
-	__( 'Regs', 'event_espresso' ),
531
+	__('Regs', 'event_espresso'),
532 532
 
533 533
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:122
534 534
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:126
535 535
 	// Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:53
536
-	__( 'Actions', 'event_espresso' ),
536
+	__('Actions', 'event_espresso'),
537 537
 
538 538
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:52
539
-	__( 'Start', 'event_espresso' ),
539
+	__('Start', 'event_espresso'),
540 540
 
541 541
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:66
542
-	__( 'End', 'event_espresso' ),
542
+	__('End', 'event_espresso'),
543 543
 
544 544
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:82
545
-	__( 'Cap', 'event_espresso' ),
545
+	__('Cap', 'event_espresso'),
546 546
 
547 547
 	// Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:94
548 548
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:98
549
-	__( 'Sold', 'event_espresso' ),
549
+	__('Sold', 'event_espresso'),
550 550
 
551 551
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:18
552
-	__( 'Tickets must always have at least one date assigned to them but one or more of the tickets below does not have any. 
553
-Please correct the assignments for the highlighted cells.', 'event_espresso' ),
552
+	__('Tickets must always have at least one date assigned to them but one or more of the tickets below does not have any. 
553
+Please correct the assignments for the highlighted cells.', 'event_espresso'),
554 554
 
555 555
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:22
556
-	__( 'Event Dates must always have at least one Ticket assigned to them but one or more of the Event Dates below does not have any. 
557
-Please correct the assignments for the highlighted cells.', 'event_espresso' ),
556
+	__('Event Dates must always have at least one Ticket assigned to them but one or more of the Event Dates below does not have any. 
557
+Please correct the assignments for the highlighted cells.', 'event_espresso'),
558 558
 
559 559
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:32
560
-	__( 'Please Update Assignments', 'event_espresso' ),
560
+	__('Please Update Assignments', 'event_espresso'),
561 561
 
562 562
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:26
563
-	__( 'There seem to be some dates/tickets which have no tickets/dates assigned. Do you want to fix them now?', 'event_espresso' ),
563
+	__('There seem to be some dates/tickets which have no tickets/dates assigned. Do you want to fix them now?', 'event_espresso'),
564 564
 
565 565
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:29
566 566
 	// Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:74
567 567
 	// Reference: packages/ui-components/src/Modal/ModalWithAlert.tsx:21
568
-	__( 'Alert!', 'event_espresso' ),
568
+	__('Alert!', 'event_espresso'),
569 569
 
570 570
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:42
571 571
 	/* translators: 1 entity id, 2 entity name */
572
-	__( 'Ticket Assignment Manager for Datetime: %1$s - %2$s', 'event_espresso' ),
572
+	__('Ticket Assignment Manager for Datetime: %1$s - %2$s', 'event_espresso'),
573 573
 
574 574
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:49
575 575
 	/* translators: 1 entity id, 2 entity name */
576
-	__( 'Ticket Assignment Manager for Ticket: %1$s - %2$s', 'event_espresso' ),
576
+	__('Ticket Assignment Manager for Ticket: %1$s - %2$s', 'event_espresso'),
577 577
 
578 578
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/TicketAssignmentsManagerModal.tsx:28
579 579
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/table/Table.tsx:13
580
-	__( 'Ticket Assignment Manager', 'event_espresso' ),
580
+	__('Ticket Assignment Manager', 'event_espresso'),
581 581
 
582 582
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:10
583
-	__( 'existing relation', 'event_espresso' ),
583
+	__('existing relation', 'event_espresso'),
584 584
 
585 585
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:15
586
-	__( 'remove existing relation', 'event_espresso' ),
586
+	__('remove existing relation', 'event_espresso'),
587 587
 
588 588
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:20
589
-	__( 'add new relation', 'event_espresso' ),
589
+	__('add new relation', 'event_espresso'),
590 590
 
591 591
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:25
592
-	__( 'invalid relation', 'event_espresso' ),
592
+	__('invalid relation', 'event_espresso'),
593 593
 
594 594
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:29
595
-	__( 'no relation', 'event_espresso' ),
595
+	__('no relation', 'event_espresso'),
596 596
 
597 597
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/table/BodyCell.tsx:24
598
-	__( 'assign ticket', 'event_espresso' ),
598
+	__('assign ticket', 'event_espresso'),
599 599
 
600 600
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:15
601
-	__( 'Assignments', 'event_espresso' ),
601
+	__('Assignments', 'event_espresso'),
602 602
 
603 603
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:16
604
-	__( 'Event Dates are listed below', 'event_espresso' ),
604
+	__('Event Dates are listed below', 'event_espresso'),
605 605
 
606 606
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:17
607
-	__( 'Tickets are listed along the top', 'event_espresso' ),
607
+	__('Tickets are listed along the top', 'event_espresso'),
608 608
 
609 609
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:18
610
-	__( 'Click the cell buttons to toggle assigments', 'event_espresso' ),
610
+	__('Click the cell buttons to toggle assigments', 'event_espresso'),
611 611
 
612 612
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/useSubmitButtonProps.ts:29
613 613
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:16
@@ -616,987 +616,987 @@  discard block
 block discarded – undo
616 616
 	// Reference: packages/tpc/src/buttons/useSubmitButtonProps.tsx:29
617 617
 	// Reference: packages/ui-components/src/Modal/useSubmitButtonProps.tsx:13
618 618
 	// Reference: packages/ui-components/src/Stepper/buttons/Submit.tsx:7
619
-	__( 'Submit', 'event_espresso' ),
619
+	__('Submit', 'event_espresso'),
620 620
 
621 621
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/DatesByMonthControl.tsx:19
622
-	__( 'All Dates', 'event_espresso' ),
622
+	__('All Dates', 'event_espresso'),
623 623
 
624 624
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/DatesByMonthControl.tsx:26
625
-	__( 'dates by month', 'event_espresso' ),
625
+	__('dates by month', 'event_espresso'),
626 626
 
627 627
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowExpiredTicketsControl.tsx:15
628
-	__( 'show expired tickets', 'event_espresso' ),
628
+	__('show expired tickets', 'event_espresso'),
629 629
 
630 630
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowTrashedDatesControl.tsx:9
631
-	__( 'show trashed dates', 'event_espresso' ),
631
+	__('show trashed dates', 'event_espresso'),
632 632
 
633 633
 	// Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowTrashedTicketsControl.tsx:15
634
-	__( 'show trashed tickets', 'event_espresso' ),
634
+	__('show trashed tickets', 'event_espresso'),
635 635
 
636 636
 	// Reference: domains/eventEditor/src/ui/tickets/TicketRegistrationsLink.tsx:13
637
-	__( 'total registrations.', 'event_espresso' ),
637
+	__('total registrations.', 'event_espresso'),
638 638
 
639 639
 	// Reference: domains/eventEditor/src/ui/tickets/TicketRegistrationsLink.tsx:14
640
-	__( 'view ALL registrations for this ticket.', 'event_espresso' ),
640
+	__('view ALL registrations for this ticket.', 'event_espresso'),
641 641
 
642 642
 	// Reference: domains/eventEditor/src/ui/tickets/defaultTickets/Container.tsx:38
643 643
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/actions/Actions.tsx:17
644
-	__( 'Default tickets', 'event_espresso' ),
644
+	__('Default tickets', 'event_espresso'),
645 645
 
646 646
 	// Reference: domains/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:26
647 647
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:33
648
-	__( 'Set ticket prices', 'event_espresso' ),
648
+	__('Set ticket prices', 'event_espresso'),
649 649
 
650 650
 	// Reference: domains/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:31
651
-	__( 'Skip prices - Save', 'event_espresso' ),
651
+	__('Skip prices - Save', 'event_espresso'),
652 652
 
653 653
 	// Reference: domains/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:37
654 654
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:57
655
-	__( 'Ticket details', 'event_espresso' ),
655
+	__('Ticket details', 'event_espresso'),
656 656
 
657 657
 	// Reference: domains/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:38
658
-	__( 'Save', 'event_espresso' ),
658
+	__('Save', 'event_espresso'),
659 659
 
660 660
 	// Reference: domains/eventEditor/src/ui/tickets/defaultTickets/multiStep/Modal.tsx:22
661 661
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/Modal.tsx:26
662 662
 	/* translators: %s ticket id */
663
-	__( 'Edit ticket %s', 'event_espresso' ),
663
+	__('Edit ticket %s', 'event_espresso'),
664 664
 
665 665
 	// Reference: domains/eventEditor/src/ui/tickets/defaultTickets/multiStep/Modal.tsx:25
666 666
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/Modal.tsx:29
667
-	__( 'New Ticket Details', 'event_espresso' ),
667
+	__('New Ticket Details', 'event_espresso'),
668 668
 
669 669
 	// Reference: domains/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:10
670 670
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:10
671
-	__( 'primary information about the ticket', 'event_espresso' ),
671
+	__('primary information about the ticket', 'event_espresso'),
672 672
 
673 673
 	// Reference: domains/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:10
674 674
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:10
675
-	__( 'Ticket Details', 'event_espresso' ),
675
+	__('Ticket Details', 'event_espresso'),
676 676
 
677 677
 	// Reference: domains/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:12
678 678
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:12
679
-	__( 'apply ticket price modifiers and taxes', 'event_espresso' ),
679
+	__('apply ticket price modifiers and taxes', 'event_espresso'),
680 680
 
681 681
 	// Reference: domains/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:14
682 682
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:14
683
-	__( 'Price Calculator', 'event_espresso' ),
683
+	__('Price Calculator', 'event_espresso'),
684 684
 
685 685
 	// Reference: domains/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:16
686 686
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:16
687
-	__( 'Assign Dates', 'event_espresso' ),
687
+	__('Assign Dates', 'event_espresso'),
688 688
 
689 689
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:39
690
-	__( 'Skip prices - assign dates', 'event_espresso' ),
690
+	__('Skip prices - assign dates', 'event_espresso'),
691 691
 
692 692
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:50
693
-	__( 'Save and assign dates', 'event_espresso' ),
693
+	__('Save and assign dates', 'event_espresso'),
694 694
 
695 695
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:121
696 696
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:112
697
-	__( 'Quantity For Sale', 'event_espresso' ),
697
+	__('Quantity For Sale', 'event_espresso'),
698 698
 
699 699
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:127
700
-	__( 'The maximum number of this ticket available for sale.', 'event_espresso' ),
700
+	__('The maximum number of this ticket available for sale.', 'event_espresso'),
701 701
 
702 702
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:129
703
-	__( 'Set to 0 to stop sales, or leave blank for no limit.', 'event_espresso' ),
703
+	__('Set to 0 to stop sales, or leave blank for no limit.', 'event_espresso'),
704 704
 
705 705
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:134
706 706
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:121
707
-	__( 'Number of Uses', 'event_espresso' ),
707
+	__('Number of Uses', 'event_espresso'),
708 708
 
709 709
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:140
710
-	__( 'Controls the total number of times this ticket can be used, regardless of the number of dates it is assigned to.', 'event_espresso' ),
710
+	__('Controls the total number of times this ticket can be used, regardless of the number of dates it is assigned to.', 'event_espresso'),
711 711
 
712 712
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:144
713
-	__( 'Example: A ticket might have access to 4 different dates, but setting this field to 2 would mean that the ticket could only be used twice. Leave blank for no limit.', 'event_espresso' ),
713
+	__('Example: A ticket might have access to 4 different dates, but setting this field to 2 would mean that the ticket could only be used twice. Leave blank for no limit.', 'event_espresso'),
714 714
 
715 715
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:151
716 716
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:129
717
-	__( 'Minimum Quantity', 'event_espresso' ),
717
+	__('Minimum Quantity', 'event_espresso'),
718 718
 
719 719
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:156
720
-	__( 'The minimum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso' ),
720
+	__('The minimum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso'),
721 721
 
722 722
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:160
723
-	__( 'Leave blank for no minimum.', 'event_espresso' ),
723
+	__('Leave blank for no minimum.', 'event_espresso'),
724 724
 
725 725
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:165
726 726
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:137
727
-	__( 'Maximum Quantity', 'event_espresso' ),
727
+	__('Maximum Quantity', 'event_espresso'),
728 728
 
729 729
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:171
730
-	__( 'The maximum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso' ),
730
+	__('The maximum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso'),
731 731
 
732 732
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:175
733
-	__( 'Leave blank for no maximum.', 'event_espresso' ),
733
+	__('Leave blank for no maximum.', 'event_espresso'),
734 734
 
735 735
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:180
736 736
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:146
737
-	__( 'Required Ticket', 'event_espresso' ),
737
+	__('Required Ticket', 'event_espresso'),
738 738
 
739 739
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:182
740
-	__( 'If enabled, the ticket must be selected and will appear first in frontend ticket lists.', 'event_espresso' ),
740
+	__('If enabled, the ticket must be selected and will appear first in frontend ticket lists.', 'event_espresso'),
741 741
 
742 742
 	// Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:97
743
-	__( 'Ticket Sales', 'event_espresso' ),
743
+	__('Ticket Sales', 'event_espresso'),
744 744
 
745 745
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/TicketsList.tsx:35
746
-	__( 'Available Tickets', 'event_espresso' ),
746
+	__('Available Tickets', 'event_espresso'),
747 747
 
748 748
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/TicketsList.tsx:38
749
-	__( 'loading tickets…', 'event_espresso' ),
749
+	__('loading tickets…', 'event_espresso'),
750 750
 
751 751
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:26
752
-	__( 'Number of related dates', 'event_espresso' ),
752
+	__('Number of related dates', 'event_espresso'),
753 753
 
754 754
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:27
755
-	__( 'There are no event dates assigned to this ticket. Please click the calendar icon to update the assignments.', 'event_espresso' ),
755
+	__('There are no event dates assigned to this ticket. Please click the calendar icon to update the assignments.', 'event_espresso'),
756 756
 
757 757
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:37
758
-	__( 'assign dates', 'event_espresso' ),
758
+	__('assign dates', 'event_espresso'),
759 759
 
760 760
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:18
761
-	__( 'Permanently delete Ticket?', 'event_espresso' ),
761
+	__('Permanently delete Ticket?', 'event_espresso'),
762 762
 
763 763
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:18
764
-	__( 'Move Ticket to Trash?', 'event_espresso' ),
764
+	__('Move Ticket to Trash?', 'event_espresso'),
765 765
 
766 766
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:21
767
-	__( 'Are you sure you want to permanently delete this ticket? This action is permanent and can not be undone.', 'event_espresso' ),
767
+	__('Are you sure you want to permanently delete this ticket? This action is permanent and can not be undone.', 'event_espresso'),
768 768
 
769 769
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:22
770
-	__( 'Are you sure you want to move this ticket to the trash? You can "untrash" this ticket later if you need to.', 'event_espresso' ),
770
+	__('Are you sure you want to move this ticket to the trash? You can "untrash" this ticket later if you need to.', 'event_espresso'),
771 771
 
772 772
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:44
773 773
 	// Reference: packages/ee-components/src/SimpleTicketCard/actions/Trash.tsx:6
774
-	__( 'trash ticket', 'event_espresso' ),
774
+	__('trash ticket', 'event_espresso'),
775 775
 
776 776
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:13
777
-	__( 'ticket main menu', 'event_espresso' ),
777
+	__('ticket main menu', 'event_espresso'),
778 778
 
779 779
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:31
780 780
 	// Reference: packages/ee-components/src/SimpleTicketCard/actions/Edit.tsx:14
781
-	__( 'edit ticket', 'event_espresso' ),
781
+	__('edit ticket', 'event_espresso'),
782 782
 
783 783
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:32
784
-	__( 'copy ticket', 'event_espresso' ),
784
+	__('copy ticket', 'event_espresso'),
785 785
 
786 786
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:43
787
-	__( 'edit ticket details', 'event_espresso' ),
787
+	__('edit ticket details', 'event_espresso'),
788 788
 
789 789
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:47
790
-	__( 'delete tickets', 'event_espresso' ),
790
+	__('delete tickets', 'event_espresso'),
791 791
 
792 792
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:47
793
-	__( 'trash tickets', 'event_espresso' ),
793
+	__('trash tickets', 'event_espresso'),
794 794
 
795 795
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:51
796
-	__( 'edit ticket prices', 'event_espresso' ),
796
+	__('edit ticket prices', 'event_espresso'),
797 797
 
798 798
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:14
799
-	__( 'Are you sure you want to permanently delete these tickets? This action can NOT be undone!', 'event_espresso' ),
799
+	__('Are you sure you want to permanently delete these tickets? This action can NOT be undone!', 'event_espresso'),
800 800
 
801 801
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:15
802
-	__( 'Are you sure you want to trash these tickets?', 'event_espresso' ),
802
+	__('Are you sure you want to trash these tickets?', 'event_espresso'),
803 803
 
804 804
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:16
805
-	__( 'Delete tickets permanently', 'event_espresso' ),
805
+	__('Delete tickets permanently', 'event_espresso'),
806 806
 
807 807
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:16
808
-	__( 'Trash tickets', 'event_espresso' ),
808
+	__('Trash tickets', 'event_espresso'),
809 809
 
810 810
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/EditDetails.tsx:21
811
-	__( 'Bulk edit ticket details', 'event_espresso' ),
811
+	__('Bulk edit ticket details', 'event_espresso'),
812 812
 
813 813
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/EditDetails.tsx:22
814
-	__( 'any changes will be applied to ALL of the selected tickets.', 'event_espresso' ),
814
+	__('any changes will be applied to ALL of the selected tickets.', 'event_espresso'),
815 815
 
816 816
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/EditPrices.tsx:19
817
-	__( 'Bulk edit ticket prices', 'event_espresso' ),
817
+	__('Bulk edit ticket prices', 'event_espresso'),
818 818
 
819 819
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:20
820
-	__( 'Edit all prices together', 'event_espresso' ),
820
+	__('Edit all prices together', 'event_espresso'),
821 821
 
822 822
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:21
823
-	__( 'Edit all the selected ticket prices dynamically', 'event_espresso' ),
823
+	__('Edit all the selected ticket prices dynamically', 'event_espresso'),
824 824
 
825 825
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:25
826
-	__( 'Edit prices individually', 'event_espresso' ),
826
+	__('Edit prices individually', 'event_espresso'),
827 827
 
828 828
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:26
829
-	__( 'Edit prices for each ticket individually', 'event_espresso' ),
829
+	__('Edit prices for each ticket individually', 'event_espresso'),
830 830
 
831 831
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:14
832 832
 	// Reference: packages/ee-components/src/bulkEdit/details/Submit.tsx:34
833 833
 	// Reference: packages/form/src/ResetButton.tsx:18
834 834
 	// Reference: packages/tpc/src/buttons/useResetButtonProps.tsx:12
835
-	__( 'Reset', 'event_espresso' ),
835
+	__('Reset', 'event_espresso'),
836 836
 
837 837
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:15
838 838
 	// Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:76
839 839
 	// Reference: packages/ui-components/src/Modal/useCancelButtonProps.tsx:10
840
-	__( 'Cancel', 'event_espresso' ),
840
+	__('Cancel', 'event_espresso'),
841 841
 
842 842
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/editSeparately/TPCInstance.tsx:26
843 843
 	/* translators: %s ticket name */
844
-	__( 'Edit prices for Ticket: %s', 'event_espresso' ),
844
+	__('Edit prices for Ticket: %s', 'event_espresso'),
845 845
 
846 846
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:37
847
-	__( 'Edit Ticket Sale Dates', 'event_espresso' ),
847
+	__('Edit Ticket Sale Dates', 'event_espresso'),
848 848
 
849 849
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:41
850
-	__( 'edit ticket sales start and end dates', 'event_espresso' ),
850
+	__('edit ticket sales start and end dates', 'event_espresso'),
851 851
 
852 852
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:28
853
-	__( 'quantity', 'event_espresso' ),
853
+	__('quantity', 'event_espresso'),
854 854
 
855 855
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketQuantity.tsx:27
856
-	__( 'edit quantity of tickets available…', 'event_espresso' ),
856
+	__('edit quantity of tickets available…', 'event_espresso'),
857 857
 
858 858
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:10
859
-	__( 'Move Ticket to Trash', 'event_espresso' ),
859
+	__('Move Ticket to Trash', 'event_espresso'),
860 860
 
861 861
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:15
862 862
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:52
863
-	__( 'On Sale', 'event_espresso' ),
863
+	__('On Sale', 'event_espresso'),
864 864
 
865 865
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:17
866
-	__( 'Pending', 'event_espresso' ),
866
+	__('Pending', 'event_espresso'),
867 867
 
868 868
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:7
869
-	__( 'Edit Ticket Details', 'event_espresso' ),
869
+	__('Edit Ticket Details', 'event_espresso'),
870 870
 
871 871
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:8
872
-	__( 'Manage Date Assignments', 'event_espresso' ),
872
+	__('Manage Date Assignments', 'event_espresso'),
873 873
 
874 874
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:9
875 875
 	// Reference: packages/tpc/src/components/table/Table.tsx:44
876
-	__( 'Ticket Price Calculator', 'event_espresso' ),
876
+	__('Ticket Price Calculator', 'event_espresso'),
877 877
 
878 878
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/editable/EditablePrice.tsx:37
879
-	__( 'edit ticket total…', 'event_espresso' ),
879
+	__('edit ticket total…', 'event_espresso'),
880 880
 
881 881
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/editable/EditablePrice.tsx:51
882
-	__( 'set price…', 'event_espresso' ),
882
+	__('set price…', 'event_espresso'),
883 883
 
884 884
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/IsChainedButton.tsx:23
885
-	__( 'tickets list is linked to dates list and is showing tickets for above dates only', 'event_espresso' ),
885
+	__('tickets list is linked to dates list and is showing tickets for above dates only', 'event_espresso'),
886 886
 
887 887
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/IsChainedButton.tsx:24
888
-	__( 'tickets list is unlinked and is showing tickets for all event dates', 'event_espresso' ),
888
+	__('tickets list is unlinked and is showing tickets for all event dates', 'event_espresso'),
889 889
 
890 890
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:10
891
-	__( 'ticket sales start and end dates', 'event_espresso' ),
891
+	__('ticket sales start and end dates', 'event_espresso'),
892 892
 
893 893
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:15
894
-	__( 'tickets with 90% or more sold', 'event_espresso' ),
894
+	__('tickets with 90% or more sold', 'event_espresso'),
895 895
 
896 896
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:16
897
-	__( 'tickets with 75% or more sold', 'event_espresso' ),
897
+	__('tickets with 75% or more sold', 'event_espresso'),
898 898
 
899 899
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:17
900
-	__( 'tickets with 50% or more sold', 'event_espresso' ),
900
+	__('tickets with 50% or more sold', 'event_espresso'),
901 901
 
902 902
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:19
903
-	__( 'tickets with less than 50% sold', 'event_espresso' ),
903
+	__('tickets with less than 50% sold', 'event_espresso'),
904 904
 
905 905
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:28
906
-	__( 'all tickets for all dates', 'event_espresso' ),
906
+	__('all tickets for all dates', 'event_espresso'),
907 907
 
908 908
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:29
909
-	__( 'all on sale and sale pending', 'event_espresso' ),
909
+	__('all on sale and sale pending', 'event_espresso'),
910 910
 
911 911
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:30
912
-	__( 'on sale tickets only', 'event_espresso' ),
912
+	__('on sale tickets only', 'event_espresso'),
913 913
 
914 914
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:31
915
-	__( 'sale pending tickets only', 'event_espresso' ),
915
+	__('sale pending tickets only', 'event_espresso'),
916 916
 
917 917
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:32
918
-	__( 'next on sale or sale pending only', 'event_espresso' ),
918
+	__('next on sale or sale pending only', 'event_espresso'),
919 919
 
920 920
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:33
921
-	__( 'sold out tickets only', 'event_espresso' ),
921
+	__('sold out tickets only', 'event_espresso'),
922 922
 
923 923
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:34
924
-	__( 'expired tickets only', 'event_espresso' ),
924
+	__('expired tickets only', 'event_espresso'),
925 925
 
926 926
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:35
927
-	__( 'trashed tickets only', 'event_espresso' ),
927
+	__('trashed tickets only', 'event_espresso'),
928 928
 
929 929
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:40
930
-	__( 'all tickets for above dates', 'event_espresso' ),
930
+	__('all tickets for above dates', 'event_espresso'),
931 931
 
932 932
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:44
933
-	__( 'ticket sale date', 'event_espresso' ),
933
+	__('ticket sale date', 'event_espresso'),
934 934
 
935 935
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:45
936
-	__( 'ticket name', 'event_espresso' ),
936
+	__('ticket name', 'event_espresso'),
937 937
 
938 938
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:46
939
-	__( 'ticket ID', 'event_espresso' ),
939
+	__('ticket ID', 'event_espresso'),
940 940
 
941 941
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:52
942
-	__( 'link', 'event_espresso' ),
942
+	__('link', 'event_espresso'),
943 943
 
944 944
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:8
945
-	__( 'ticket sales start date only', 'event_espresso' ),
945
+	__('ticket sales start date only', 'event_espresso'),
946 946
 
947 947
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:9
948
-	__( 'ticket sales end date only', 'event_espresso' ),
948
+	__('ticket sales end date only', 'event_espresso'),
949 949
 
950 950
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:18
951
-	__( 'Add New Ticket', 'event_espresso' ),
951
+	__('Add New Ticket', 'event_espresso'),
952 952
 
953 953
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:32
954
-	__( 'Add a single ticket and assign the dates to it', 'event_espresso' ),
954
+	__('Add a single ticket and assign the dates to it', 'event_espresso'),
955 955
 
956 956
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:34
957
-	__( 'Single Ticket', 'event_espresso' ),
957
+	__('Single Ticket', 'event_espresso'),
958 958
 
959 959
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/TableView.tsx:39
960
-	__( 'Tickets', 'event_espresso' ),
960
+	__('Tickets', 'event_espresso'),
961 961
 
962 962
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:110
963
-	__( 'Registrations', 'event_espresso' ),
963
+	__('Registrations', 'event_espresso'),
964 964
 
965 965
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:51
966
-	__( 'Goes on Sale', 'event_espresso' ),
966
+	__('Goes on Sale', 'event_espresso'),
967 967
 
968 968
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:65
969
-	__( 'Sale Ends', 'event_espresso' ),
969
+	__('Sale Ends', 'event_espresso'),
970 970
 
971 971
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:66
972
-	__( 'Ends', 'event_espresso' ),
972
+	__('Ends', 'event_espresso'),
973 973
 
974 974
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:78
975
-	__( 'Price', 'event_espresso' ),
975
+	__('Price', 'event_espresso'),
976 976
 
977 977
 	// Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:88
978
-	__( 'Quantity', 'event_espresso' ),
978
+	__('Quantity', 'event_espresso'),
979 979
 
980 980
 	// Reference: domains/wpPluginsPage/src/exitSurvey/Popup.tsx:29
981
-	__( 'Do you have a moment to share why you are deactivating Event Espresso?', 'event_espresso' ),
981
+	__('Do you have a moment to share why you are deactivating Event Espresso?', 'event_espresso'),
982 982
 
983 983
 	// Reference: domains/wpPluginsPage/src/exitSurvey/Popup.tsx:40
984
-	__( 'Skip', 'event_espresso' ),
984
+	__('Skip', 'event_espresso'),
985 985
 
986 986
 	// Reference: domains/wpPluginsPage/src/exitSurvey/Popup.tsx:42
987
-	__( 'Sure I\'ll help', 'event_espresso' ),
987
+	__('Sure I\'ll help', 'event_espresso'),
988 988
 
989 989
 	// Reference: packages/adapters/src/Pagination/Pagination.tsx:23
990
-	__( 'pagination', 'event_espresso' ),
990
+	__('pagination', 'event_espresso'),
991 991
 
992 992
 	// Reference: packages/constants/src/datetime.ts:10
993
-	__( 'Postponed', 'event_espresso' ),
993
+	__('Postponed', 'event_espresso'),
994 994
 
995 995
 	// Reference: packages/constants/src/datetime.ts:11
996
-	__( 'SoldOut', 'event_espresso' ),
996
+	__('SoldOut', 'event_espresso'),
997 997
 
998 998
 	// Reference: packages/constants/src/datetime.ts:7
999 999
 	// Reference: packages/predicates/src/registration/statusOptions.ts:10
1000
-	__( 'Cancelled', 'event_espresso' ),
1000
+	__('Cancelled', 'event_espresso'),
1001 1001
 
1002 1002
 	// Reference: packages/constants/src/datetime.ts:9
1003
-	__( 'Inactive', 'event_espresso' ),
1003
+	__('Inactive', 'event_espresso'),
1004 1004
 
1005 1005
 	// Reference: packages/dates/src/components/DateRangePicker/DateRangePickerLegend.tsx:13
1006
-	__( 'day in range', 'event_espresso' ),
1006
+	__('day in range', 'event_espresso'),
1007 1007
 
1008 1008
 	// Reference: packages/dates/src/components/DateRangePicker/DateRangePickerLegend.tsx:17
1009 1009
 	// Reference: packages/dates/src/components/DateRangePicker/index.tsx:79
1010
-	__( 'end date', 'event_espresso' ),
1010
+	__('end date', 'event_espresso'),
1011 1011
 
1012 1012
 	// Reference: packages/dates/src/components/DateTimePicker.tsx:13
1013 1013
 	// Reference: packages/dates/src/components/TimePicker.tsx:13
1014
-	__( 'time', 'event_espresso' ),
1014
+	__('time', 'event_espresso'),
1015 1015
 
1016 1016
 	// Reference: packages/dates/src/constants.ts:5
1017
-	__( 'End Date & Time must be set later than the Start Date & Time', 'event_espresso' ),
1017
+	__('End Date & Time must be set later than the Start Date & Time', 'event_espresso'),
1018 1018
 
1019 1019
 	// Reference: packages/dates/src/constants.ts:7
1020
-	__( 'Start Date & Time must be set before the End Date & Time', 'event_espresso' ),
1020
+	__('Start Date & Time must be set before the End Date & Time', 'event_espresso'),
1021 1021
 
1022 1022
 	// Reference: packages/dates/src/utils/misc.ts:15
1023
-	__( 'month(s)', 'event_espresso' ),
1023
+	__('month(s)', 'event_espresso'),
1024 1024
 
1025 1025
 	// Reference: packages/dates/src/utils/misc.ts:16
1026
-	__( 'week(s)', 'event_espresso' ),
1026
+	__('week(s)', 'event_espresso'),
1027 1027
 
1028 1028
 	// Reference: packages/dates/src/utils/misc.ts:17
1029
-	__( 'day(s)', 'event_espresso' ),
1029
+	__('day(s)', 'event_espresso'),
1030 1030
 
1031 1031
 	// Reference: packages/dates/src/utils/misc.ts:18
1032
-	__( 'hour(s)', 'event_espresso' ),
1032
+	__('hour(s)', 'event_espresso'),
1033 1033
 
1034 1034
 	// Reference: packages/dates/src/utils/misc.ts:19
1035
-	__( 'minute(s)', 'event_espresso' ),
1035
+	__('minute(s)', 'event_espresso'),
1036 1036
 
1037 1037
 	// Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:109
1038
-	__( 'datetimes initialized', 'event_espresso' ),
1038
+	__('datetimes initialized', 'event_espresso'),
1039 1039
 
1040 1040
 	// Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:119
1041
-	__( 'tickets initialized', 'event_espresso' ),
1041
+	__('tickets initialized', 'event_espresso'),
1042 1042
 
1043 1043
 	// Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:129
1044
-	__( 'prices initialized', 'event_espresso' ),
1044
+	__('prices initialized', 'event_espresso'),
1045 1045
 
1046 1046
 	// Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:99
1047
-	__( 'price types initialized', 'event_espresso' ),
1047
+	__('price types initialized', 'event_espresso'),
1048 1048
 
1049 1049
 	// Reference: packages/edtr-services/src/apollo/mutations/useReorderEntities.ts:72
1050
-	__( 'reordering has been applied', 'event_espresso' ),
1050
+	__('reordering has been applied', 'event_espresso'),
1051 1051
 
1052 1052
 	// Reference: packages/edtr-services/src/utils/dateAndTime.ts:38
1053 1053
 	// Reference: packages/ui-components/src/EditDateRangeButton/EditDateRangeButton.tsx:39
1054
-	__( 'End date has been adjusted', 'event_espresso' ),
1054
+	__('End date has been adjusted', 'event_espresso'),
1055 1055
 
1056 1056
 	// Reference: packages/edtr-services/src/utils/dateAndTime.ts:59
1057
-	__( 'Required', 'event_espresso' ),
1057
+	__('Required', 'event_espresso'),
1058 1058
 
1059 1059
 	// Reference: packages/edtr-services/src/utils/dateAndTime.ts:64
1060
-	__( 'Start Date is required', 'event_espresso' ),
1060
+	__('Start Date is required', 'event_espresso'),
1061 1061
 
1062 1062
 	// Reference: packages/edtr-services/src/utils/dateAndTime.ts:68
1063
-	__( 'End Date is required', 'event_espresso' ),
1063
+	__('End Date is required', 'event_espresso'),
1064 1064
 
1065 1065
 	// Reference: packages/ee-components/src/EntityList/EntityList.tsx:31
1066
-	__( 'no results found', 'event_espresso' ),
1066
+	__('no results found', 'event_espresso'),
1067 1067
 
1068 1068
 	// Reference: packages/ee-components/src/EntityList/EntityList.tsx:32
1069
-	__( 'try changing filter settings', 'event_espresso' ),
1069
+	__('try changing filter settings', 'event_espresso'),
1070 1070
 
1071 1071
 	// Reference: packages/ee-components/src/SimpleTicketCard/SimpleTicketCard.tsx:25
1072 1072
 	// Reference: packages/ui-components/src/CalendarDateSwitcher/CalendarDateSwitcher.tsx:34
1073
-	__( 'starts', 'event_espresso' ),
1073
+	__('starts', 'event_espresso'),
1074 1074
 
1075 1075
 	// Reference: packages/ee-components/src/SimpleTicketCard/SimpleTicketCard.tsx:32
1076 1076
 	// Reference: packages/ui-components/src/CalendarDateSwitcher/CalendarDateSwitcher.tsx:47
1077
-	__( 'ends', 'event_espresso' ),
1077
+	__('ends', 'event_espresso'),
1078 1078
 
1079 1079
 	// Reference: packages/ee-components/src/bulkEdit/ActionCheckbox.tsx:38
1080 1080
 	/* translators: %d entity id */
1081
-	__( 'select entity with id %d', 'event_espresso' ),
1081
+	__('select entity with id %d', 'event_espresso'),
1082 1082
 
1083 1083
 	// Reference: packages/ee-components/src/bulkEdit/ActionCheckbox.tsx:41
1084
-	__( 'select all entities', 'event_espresso' ),
1084
+	__('select all entities', 'event_espresso'),
1085 1085
 
1086 1086
 	// Reference: packages/ee-components/src/bulkEdit/details/BulkEditDetails.tsx:20
1087
-	__( 'Note: ', 'event_espresso' ),
1087
+	__('Note: ', 'event_espresso'),
1088 1088
 
1089 1089
 	// Reference: packages/ee-components/src/bulkEdit/details/BulkEditDetails.tsx:20
1090
-	__( 'any changes will be applied to ALL of the selected entities.', 'event_espresso' ),
1090
+	__('any changes will be applied to ALL of the selected entities.', 'event_espresso'),
1091 1091
 
1092 1092
 	// Reference: packages/ee-components/src/bulkEdit/details/BulkEditDetails.tsx:26
1093
-	__( 'Bulk edit details', 'event_espresso' ),
1093
+	__('Bulk edit details', 'event_espresso'),
1094 1094
 
1095 1095
 	// Reference: packages/ee-components/src/bulkEdit/details/Submit.tsx:17
1096
-	__( 'Are you sure you want to bulk update the details?', 'event_espresso' ),
1096
+	__('Are you sure you want to bulk update the details?', 'event_espresso'),
1097 1097
 
1098 1098
 	// Reference: packages/ee-components/src/bulkEdit/details/Submit.tsx:18
1099
-	__( 'Bulk update details', 'event_espresso' ),
1099
+	__('Bulk update details', 'event_espresso'),
1100 1100
 
1101 1101
 	// Reference: packages/ee-components/src/filterBar/SortByControl/index.tsx:26
1102
-	__( 'reorder dates', 'event_espresso' ),
1102
+	__('reorder dates', 'event_espresso'),
1103 1103
 
1104 1104
 	// Reference: packages/ee-components/src/filterBar/SortByControl/index.tsx:26
1105
-	__( 'reorder tickets', 'event_espresso' ),
1105
+	__('reorder tickets', 'event_espresso'),
1106 1106
 
1107 1107
 	// Reference: packages/form/src/renderers/RepeatableRenderer.tsx:36
1108 1108
 	/* translators: %d the entry number */
1109
-	__( 'Entry %d', 'event_espresso' ),
1109
+	__('Entry %d', 'event_espresso'),
1110 1110
 
1111 1111
 	// Reference: packages/form/src/renderers/RepeatableRenderer.tsx:52
1112 1112
 	// Reference: packages/ui-components/src/SimpleEntityList/EntityTemplate.tsx:27
1113
-	__( 'Add', 'event_espresso' ),
1113
+	__('Add', 'event_espresso'),
1114 1114
 
1115 1115
 	// Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:11
1116 1116
 	// Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:17
1117
-	__( 'sold out', 'event_espresso' ),
1117
+	__('sold out', 'event_espresso'),
1118 1118
 
1119 1119
 	// Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:14
1120 1120
 	// Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:14
1121
-	__( 'expired', 'event_espresso' ),
1121
+	__('expired', 'event_espresso'),
1122 1122
 
1123 1123
 	// Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:17
1124
-	__( 'upcoming', 'event_espresso' ),
1124
+	__('upcoming', 'event_espresso'),
1125 1125
 
1126 1126
 	// Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:20
1127
-	__( 'active', 'event_espresso' ),
1127
+	__('active', 'event_espresso'),
1128 1128
 
1129 1129
 	// Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:23
1130 1130
 	// Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:11
1131
-	__( 'trashed', 'event_espresso' ),
1131
+	__('trashed', 'event_espresso'),
1132 1132
 
1133 1133
 	// Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:26
1134
-	__( 'cancelled', 'event_espresso' ),
1134
+	__('cancelled', 'event_espresso'),
1135 1135
 
1136 1136
 	// Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:29
1137
-	__( 'postponed', 'event_espresso' ),
1137
+	__('postponed', 'event_espresso'),
1138 1138
 
1139 1139
 	// Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:33
1140
-	__( 'inactive', 'event_espresso' ),
1140
+	__('inactive', 'event_espresso'),
1141 1141
 
1142 1142
 	// Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:20
1143
-	__( 'pending', 'event_espresso' ),
1143
+	__('pending', 'event_espresso'),
1144 1144
 
1145 1145
 	// Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:23
1146
-	__( 'on sale', 'event_espresso' ),
1146
+	__('on sale', 'event_espresso'),
1147 1147
 
1148 1148
 	// Reference: packages/predicates/src/registration/statusOptions.ts:14
1149
-	__( 'Declined', 'event_espresso' ),
1149
+	__('Declined', 'event_espresso'),
1150 1150
 
1151 1151
 	// Reference: packages/predicates/src/registration/statusOptions.ts:18
1152
-	__( 'Incomplete', 'event_espresso' ),
1152
+	__('Incomplete', 'event_espresso'),
1153 1153
 
1154 1154
 	// Reference: packages/predicates/src/registration/statusOptions.ts:22
1155
-	__( 'Not Approved', 'event_espresso' ),
1155
+	__('Not Approved', 'event_espresso'),
1156 1156
 
1157 1157
 	// Reference: packages/predicates/src/registration/statusOptions.ts:26
1158
-	__( 'Pending Payment', 'event_espresso' ),
1158
+	__('Pending Payment', 'event_espresso'),
1159 1159
 
1160 1160
 	// Reference: packages/predicates/src/registration/statusOptions.ts:30
1161
-	__( 'Wait List', 'event_espresso' ),
1161
+	__('Wait List', 'event_espresso'),
1162 1162
 
1163 1163
 	// Reference: packages/predicates/src/registration/statusOptions.ts:6
1164
-	__( 'Approved', 'event_espresso' ),
1164
+	__('Approved', 'event_espresso'),
1165 1165
 
1166 1166
 	// Reference: packages/rich-text-editor/src/components/AdvancedTextEditor/toolbarButtons/WPMedia.tsx:10
1167 1167
 	// Reference: packages/rich-text-editor/src/rte-old/components/toolbarButtons/WPMedia.tsx:12
1168
-	__( 'Select', 'event_espresso' ),
1168
+	__('Select', 'event_espresso'),
1169 1169
 
1170 1170
 	// Reference: packages/rich-text-editor/src/components/AdvancedTextEditor/toolbarButtons/WPMedia.tsx:8
1171 1171
 	// Reference: packages/rich-text-editor/src/rte-old/components/toolbarButtons/WPMedia.tsx:10
1172
-	__( 'Select media', 'event_espresso' ),
1172
+	__('Select media', 'event_espresso'),
1173 1173
 
1174 1174
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/RichTextEditor.tsx:81
1175
-	__( 'Write something…', 'event_espresso' ),
1175
+	__('Write something…', 'event_espresso'),
1176 1176
 
1177 1177
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/Toolbar.tsx:20
1178
-	__( 'RTE Toolbar', 'event_espresso' ),
1178
+	__('RTE Toolbar', 'event_espresso'),
1179 1179
 
1180 1180
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:11
1181
-	__( 'Normal', 'event_espresso' ),
1181
+	__('Normal', 'event_espresso'),
1182 1182
 
1183 1183
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:12
1184
-	__( 'H1', 'event_espresso' ),
1184
+	__('H1', 'event_espresso'),
1185 1185
 
1186 1186
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:13
1187
-	__( 'H2', 'event_espresso' ),
1187
+	__('H2', 'event_espresso'),
1188 1188
 
1189 1189
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:14
1190
-	__( 'H3', 'event_espresso' ),
1190
+	__('H3', 'event_espresso'),
1191 1191
 
1192 1192
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:15
1193
-	__( 'H4', 'event_espresso' ),
1193
+	__('H4', 'event_espresso'),
1194 1194
 
1195 1195
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:16
1196
-	__( 'H5', 'event_espresso' ),
1196
+	__('H5', 'event_espresso'),
1197 1197
 
1198 1198
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:17
1199
-	__( 'H6', 'event_espresso' ),
1199
+	__('H6', 'event_espresso'),
1200 1200
 
1201 1201
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:18
1202
-	__( 'Block quote', 'event_espresso' ),
1202
+	__('Block quote', 'event_espresso'),
1203 1203
 
1204 1204
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:19
1205
-	__( 'Code', 'event_espresso' ),
1205
+	__('Code', 'event_espresso'),
1206 1206
 
1207 1207
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/colorPicker/Component.tsx:34
1208
-	__( 'Set color', 'event_espresso' ),
1208
+	__('Set color', 'event_espresso'),
1209 1209
 
1210 1210
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/colorPicker/Component.tsx:40
1211
-	__( 'Text color', 'event_espresso' ),
1211
+	__('Text color', 'event_espresso'),
1212 1212
 
1213 1213
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/colorPicker/Component.tsx:42
1214
-	__( 'Background color', 'event_espresso' ),
1214
+	__('Background color', 'event_espresso'),
1215 1215
 
1216 1216
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:33
1217
-	__( 'Add image', 'event_espresso' ),
1217
+	__('Add image', 'event_espresso'),
1218 1218
 
1219 1219
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:42
1220
-	__( 'Image URL', 'event_espresso' ),
1220
+	__('Image URL', 'event_espresso'),
1221 1221
 
1222 1222
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:46
1223
-	__( 'Alt text', 'event_espresso' ),
1223
+	__('Alt text', 'event_espresso'),
1224 1224
 
1225 1225
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:47
1226
-	__( 'Width', 'event_espresso' ),
1226
+	__('Width', 'event_espresso'),
1227 1227
 
1228 1228
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:51
1229
-	__( 'Height', 'event_espresso' ),
1229
+	__('Height', 'event_espresso'),
1230 1230
 
1231 1231
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/link/Component.tsx:48
1232
-	__( 'Edit link', 'event_espresso' ),
1232
+	__('Edit link', 'event_espresso'),
1233 1233
 
1234 1234
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/link/Component.tsx:54
1235
-	__( 'URL title', 'event_espresso' ),
1235
+	__('URL title', 'event_espresso'),
1236 1236
 
1237 1237
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:11
1238
-	__( 'Unordered list', 'event_espresso' ),
1238
+	__('Unordered list', 'event_espresso'),
1239 1239
 
1240 1240
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:12
1241
-	__( 'Ordered list', 'event_espresso' ),
1241
+	__('Ordered list', 'event_espresso'),
1242 1242
 
1243 1243
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:13
1244 1244
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:13
1245
-	__( 'Indent', 'event_espresso' ),
1245
+	__('Indent', 'event_espresso'),
1246 1246
 
1247 1247
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:14
1248 1248
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:14
1249
-	__( 'Outdent', 'event_espresso' ),
1249
+	__('Outdent', 'event_espresso'),
1250 1250
 
1251 1251
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:11
1252
-	__( 'Unordered textalign', 'event_espresso' ),
1252
+	__('Unordered textalign', 'event_espresso'),
1253 1253
 
1254 1254
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:12
1255
-	__( 'Ordered textalign', 'event_espresso' ),
1255
+	__('Ordered textalign', 'event_espresso'),
1256 1256
 
1257 1257
 	// Reference: packages/rich-text-editor/src/components/RichTextEditor/render/Image/Toolbar.tsx:30
1258
-	__( 'Image toolbar', 'event_espresso' ),
1258
+	__('Image toolbar', 'event_espresso'),
1259 1259
 
1260 1260
 	// Reference: packages/rich-text-editor/src/components/WithEditMode/WithEditMode.tsx:59
1261 1261
 	// Reference: packages/rich-text-editor/src/rte-old/components/RTEWithEditMode/RTEWithEditMode.tsx:33
1262
-	__( 'Visual editor', 'event_espresso' ),
1262
+	__('Visual editor', 'event_espresso'),
1263 1263
 
1264 1264
 	// Reference: packages/rich-text-editor/src/components/WithEditMode/WithEditMode.tsx:60
1265 1265
 	// Reference: packages/rich-text-editor/src/rte-old/components/RTEWithEditMode/RTEWithEditMode.tsx:34
1266
-	__( 'HTML editor', 'event_espresso' ),
1266
+	__('HTML editor', 'event_espresso'),
1267 1267
 
1268 1268
 	// Reference: packages/rich-text-editor/src/rte-old/components/toolbarButtons/WPMedia.tsx:68
1269
-	__( 'Add Media', 'event_espresso' ),
1269
+	__('Add Media', 'event_espresso'),
1270 1270
 
1271 1271
 	// Reference: packages/tpc/src/buttons/AddPriceModifierButton.tsx:14
1272
-	__( 'add new price modifier after this row', 'event_espresso' ),
1272
+	__('add new price modifier after this row', 'event_espresso'),
1273 1273
 
1274 1274
 	// Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:14
1275
-	__( 'Delete all prices', 'event_espresso' ),
1275
+	__('Delete all prices', 'event_espresso'),
1276 1276
 
1277 1277
 	// Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:27
1278
-	__( 'Are you sure you want to delete all of this ticket\'s prices and make it free? This action is permanent and can not be undone.', 'event_espresso' ),
1278
+	__('Are you sure you want to delete all of this ticket\'s prices and make it free? This action is permanent and can not be undone.', 'event_espresso'),
1279 1279
 
1280 1280
 	// Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:31
1281
-	__( 'Delete all prices?', 'event_espresso' ),
1281
+	__('Delete all prices?', 'event_espresso'),
1282 1282
 
1283 1283
 	// Reference: packages/tpc/src/buttons/DeletePriceModifierButton.tsx:12
1284
-	__( 'delete price modifier', 'event_espresso' ),
1284
+	__('delete price modifier', 'event_espresso'),
1285 1285
 
1286 1286
 	// Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:14
1287
-	__( 'Ticket base price is being reverse calculated from bottom to top starting with the ticket total. Entering a new ticket total will reverse calculate the ticket base price after applying all price modifiers in reverse. Click to turn off reverse calculations', 'event_espresso' ),
1287
+	__('Ticket base price is being reverse calculated from bottom to top starting with the ticket total. Entering a new ticket total will reverse calculate the ticket base price after applying all price modifiers in reverse. Click to turn off reverse calculations', 'event_espresso'),
1288 1288
 
1289 1289
 	// Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:17
1290
-	__( 'Ticket total is being calculated normally from top to bottom starting from the base price. Entering a new ticket base price will recalculate the ticket total after applying all price modifiers. Click to turn on reverse calculations', 'event_espresso' ),
1290
+	__('Ticket total is being calculated normally from top to bottom starting from the base price. Entering a new ticket base price will recalculate the ticket total after applying all price modifiers. Click to turn on reverse calculations', 'event_espresso'),
1291 1291
 
1292 1292
 	// Reference: packages/tpc/src/buttons/TicketPriceCalculatorButton.tsx:28
1293
-	__( 'ticket price calculator', 'event_espresso' ),
1293
+	__('ticket price calculator', 'event_espresso'),
1294 1294
 
1295 1295
 	// Reference: packages/tpc/src/buttons/taxes/AddDefaultTaxesButton.tsx:9
1296
-	__( 'Add default taxes', 'event_espresso' ),
1296
+	__('Add default taxes', 'event_espresso'),
1297 1297
 
1298 1298
 	// Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:10
1299
-	__( 'Are you sure you want to remove all of this ticket\'s taxes?', 'event_espresso' ),
1299
+	__('Are you sure you want to remove all of this ticket\'s taxes?', 'event_espresso'),
1300 1300
 
1301 1301
 	// Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:14
1302
-	__( 'Remove all taxes?', 'event_espresso' ),
1302
+	__('Remove all taxes?', 'event_espresso'),
1303 1303
 
1304 1304
 	// Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:7
1305
-	__( 'Remove taxes', 'event_espresso' ),
1305
+	__('Remove taxes', 'event_espresso'),
1306 1306
 
1307 1307
 	// Reference: packages/tpc/src/components/DefaultPricesInfo.tsx:29
1308
-	__( 'Modify default prices.', 'event_espresso' ),
1308
+	__('Modify default prices.', 'event_espresso'),
1309 1309
 
1310 1310
 	// Reference: packages/tpc/src/components/DefaultTaxesInfo.tsx:29
1311
-	__( 'New default taxes are available. Click the - Add default taxes - button to add them now.', 'event_espresso' ),
1311
+	__('New default taxes are available. Click the - Add default taxes - button to add them now.', 'event_espresso'),
1312 1312
 
1313 1313
 	// Reference: packages/tpc/src/components/LockedTicketsBanner.tsx:12
1314
-	__( 'Editing of prices is disabled', 'event_espresso' ),
1314
+	__('Editing of prices is disabled', 'event_espresso'),
1315 1315
 
1316 1316
 	// Reference: packages/tpc/src/components/NoPricesBanner/AddDefaultPricesButton.tsx:9
1317
-	__( 'Add default prices', 'event_espresso' ),
1317
+	__('Add default prices', 'event_espresso'),
1318 1318
 
1319 1319
 	// Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:13
1320
-	__( 'This Ticket is Currently Free', 'event_espresso' ),
1320
+	__('This Ticket is Currently Free', 'event_espresso'),
1321 1321
 
1322 1322
 	// Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:21
1323 1323
 	/* translators: %s default prices */
1324
-	__( 'Click the button below to load your %s into the calculator.', 'event_espresso' ),
1324
+	__('Click the button below to load your %s into the calculator.', 'event_espresso'),
1325 1325
 
1326 1326
 	// Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:22
1327
-	__( 'default prices', 'event_espresso' ),
1327
+	__('default prices', 'event_espresso'),
1328 1328
 
1329 1329
 	// Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:29
1330
-	__( 'Additional ticket price modifiers can be added or removed.', 'event_espresso' ),
1330
+	__('Additional ticket price modifiers can be added or removed.', 'event_espresso'),
1331 1331
 
1332 1332
 	// Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:32
1333
-	__( 'Click the save button below to assign which dates this ticket will be available for purchase on.', 'event_espresso' ),
1333
+	__('Click the save button below to assign which dates this ticket will be available for purchase on.', 'event_espresso'),
1334 1334
 
1335 1335
 	// Reference: packages/tpc/src/components/TicketPriceCalculatorModal.tsx:32
1336 1336
 	/* translators: %s ticket name */
1337
-	__( 'Price Calculator for Ticket: %s', 'event_espresso' ),
1337
+	__('Price Calculator for Ticket: %s', 'event_espresso'),
1338 1338
 
1339 1339
 	// Reference: packages/tpc/src/components/table/useFooterRowGenerator.tsx:42
1340
-	__( 'Total', 'event_espresso' ),
1340
+	__('Total', 'event_espresso'),
1341 1341
 
1342 1342
 	// Reference: packages/tpc/src/components/table/useFooterRowGenerator.tsx:51
1343
-	__( 'ticket total', 'event_espresso' ),
1343
+	__('ticket total', 'event_espresso'),
1344 1344
 
1345 1345
 	// Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:29
1346
-	__( 'Price Type', 'event_espresso' ),
1346
+	__('Price Type', 'event_espresso'),
1347 1347
 
1348 1348
 	// Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:35
1349
-	__( 'Label', 'event_espresso' ),
1349
+	__('Label', 'event_espresso'),
1350 1350
 
1351 1351
 	// Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:47
1352
-	__( 'Amount', 'event_espresso' ),
1352
+	__('Amount', 'event_espresso'),
1353 1353
 
1354 1354
 	// Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:22
1355
-	__( 'Copy ticket', 'event_espresso' ),
1355
+	__('Copy ticket', 'event_espresso'),
1356 1356
 
1357 1357
 	// Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:26
1358
-	__( 'Copy and archive this ticket', 'event_espresso' ),
1358
+	__('Copy and archive this ticket', 'event_espresso'),
1359 1359
 
1360 1360
 	// Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:29
1361
-	__( 'OK', 'event_espresso' ),
1361
+	__('OK', 'event_espresso'),
1362 1362
 
1363 1363
 	// Reference: packages/tpc/src/inputs/PriceAmountInput.tsx:30
1364
-	__( 'amount', 'event_espresso' ),
1364
+	__('amount', 'event_espresso'),
1365 1365
 
1366 1366
 	// Reference: packages/tpc/src/inputs/PriceAmountInput.tsx:41
1367
-	__( 'amount…', 'event_espresso' ),
1367
+	__('amount…', 'event_espresso'),
1368 1368
 
1369 1369
 	// Reference: packages/tpc/src/inputs/PriceDescriptionInput.tsx:14
1370
-	__( 'description…', 'event_espresso' ),
1370
+	__('description…', 'event_espresso'),
1371 1371
 
1372 1372
 	// Reference: packages/tpc/src/inputs/PriceDescriptionInput.tsx:9
1373
-	__( 'price description', 'event_espresso' ),
1373
+	__('price description', 'event_espresso'),
1374 1374
 
1375 1375
 	// Reference: packages/tpc/src/inputs/PriceIdInput.tsx:7
1376
-	__( 'price id', 'event_espresso' ),
1376
+	__('price id', 'event_espresso'),
1377 1377
 
1378 1378
 	// Reference: packages/tpc/src/inputs/PriceNameInput.tsx:13
1379
-	__( 'label…', 'event_espresso' ),
1379
+	__('label…', 'event_espresso'),
1380 1380
 
1381 1381
 	// Reference: packages/tpc/src/inputs/PriceNameInput.tsx:8
1382
-	__( 'price name', 'event_espresso' ),
1382
+	__('price name', 'event_espresso'),
1383 1383
 
1384 1384
 	// Reference: packages/tpc/src/inputs/PriceTypeInput.tsx:19
1385
-	__( 'price type', 'event_espresso' ),
1385
+	__('price type', 'event_espresso'),
1386 1386
 
1387 1387
 	// Reference: packages/tpc/src/utils/constants.ts:8
1388
-	__( 'Ticket price modifications are blocked for Tickets that have already been sold to registrants, because doing so would negatively affect internal accounting for the event. If you still need to modify ticket prices, then create a copy of those tickets, edit the prices for the new tickets, and then trash the old tickets.', 'event_espresso' ),
1388
+	__('Ticket price modifications are blocked for Tickets that have already been sold to registrants, because doing so would negatively affect internal accounting for the event. If you still need to modify ticket prices, then create a copy of those tickets, edit the prices for the new tickets, and then trash the old tickets.', 'event_espresso'),
1389 1389
 
1390 1390
 	// Reference: packages/ui-components/src/ActiveFilters/ActiveFilters.tsx:8
1391
-	__( 'active filters:', 'event_espresso' ),
1391
+	__('active filters:', 'event_espresso'),
1392 1392
 
1393 1393
 	// Reference: packages/ui-components/src/ActiveFilters/FilterTag.tsx:10
1394 1394
 	/* translators: %s filter name */
1395
-	__( 'remove filter - %s', 'event_espresso' ),
1395
+	__('remove filter - %s', 'event_espresso'),
1396 1396
 
1397 1397
 	// Reference: packages/ui-components/src/CalendarDateRange/CalendarDateRange.tsx:37
1398
-	__( 'to', 'event_espresso' ),
1398
+	__('to', 'event_espresso'),
1399 1399
 
1400 1400
 	// Reference: packages/ui-components/src/CalendarPageDate/CalendarPageDate.tsx:54
1401
-	__( 'TO', 'event_espresso' ),
1401
+	__('TO', 'event_espresso'),
1402 1402
 
1403 1403
 	// Reference: packages/ui-components/src/ColorPicker/ColorPicker.tsx:60
1404
-	__( 'Custom color', 'event_espresso' ),
1404
+	__('Custom color', 'event_espresso'),
1405 1405
 
1406 1406
 	// Reference: packages/ui-components/src/ColorPicker/Swatch.tsx:23
1407 1407
 	/* translators: color name */
1408
-	__( 'Color: %s', 'event_espresso' ),
1408
+	__('Color: %s', 'event_espresso'),
1409 1409
 
1410 1410
 	// Reference: packages/ui-components/src/ColorPicker/constants.ts:13
1411
-	__( 'Cyan bluish gray', 'event_espresso' ),
1411
+	__('Cyan bluish gray', 'event_espresso'),
1412 1412
 
1413 1413
 	// Reference: packages/ui-components/src/ColorPicker/constants.ts:17
1414
-	__( 'White', 'event_espresso' ),
1414
+	__('White', 'event_espresso'),
1415 1415
 
1416 1416
 	// Reference: packages/ui-components/src/ColorPicker/constants.ts:21
1417
-	__( 'Pale pink', 'event_espresso' ),
1417
+	__('Pale pink', 'event_espresso'),
1418 1418
 
1419 1419
 	// Reference: packages/ui-components/src/ColorPicker/constants.ts:25
1420
-	__( 'Vivid red', 'event_espresso' ),
1420
+	__('Vivid red', 'event_espresso'),
1421 1421
 
1422 1422
 	// Reference: packages/ui-components/src/ColorPicker/constants.ts:29
1423
-	__( 'Luminous vivid orange', 'event_espresso' ),
1423
+	__('Luminous vivid orange', 'event_espresso'),
1424 1424
 
1425 1425
 	// Reference: packages/ui-components/src/ColorPicker/constants.ts:33
1426
-	__( 'Luminous vivid amber', 'event_espresso' ),
1426
+	__('Luminous vivid amber', 'event_espresso'),
1427 1427
 
1428 1428
 	// Reference: packages/ui-components/src/ColorPicker/constants.ts:37
1429
-	__( 'Light green cyan', 'event_espresso' ),
1429
+	__('Light green cyan', 'event_espresso'),
1430 1430
 
1431 1431
 	// Reference: packages/ui-components/src/ColorPicker/constants.ts:41
1432
-	__( 'Vivid green cyan', 'event_espresso' ),
1432
+	__('Vivid green cyan', 'event_espresso'),
1433 1433
 
1434 1434
 	// Reference: packages/ui-components/src/ColorPicker/constants.ts:45
1435
-	__( 'Pale cyan blue', 'event_espresso' ),
1435
+	__('Pale cyan blue', 'event_espresso'),
1436 1436
 
1437 1437
 	// Reference: packages/ui-components/src/ColorPicker/constants.ts:49
1438
-	__( 'Vivid cyan blue', 'event_espresso' ),
1438
+	__('Vivid cyan blue', 'event_espresso'),
1439 1439
 
1440 1440
 	// Reference: packages/ui-components/src/ColorPicker/constants.ts:53
1441
-	__( 'Vivid purple', 'event_espresso' ),
1441
+	__('Vivid purple', 'event_espresso'),
1442 1442
 
1443 1443
 	// Reference: packages/ui-components/src/ColorPicker/constants.ts:9
1444
-	__( 'Black', 'event_espresso' ),
1444
+	__('Black', 'event_espresso'),
1445 1445
 
1446 1446
 	// Reference: packages/ui-components/src/Confirm/ConfirmClose.tsx:7
1447 1447
 	// Reference: packages/ui-components/src/Modal/ModalWithAlert.tsx:22
1448
-	__( 'Are you sure you want to close this?', 'event_espresso' ),
1448
+	__('Are you sure you want to close this?', 'event_espresso'),
1449 1449
 
1450 1450
 	// Reference: packages/ui-components/src/Confirm/ConfirmDelete.tsx:7
1451
-	__( 'Are you sure you want to delete this?', 'event_espresso' ),
1451
+	__('Are you sure you want to delete this?', 'event_espresso'),
1452 1452
 
1453 1453
 	// Reference: packages/ui-components/src/Confirm/useConfirmWithButton.tsx:10
1454
-	__( 'Please confirm this action.', 'event_espresso' ),
1454
+	__('Please confirm this action.', 'event_espresso'),
1455 1455
 
1456 1456
 	// Reference: packages/ui-components/src/Confirm/useConfirmationDialog.tsx:32
1457
-	__( 'No', 'event_espresso' ),
1457
+	__('No', 'event_espresso'),
1458 1458
 
1459 1459
 	// Reference: packages/ui-components/src/Confirm/useConfirmationDialog.tsx:33
1460
-	__( 'Yes', 'event_espresso' ),
1460
+	__('Yes', 'event_espresso'),
1461 1461
 
1462 1462
 	// Reference: packages/ui-components/src/CurrencyDisplay/CurrencyDisplay.tsx:34
1463
-	__( 'free', 'event_espresso' ),
1463
+	__('free', 'event_espresso'),
1464 1464
 
1465 1465
 	// Reference: packages/ui-components/src/DateTimeRangePicker/DateTimeRangePicker.tsx:117
1466 1466
 	// Reference: packages/ui-components/src/Popover/PopoverForm/PopoverForm.tsx:43
1467
-	__( 'save', 'event_espresso' ),
1467
+	__('save', 'event_espresso'),
1468 1468
 
1469 1469
 	// Reference: packages/ui-components/src/DebugInfo/DebugInfo.tsx:36
1470
-	__( 'Hide Debug Info', 'event_espresso' ),
1470
+	__('Hide Debug Info', 'event_espresso'),
1471 1471
 
1472 1472
 	// Reference: packages/ui-components/src/DebugInfo/DebugInfo.tsx:36
1473
-	__( 'Show Debug Info', 'event_espresso' ),
1473
+	__('Show Debug Info', 'event_espresso'),
1474 1474
 
1475 1475
 	// Reference: packages/ui-components/src/EditDateRangeButton/EditDateRangeButton.tsx:49
1476
-	__( 'Edit Start and End Dates and Times', 'event_espresso' ),
1476
+	__('Edit Start and End Dates and Times', 'event_espresso'),
1477 1477
 
1478 1478
 	// Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/Copy.tsx:8
1479
-	__( 'copy', 'event_espresso' ),
1479
+	__('copy', 'event_espresso'),
1480 1480
 
1481 1481
 	// Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/Edit.tsx:8
1482
-	__( 'edit', 'event_espresso' ),
1482
+	__('edit', 'event_espresso'),
1483 1483
 
1484 1484
 	// Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/Trash.tsx:8
1485
-	__( 'trash', 'event_espresso' ),
1485
+	__('trash', 'event_espresso'),
1486 1486
 
1487 1487
 	// Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/Untrash.tsx:8
1488
-	__( 'untrash', 'event_espresso' ),
1488
+	__('untrash', 'event_espresso'),
1489 1489
 
1490 1490
 	// Reference: packages/ui-components/src/EntityDetailsPanel/EntityDetailsPanelSold.tsx:37
1491
-	__( 'view approved registrations for this date.', 'event_espresso' ),
1491
+	__('view approved registrations for this date.', 'event_espresso'),
1492 1492
 
1493 1493
 	// Reference: packages/ui-components/src/EntityDetailsPanel/EntityDetailsPanelSold.tsx:38
1494
-	__( 'view approved registrations for this ticket.', 'event_espresso' ),
1494
+	__('view approved registrations for this ticket.', 'event_espresso'),
1495 1495
 
1496 1496
 	// Reference: packages/ui-components/src/EntityList/filterBar/buttons/CardViewFilterButton.tsx:21
1497
-	__( 'card view', 'event_espresso' ),
1497
+	__('card view', 'event_espresso'),
1498 1498
 
1499 1499
 	// Reference: packages/ui-components/src/EntityList/filterBar/buttons/TableViewFilterButton.tsx:20
1500
-	__( 'table view', 'event_espresso' ),
1500
+	__('table view', 'event_espresso'),
1501 1501
 
1502 1502
 	// Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleBulkActionsButton.tsx:8
1503
-	__( 'hide bulk actions', 'event_espresso' ),
1503
+	__('hide bulk actions', 'event_espresso'),
1504 1504
 
1505 1505
 	// Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleBulkActionsButton.tsx:8
1506
-	__( 'show bulk actions', 'event_espresso' ),
1506
+	__('show bulk actions', 'event_espresso'),
1507 1507
 
1508 1508
 	// Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleFiltersButton.tsx:9
1509
-	__( 'hide filters', 'event_espresso' ),
1509
+	__('hide filters', 'event_espresso'),
1510 1510
 
1511 1511
 	// Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleFiltersButton.tsx:9
1512
-	__( 'show filters', 'event_espresso' ),
1512
+	__('show filters', 'event_espresso'),
1513 1513
 
1514 1514
 	// Reference: packages/ui-components/src/Legend/ToggleLegendButton.tsx:26
1515
-	__( 'hide legend', 'event_espresso' ),
1515
+	__('hide legend', 'event_espresso'),
1516 1516
 
1517 1517
 	// Reference: packages/ui-components/src/Legend/ToggleLegendButton.tsx:26
1518
-	__( 'show legend', 'event_espresso' ),
1518
+	__('show legend', 'event_espresso'),
1519 1519
 
1520 1520
 	// Reference: packages/ui-components/src/LoadingNotice/LoadingNotice.tsx:11
1521
-	__( 'loading…', 'event_espresso' ),
1521
+	__('loading…', 'event_espresso'),
1522 1522
 
1523 1523
 	// Reference: packages/ui-components/src/Modal/Modal.tsx:58
1524
-	__( 'close modal', 'event_espresso' ),
1524
+	__('close modal', 'event_espresso'),
1525 1525
 
1526 1526
 	// Reference: packages/ui-components/src/Pagination/ItemRender.tsx:10
1527
-	__( 'jump to previous', 'event_espresso' ),
1527
+	__('jump to previous', 'event_espresso'),
1528 1528
 
1529 1529
 	// Reference: packages/ui-components/src/Pagination/ItemRender.tsx:11
1530
-	__( 'jump to next', 'event_espresso' ),
1530
+	__('jump to next', 'event_espresso'),
1531 1531
 
1532 1532
 	// Reference: packages/ui-components/src/Pagination/ItemRender.tsx:12
1533
-	__( 'page', 'event_espresso' ),
1533
+	__('page', 'event_espresso'),
1534 1534
 
1535 1535
 	// Reference: packages/ui-components/src/Pagination/ItemRender.tsx:8
1536
-	__( 'previous', 'event_espresso' ),
1536
+	__('previous', 'event_espresso'),
1537 1537
 
1538 1538
 	// Reference: packages/ui-components/src/Pagination/ItemRender.tsx:9
1539
-	__( 'next', 'event_espresso' ),
1539
+	__('next', 'event_espresso'),
1540 1540
 
1541 1541
 	// Reference: packages/ui-components/src/Pagination/PerPage.tsx:37
1542
-	__( 'items per page', 'event_espresso' ),
1542
+	__('items per page', 'event_espresso'),
1543 1543
 
1544 1544
 	// Reference: packages/ui-components/src/Pagination/constants.ts:10
1545 1545
 	/* translators: %s is per page value */
1546
-	__( '%s / page', 'event_espresso' ),
1546
+	__('%s / page', 'event_espresso'),
1547 1547
 
1548 1548
 	// Reference: packages/ui-components/src/Pagination/constants.ts:13
1549
-	__( 'Next Page', 'event_espresso' ),
1549
+	__('Next Page', 'event_espresso'),
1550 1550
 
1551 1551
 	// Reference: packages/ui-components/src/Pagination/constants.ts:14
1552
-	__( 'Previous Page', 'event_espresso' ),
1552
+	__('Previous Page', 'event_espresso'),
1553 1553
 
1554 1554
 	// Reference: packages/ui-components/src/PercentSign/index.tsx:10
1555
-	__( '%', 'event_espresso' ),
1555
+	__('%', 'event_espresso'),
1556 1556
 
1557 1557
 	// Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:23
1558
-	__( 'Select an existing one to use as a template.', 'event_espresso' ),
1558
+	__('Select an existing one to use as a template.', 'event_espresso'),
1559 1559
 
1560 1560
 	// Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:27
1561
-	__( 'or', 'event_espresso' ),
1561
+	__('or', 'event_espresso'),
1562 1562
 
1563 1563
 	// Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:30
1564
-	__( 'Add new and insert details manually', 'event_espresso' ),
1564
+	__('Add new and insert details manually', 'event_espresso'),
1565 1565
 
1566 1566
 	// Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:34
1567
-	__( 'Add New', 'event_espresso' ),
1567
+	__('Add New', 'event_espresso'),
1568 1568
 
1569 1569
 	// Reference: packages/ui-components/src/Stepper/buttons/Next.tsx:8
1570
-	__( 'Next', 'event_espresso' ),
1570
+	__('Next', 'event_espresso'),
1571 1571
 
1572 1572
 	// Reference: packages/ui-components/src/Stepper/buttons/Previous.tsx:8
1573
-	__( 'Previous', 'event_espresso' ),
1573
+	__('Previous', 'event_espresso'),
1574 1574
 
1575 1575
 	// Reference: packages/ui-components/src/Steps/Steps.tsx:31
1576
-	__( 'Steps', 'event_espresso' ),
1576
+	__('Steps', 'event_espresso'),
1577 1577
 
1578 1578
 	// Reference: packages/ui-components/src/TabbableText/index.tsx:19
1579
-	__( 'Click to edit…', 'event_espresso' ),
1579
+	__('Click to edit…', 'event_espresso'),
1580 1580
 
1581 1581
 	// Reference: packages/ui-components/src/TimezoneTimeInfo/Content.tsx:14
1582
-	__( 'The Website\'s Time Zone', 'event_espresso' ),
1582
+	__('The Website\'s Time Zone', 'event_espresso'),
1583 1583
 
1584 1584
 	// Reference: packages/ui-components/src/TimezoneTimeInfo/Content.tsx:19
1585
-	__( 'UTC (Greenwich Mean Time)', 'event_espresso' ),
1585
+	__('UTC (Greenwich Mean Time)', 'event_espresso'),
1586 1586
 
1587 1587
 	// Reference: packages/ui-components/src/TimezoneTimeInfo/Content.tsx:9
1588
-	__( 'Your Local Time Zone', 'event_espresso' ),
1588
+	__('Your Local Time Zone', 'event_espresso'),
1589 1589
 
1590 1590
 	// Reference: packages/ui-components/src/TimezoneTimeInfo/TimezoneTimeInfo.tsx:27
1591
-	__( 'click for timezone information', 'event_espresso' ),
1591
+	__('click for timezone information', 'event_espresso'),
1592 1592
 
1593 1593
 	// Reference: packages/ui-components/src/TimezoneTimeInfo/TimezoneTimeInfo.tsx:32
1594
-	__( 'This Date Converted To:', 'event_espresso' ),
1594
+	__('This Date Converted To:', 'event_espresso'),
1595 1595
 
1596 1596
 	// Reference: packages/ui-components/src/bulkEdit/BulkActions.tsx:51
1597
-	__( 'select all', 'event_espresso' ),
1597
+	__('select all', 'event_espresso'),
1598 1598
 
1599 1599
 	// Reference: packages/ui-components/src/bulkEdit/BulkActions.tsx:54
1600
-	__( 'apply', 'event_espresso' )
1600
+	__('apply', 'event_espresso')
1601 1601
 );
1602 1602
 /* THIS IS THE END OF THE GENERATED FILE */
Please login to merge, or discard this patch.
caffeinated/brewing_regular.php 1 patch
Indentation   +314 added lines, -314 removed lines patch added patch discarded remove patch
@@ -27,322 +27,322 @@
 block discarded – undo
27 27
 class EE_Brewing_Regular extends EE_BASE implements InterminableInterface
28 28
 {
29 29
 
30
-    /**
31
-     * @var TableAnalysis $table_analysis
32
-     */
33
-    protected $_table_analysis;
34
-
35
-
36
-    /**
37
-     * EE_Brewing_Regular constructor.
38
-     *
39
-     * @param TableAnalysis $table_analysis
40
-     */
41
-    public function __construct(TableAnalysis $table_analysis)
42
-    {
43
-        $this->_table_analysis = $table_analysis;
44
-        if (defined('EE_CAFF_PATH')) {
45
-            $this->setInitializationHooks();
46
-            $this->setApiRegistrationHooks();
47
-            $this->setSwitchHooks();
48
-            $this->setDefaultFilterHooks();
49
-            // caffeinated constructed
50
-            do_action('AHEE__EE_Brewing_Regular__construct__complete');
51
-        }
52
-    }
53
-
54
-
55
-    /**
56
-     * Various hooks used for extending features via registration of modules or extensions.
57
-     */
58
-    private function setApiRegistrationHooks()
59
-    {
60
-        add_filter(
61
-            'FHEE__EE_Config__register_modules__modules_to_register',
62
-            array($this, 'caffeinated_modules_to_register')
63
-        );
64
-        add_filter('FHEE__EE_Registry__load_helper__helper_paths', array($this, 'caf_helper_paths'), 10);
65
-        add_filter(
66
-            'AHEE__EE_System__load_core_configuration__complete',
67
-            function () {
68
-                EE_Register_Payment_Method::register(
69
-                    'caffeinated_payment_methods',
70
-                    array(
71
-                        'payment_method_paths' => glob(EE_CAF_PAYMENT_METHODS . '*', GLOB_ONLYDIR),
72
-                    )
73
-                );
74
-            }
75
-        );
76
-    }
77
-
78
-
79
-    /**
80
-     * Various hooks used for modifying initialization or activation processes.
81
-     */
82
-    private function setInitializationHooks()
83
-    {
84
-        // activation
85
-        add_action('AHEE__EEH_Activation__initialize_db_content', array($this, 'initialize_caf_db_content'));
86
-        // load caff init
87
-        add_action('AHEE__EE_System__set_hooks_for_core', array($this, 'caffeinated_init'));
88
-        // load caff scripts
89
-        add_action('wp_enqueue_scripts', array($this, 'enqueue_caffeinated_scripts'), 10);
90
-    }
91
-
92
-
93
-    /**
94
-     * Various hooks used for switch (on/off) type filters.
95
-     */
96
-    private function setSwitchHooks()
97
-    {
98
-        // remove the "powered by" credit link from receipts and invoices
99
-        add_filter('FHEE_EE_Html_messenger__add_powered_by_credit_link_to_receipt_and_invoice', '__return_false');
100
-        // seeing how this is caf, which isn't put on WordPress.org, we can have affiliate links without a disclaimer
101
-        add_filter('FHEE__ee_show_affiliate_links', '__return_false');
102
-    }
103
-
104
-
105
-    /**
106
-     * Various filters for affecting default configuration values in the caffeinated
107
-     * context.
108
-     */
109
-    private function setDefaultFilterHooks()
110
-    {
111
-        add_filter(
112
-            'FHEE__EE_Admin_Config__show_reg_footer__default',
113
-            '__return_true'
114
-        );
115
-    }
116
-
117
-
118
-    /**
119
-     * callback for the FHEE__EE_Registry__load_helper__helper_paths filter to add the caffeinated paths
120
-     *
121
-     * @param array $paths original helper paths array
122
-     * @return array             new array of paths
123
-     */
124
-    public function caf_helper_paths($paths)
125
-    {
126
-        $paths[] = EE_CAF_CORE . 'helpers/';
127
-        return $paths;
128
-    }
129
-
130
-
131
-    /**
132
-     * Upon brand-new activation, if this is a new activation of CAF, we want to add
133
-     * some global prices that will show off EE4's capabilities. However, if they're upgrading
134
-     * from 3.1, or simply EE4.x decaf, we assume they don't want us to suddenly introduce these extra prices.
135
-     * This action should only be called when EE 4.x.0.P is initially activated.
136
-     * Right now the only CAF content are these global prices. If there's more in the future, then
137
-     * we should probably create a caf file to contain it all instead just a function like this.
138
-     * Right now, we ASSUME the only price types in the system are default ones
139
-     *
140
-     * @global wpdb $wpdb
141
-     */
142
-    public function initialize_caf_db_content()
143
-    {
144
-        global $wpdb;
145
-        // use same method of getting creator id as the version introducing the change
146
-        $default_creator_id = apply_filters('FHEE__EE_DMS_Core_4_5_0__get_default_creator_id', get_current_user_id());
147
-        $price_type_table = $wpdb->prefix . "esp_price_type";
148
-        $price_table = $wpdb->prefix . "esp_price";
149
-        if ($this->_get_table_analysis()->tableExists($price_type_table)) {
150
-            $SQL = 'SELECT COUNT(PRT_ID) FROM ' . $price_type_table . ' WHERE PBT_ID=4';// include trashed price types
151
-            $tax_price_type_count = $wpdb->get_var($SQL);
152
-            if ($tax_price_type_count <= 1) {
153
-                $wpdb->insert(
154
-                    $price_type_table,
155
-                    array(
156
-                        'PRT_name'       => __("Regional Tax", "event_espresso"),
157
-                        'PBT_ID'         => 4,
158
-                        'PRT_is_percent' => true,
159
-                        'PRT_order'      => 60,
160
-                        'PRT_deleted'    => false,
161
-                        'PRT_wp_user'    => $default_creator_id,
162
-                    ),
163
-                    array(
164
-                        '%s',// PRT_name
165
-                        '%d',// PBT_id
166
-                        '%d',// PRT_is_percent
167
-                        '%d',// PRT_order
168
-                        '%d',// PRT_deleted
169
-                        '%d', // PRT_wp_user
170
-                    )
171
-                );
172
-                // federal tax
173
-                $result = $wpdb->insert(
174
-                    $price_type_table,
175
-                    array(
176
-                        'PRT_name'       => __("Federal Tax", "event_espresso"),
177
-                        'PBT_ID'         => 4,
178
-                        'PRT_is_percent' => true,
179
-                        'PRT_order'      => 60,
180
-                        'PRT_deleted'    => false,
181
-                        'PRT_wp_user'    => $default_creator_id,
182
-                    ),
183
-                    array(
184
-                        '%s',// PRT_name
185
-                        '%d',// PBT_id
186
-                        '%d',// PRT_is_percent
187
-                        '%d',// PRT_order
188
-                        '%d',// PRT_deleted
189
-                        '%d' // PRT_wp_user
190
-                    )
191
-                );
192
-                if ($result) {
193
-                    $wpdb->insert(
194
-                        $price_table,
195
-                        array(
196
-                            'PRT_ID'         => $wpdb->insert_id,
197
-                            'PRC_amount'     => 15.00,
198
-                            'PRC_name'       => __("Sales Tax", "event_espresso"),
199
-                            'PRC_desc'       => '',
200
-                            'PRC_is_default' => true,
201
-                            'PRC_overrides'  => null,
202
-                            'PRC_deleted'    => false,
203
-                            'PRC_order'      => 60,
204
-                            'PRC_parent'     => null,
205
-                            'PRC_wp_user'    => $default_creator_id,
206
-                        ),
207
-                        array(
208
-                            '%d',// PRT_id
209
-                            '%f',// PRC_amount
210
-                            '%s',// PRC_name
211
-                            '%s',// PRC_desc
212
-                            '%d',// PRC_is_default
213
-                            '%d',// PRC_overrides
214
-                            '%d',// PRC_deleted
215
-                            '%d',// PRC_order
216
-                            '%d',// PRC_parent
217
-                            '%d' // PRC_wp_user
218
-                        )
219
-                    );
220
-                }
221
-            }
222
-        }
223
-    }
224
-
225
-
226
-    /**
227
-     *    caffeinated_modules_to_register
228
-     *
229
-     * @access public
230
-     * @param array $modules_to_register
231
-     * @return array
232
-     */
233
-    public function caffeinated_modules_to_register($modules_to_register = array())
234
-    {
235
-        if (is_readable(EE_CAFF_PATH . 'modules')) {
236
-            $caffeinated_modules_to_register = glob(EE_CAFF_PATH . 'modules/*', GLOB_ONLYDIR);
237
-            if (is_array($caffeinated_modules_to_register) && ! empty($caffeinated_modules_to_register)) {
238
-                $modules_to_register = array_merge($modules_to_register, $caffeinated_modules_to_register);
239
-            }
240
-        }
241
-        return $modules_to_register;
242
-    }
243
-
244
-
245
-    /**
246
-     * @throws EE_Error
247
-     * @throws InvalidArgumentException
248
-     * @throws ReflectionException
249
-     * @throws InvalidDataTypeException
250
-     * @throws InvalidInterfaceException
251
-     */
252
-    public function caffeinated_init()
253
-    {
254
-        // Custom Post Type hooks
255
-        add_filter(
256
-            'FHEE__EventEspresso_core_domain_entities_custom_post_types_TaxonomyDefinitions__getTaxonomies',
257
-            array($this, 'filter_taxonomies')
258
-        );
259
-        add_filter(
260
-            'FHEE__EventEspresso_core_domain_entities_custom_post_types_CustomPostTypeDefinitions__getCustomPostTypes',
261
-            array($this, 'filter_cpts')
262
-        );
263
-        add_filter(
264
-            'FHEE__EE_Admin__get_extra_nav_menu_pages_items',
265
-            array($this, 'nav_metabox_items')
266
-        );
267
-        EE_Registry::instance()->load_file(
268
-            EE_CAFF_PATH,
269
-            'EE_Caf_Messages',
270
-            'class',
271
-            array(),
272
-            false
273
-        );
274
-        // caffeinated_init__complete hook
275
-        do_action('AHEE__EE_Brewing_Regular__caffeinated_init__complete');
276
-    }
277
-
278
-
279
-    public function enqueue_caffeinated_scripts()
280
-    {
281
-        // sound of crickets...
282
-    }
283
-
284
-
285
-    /**
286
-     * callbacks below here
287
-     *
288
-     * @param array $taxonomy_array
289
-     * @return array
290
-     */
291
-    public function filter_taxonomies(array $taxonomy_array)
292
-    {
293
-        $taxonomy_array['espresso_venue_categories']['args']['show_in_nav_menus'] = true;
294
-        return $taxonomy_array;
295
-    }
296
-
297
-
298
-    /**
299
-     * @param array $cpt_array
300
-     * @return mixed
301
-     */
302
-    public function filter_cpts(array $cpt_array)
303
-    {
304
-        $cpt_array['espresso_venues']['args']['show_in_nav_menus'] = true;
305
-        return $cpt_array;
306
-    }
307
-
308
-
309
-    /**
310
-     * @param array $menuitems
311
-     * @return array
312
-     */
313
-    public function nav_metabox_items(array $menuitems)
314
-    {
315
-        $menuitems[] = array(
316
-            'title'       => __('Venue List', 'event_espresso'),
317
-            'url'         => get_post_type_archive_link('espresso_venues'),
318
-            'description' => __('Archive page for all venues.', 'event_espresso'),
319
-        );
320
-        return $menuitems;
321
-    }
322
-
323
-
324
-    /**
325
-     * Gets the injected table analyzer, or throws an exception
326
-     *
327
-     * @return TableAnalysis
328
-     * @throws \EE_Error
329
-     */
330
-    protected function _get_table_analysis()
331
-    {
332
-        if ($this->_table_analysis instanceof TableAnalysis) {
333
-            return $this->_table_analysis;
334
-        } else {
335
-            throw new \EE_Error(
336
-                sprintf(
337
-                    __('Table analysis class on class %1$s is not set properly.', 'event_espresso'),
338
-                    get_class($this)
339
-                )
340
-            );
341
-        }
342
-    }
30
+	/**
31
+	 * @var TableAnalysis $table_analysis
32
+	 */
33
+	protected $_table_analysis;
34
+
35
+
36
+	/**
37
+	 * EE_Brewing_Regular constructor.
38
+	 *
39
+	 * @param TableAnalysis $table_analysis
40
+	 */
41
+	public function __construct(TableAnalysis $table_analysis)
42
+	{
43
+		$this->_table_analysis = $table_analysis;
44
+		if (defined('EE_CAFF_PATH')) {
45
+			$this->setInitializationHooks();
46
+			$this->setApiRegistrationHooks();
47
+			$this->setSwitchHooks();
48
+			$this->setDefaultFilterHooks();
49
+			// caffeinated constructed
50
+			do_action('AHEE__EE_Brewing_Regular__construct__complete');
51
+		}
52
+	}
53
+
54
+
55
+	/**
56
+	 * Various hooks used for extending features via registration of modules or extensions.
57
+	 */
58
+	private function setApiRegistrationHooks()
59
+	{
60
+		add_filter(
61
+			'FHEE__EE_Config__register_modules__modules_to_register',
62
+			array($this, 'caffeinated_modules_to_register')
63
+		);
64
+		add_filter('FHEE__EE_Registry__load_helper__helper_paths', array($this, 'caf_helper_paths'), 10);
65
+		add_filter(
66
+			'AHEE__EE_System__load_core_configuration__complete',
67
+			function () {
68
+				EE_Register_Payment_Method::register(
69
+					'caffeinated_payment_methods',
70
+					array(
71
+						'payment_method_paths' => glob(EE_CAF_PAYMENT_METHODS . '*', GLOB_ONLYDIR),
72
+					)
73
+				);
74
+			}
75
+		);
76
+	}
77
+
78
+
79
+	/**
80
+	 * Various hooks used for modifying initialization or activation processes.
81
+	 */
82
+	private function setInitializationHooks()
83
+	{
84
+		// activation
85
+		add_action('AHEE__EEH_Activation__initialize_db_content', array($this, 'initialize_caf_db_content'));
86
+		// load caff init
87
+		add_action('AHEE__EE_System__set_hooks_for_core', array($this, 'caffeinated_init'));
88
+		// load caff scripts
89
+		add_action('wp_enqueue_scripts', array($this, 'enqueue_caffeinated_scripts'), 10);
90
+	}
91
+
92
+
93
+	/**
94
+	 * Various hooks used for switch (on/off) type filters.
95
+	 */
96
+	private function setSwitchHooks()
97
+	{
98
+		// remove the "powered by" credit link from receipts and invoices
99
+		add_filter('FHEE_EE_Html_messenger__add_powered_by_credit_link_to_receipt_and_invoice', '__return_false');
100
+		// seeing how this is caf, which isn't put on WordPress.org, we can have affiliate links without a disclaimer
101
+		add_filter('FHEE__ee_show_affiliate_links', '__return_false');
102
+	}
103
+
104
+
105
+	/**
106
+	 * Various filters for affecting default configuration values in the caffeinated
107
+	 * context.
108
+	 */
109
+	private function setDefaultFilterHooks()
110
+	{
111
+		add_filter(
112
+			'FHEE__EE_Admin_Config__show_reg_footer__default',
113
+			'__return_true'
114
+		);
115
+	}
116
+
117
+
118
+	/**
119
+	 * callback for the FHEE__EE_Registry__load_helper__helper_paths filter to add the caffeinated paths
120
+	 *
121
+	 * @param array $paths original helper paths array
122
+	 * @return array             new array of paths
123
+	 */
124
+	public function caf_helper_paths($paths)
125
+	{
126
+		$paths[] = EE_CAF_CORE . 'helpers/';
127
+		return $paths;
128
+	}
129
+
130
+
131
+	/**
132
+	 * Upon brand-new activation, if this is a new activation of CAF, we want to add
133
+	 * some global prices that will show off EE4's capabilities. However, if they're upgrading
134
+	 * from 3.1, or simply EE4.x decaf, we assume they don't want us to suddenly introduce these extra prices.
135
+	 * This action should only be called when EE 4.x.0.P is initially activated.
136
+	 * Right now the only CAF content are these global prices. If there's more in the future, then
137
+	 * we should probably create a caf file to contain it all instead just a function like this.
138
+	 * Right now, we ASSUME the only price types in the system are default ones
139
+	 *
140
+	 * @global wpdb $wpdb
141
+	 */
142
+	public function initialize_caf_db_content()
143
+	{
144
+		global $wpdb;
145
+		// use same method of getting creator id as the version introducing the change
146
+		$default_creator_id = apply_filters('FHEE__EE_DMS_Core_4_5_0__get_default_creator_id', get_current_user_id());
147
+		$price_type_table = $wpdb->prefix . "esp_price_type";
148
+		$price_table = $wpdb->prefix . "esp_price";
149
+		if ($this->_get_table_analysis()->tableExists($price_type_table)) {
150
+			$SQL = 'SELECT COUNT(PRT_ID) FROM ' . $price_type_table . ' WHERE PBT_ID=4';// include trashed price types
151
+			$tax_price_type_count = $wpdb->get_var($SQL);
152
+			if ($tax_price_type_count <= 1) {
153
+				$wpdb->insert(
154
+					$price_type_table,
155
+					array(
156
+						'PRT_name'       => __("Regional Tax", "event_espresso"),
157
+						'PBT_ID'         => 4,
158
+						'PRT_is_percent' => true,
159
+						'PRT_order'      => 60,
160
+						'PRT_deleted'    => false,
161
+						'PRT_wp_user'    => $default_creator_id,
162
+					),
163
+					array(
164
+						'%s',// PRT_name
165
+						'%d',// PBT_id
166
+						'%d',// PRT_is_percent
167
+						'%d',// PRT_order
168
+						'%d',// PRT_deleted
169
+						'%d', // PRT_wp_user
170
+					)
171
+				);
172
+				// federal tax
173
+				$result = $wpdb->insert(
174
+					$price_type_table,
175
+					array(
176
+						'PRT_name'       => __("Federal Tax", "event_espresso"),
177
+						'PBT_ID'         => 4,
178
+						'PRT_is_percent' => true,
179
+						'PRT_order'      => 60,
180
+						'PRT_deleted'    => false,
181
+						'PRT_wp_user'    => $default_creator_id,
182
+					),
183
+					array(
184
+						'%s',// PRT_name
185
+						'%d',// PBT_id
186
+						'%d',// PRT_is_percent
187
+						'%d',// PRT_order
188
+						'%d',// PRT_deleted
189
+						'%d' // PRT_wp_user
190
+					)
191
+				);
192
+				if ($result) {
193
+					$wpdb->insert(
194
+						$price_table,
195
+						array(
196
+							'PRT_ID'         => $wpdb->insert_id,
197
+							'PRC_amount'     => 15.00,
198
+							'PRC_name'       => __("Sales Tax", "event_espresso"),
199
+							'PRC_desc'       => '',
200
+							'PRC_is_default' => true,
201
+							'PRC_overrides'  => null,
202
+							'PRC_deleted'    => false,
203
+							'PRC_order'      => 60,
204
+							'PRC_parent'     => null,
205
+							'PRC_wp_user'    => $default_creator_id,
206
+						),
207
+						array(
208
+							'%d',// PRT_id
209
+							'%f',// PRC_amount
210
+							'%s',// PRC_name
211
+							'%s',// PRC_desc
212
+							'%d',// PRC_is_default
213
+							'%d',// PRC_overrides
214
+							'%d',// PRC_deleted
215
+							'%d',// PRC_order
216
+							'%d',// PRC_parent
217
+							'%d' // PRC_wp_user
218
+						)
219
+					);
220
+				}
221
+			}
222
+		}
223
+	}
224
+
225
+
226
+	/**
227
+	 *    caffeinated_modules_to_register
228
+	 *
229
+	 * @access public
230
+	 * @param array $modules_to_register
231
+	 * @return array
232
+	 */
233
+	public function caffeinated_modules_to_register($modules_to_register = array())
234
+	{
235
+		if (is_readable(EE_CAFF_PATH . 'modules')) {
236
+			$caffeinated_modules_to_register = glob(EE_CAFF_PATH . 'modules/*', GLOB_ONLYDIR);
237
+			if (is_array($caffeinated_modules_to_register) && ! empty($caffeinated_modules_to_register)) {
238
+				$modules_to_register = array_merge($modules_to_register, $caffeinated_modules_to_register);
239
+			}
240
+		}
241
+		return $modules_to_register;
242
+	}
243
+
244
+
245
+	/**
246
+	 * @throws EE_Error
247
+	 * @throws InvalidArgumentException
248
+	 * @throws ReflectionException
249
+	 * @throws InvalidDataTypeException
250
+	 * @throws InvalidInterfaceException
251
+	 */
252
+	public function caffeinated_init()
253
+	{
254
+		// Custom Post Type hooks
255
+		add_filter(
256
+			'FHEE__EventEspresso_core_domain_entities_custom_post_types_TaxonomyDefinitions__getTaxonomies',
257
+			array($this, 'filter_taxonomies')
258
+		);
259
+		add_filter(
260
+			'FHEE__EventEspresso_core_domain_entities_custom_post_types_CustomPostTypeDefinitions__getCustomPostTypes',
261
+			array($this, 'filter_cpts')
262
+		);
263
+		add_filter(
264
+			'FHEE__EE_Admin__get_extra_nav_menu_pages_items',
265
+			array($this, 'nav_metabox_items')
266
+		);
267
+		EE_Registry::instance()->load_file(
268
+			EE_CAFF_PATH,
269
+			'EE_Caf_Messages',
270
+			'class',
271
+			array(),
272
+			false
273
+		);
274
+		// caffeinated_init__complete hook
275
+		do_action('AHEE__EE_Brewing_Regular__caffeinated_init__complete');
276
+	}
277
+
278
+
279
+	public function enqueue_caffeinated_scripts()
280
+	{
281
+		// sound of crickets...
282
+	}
283
+
284
+
285
+	/**
286
+	 * callbacks below here
287
+	 *
288
+	 * @param array $taxonomy_array
289
+	 * @return array
290
+	 */
291
+	public function filter_taxonomies(array $taxonomy_array)
292
+	{
293
+		$taxonomy_array['espresso_venue_categories']['args']['show_in_nav_menus'] = true;
294
+		return $taxonomy_array;
295
+	}
296
+
297
+
298
+	/**
299
+	 * @param array $cpt_array
300
+	 * @return mixed
301
+	 */
302
+	public function filter_cpts(array $cpt_array)
303
+	{
304
+		$cpt_array['espresso_venues']['args']['show_in_nav_menus'] = true;
305
+		return $cpt_array;
306
+	}
307
+
308
+
309
+	/**
310
+	 * @param array $menuitems
311
+	 * @return array
312
+	 */
313
+	public function nav_metabox_items(array $menuitems)
314
+	{
315
+		$menuitems[] = array(
316
+			'title'       => __('Venue List', 'event_espresso'),
317
+			'url'         => get_post_type_archive_link('espresso_venues'),
318
+			'description' => __('Archive page for all venues.', 'event_espresso'),
319
+		);
320
+		return $menuitems;
321
+	}
322
+
323
+
324
+	/**
325
+	 * Gets the injected table analyzer, or throws an exception
326
+	 *
327
+	 * @return TableAnalysis
328
+	 * @throws \EE_Error
329
+	 */
330
+	protected function _get_table_analysis()
331
+	{
332
+		if ($this->_table_analysis instanceof TableAnalysis) {
333
+			return $this->_table_analysis;
334
+		} else {
335
+			throw new \EE_Error(
336
+				sprintf(
337
+					__('Table analysis class on class %1$s is not set properly.', 'event_espresso'),
338
+					get_class($this)
339
+				)
340
+			);
341
+		}
342
+	}
343 343
 }
344 344
 
345 345
 
346 346
 $brewing = new EE_Brewing_Regular(
347
-    EE_Registry::instance()->create('TableAnalysis', array(), true)
347
+	EE_Registry::instance()->create('TableAnalysis', array(), true)
348 348
 );
Please login to merge, or discard this patch.
core/helpers/EEH_Debug_Tools.helper.php 2 patches
Indentation   +686 added lines, -686 removed lines patch added patch discarded remove patch
@@ -11,677 +11,677 @@  discard block
 block discarded – undo
11 11
 class EEH_Debug_Tools
12 12
 {
13 13
 
14
-    /**
15
-     *    instance of the EEH_Autoloader object
16
-     *
17
-     * @var    $_instance
18
-     * @access    private
19
-     */
20
-    private static $_instance;
21
-
22
-    /**
23
-     * @var array
24
-     */
25
-    protected $_memory_usage_points = array();
26
-
27
-
28
-
29
-    /**
30
-     * @singleton method used to instantiate class object
31
-     * @access    public
32
-     * @return EEH_Debug_Tools
33
-     */
34
-    public static function instance()
35
-    {
36
-        // check if class object is instantiated, and instantiated properly
37
-        if (! self::$_instance instanceof EEH_Debug_Tools) {
38
-            self::$_instance = new self();
39
-        }
40
-        return self::$_instance;
41
-    }
42
-
43
-
44
-
45
-    /**
46
-     * private class constructor
47
-     */
48
-    private function __construct()
49
-    {
50
-        // load Kint PHP debugging library
51
-        if (! class_exists('Kint') && file_exists(EE_PLUGIN_DIR_PATH . 'tests/kint/Kint.class.php')) {
52
-            // despite EE4 having a check for an existing copy of the Kint debugging class,
53
-            // if another plugin was loaded AFTER EE4 and they did NOT perform a similar check,
54
-            // then hilarity would ensue as PHP throws a "Cannot redeclare class Kint" error
55
-            // so we've moved it to our test folder so that it is not included with production releases
56
-            // plz use https://wordpress.org/plugins/kint-debugger/  if testing production versions of EE
57
-            require_once(EE_PLUGIN_DIR_PATH . 'tests/kint/Kint.class.php');
58
-        }
59
-        // if ( ! defined('DOING_AJAX') || $_REQUEST['noheader'] !== 'true' || ! isset( $_REQUEST['noheader'], $_REQUEST['TB_iframe'] ) ) {
60
-        // add_action( 'shutdown', array($this,'espresso_session_footer_dump') );
61
-        // }
62
-        $plugin = basename(EE_PLUGIN_DIR_PATH);
63
-        add_action("activate_{$plugin}", array('EEH_Debug_Tools', 'ee_plugin_activation_errors'));
64
-        add_action('activated_plugin', array('EEH_Debug_Tools', 'ee_plugin_activation_errors'));
65
-        add_action('shutdown', array('EEH_Debug_Tools', 'show_db_name'));
66
-    }
67
-
68
-
69
-
70
-    /**
71
-     *    show_db_name
72
-     *
73
-     * @return void
74
-     */
75
-    public static function show_db_name()
76
-    {
77
-        if (! defined('DOING_AJAX') && (defined('EE_ERROR_EMAILS') && EE_ERROR_EMAILS)) {
78
-            echo '<p style="font-size:10px;font-weight:normal;color:#E76700;margin: 1em 2em; text-align: right;">DB_NAME: '
79
-                 . DB_NAME
80
-                 . '</p>';
81
-        }
82
-        if (EE_DEBUG) {
83
-            Benchmark::displayResults();
84
-        }
85
-    }
86
-
87
-
88
-
89
-    /**
90
-     *    dump EE_Session object at bottom of page after everything else has happened
91
-     *
92
-     * @return void
93
-     */
94
-    public function espresso_session_footer_dump()
95
-    {
96
-        if ((defined('WP_DEBUG') && WP_DEBUG)
97
-            && ! defined('DOING_AJAX')
98
-            && class_exists('Kint')
99
-            && function_exists('wp_get_current_user')
100
-            && current_user_can('update_core')
101
-            && class_exists('EE_Registry')
102
-        ) {
103
-            Kint::dump(EE_Registry::instance()->SSN->id());
104
-            Kint::dump(EE_Registry::instance()->SSN);
105
-            //          Kint::dump( EE_Registry::instance()->SSN->get_session_data('cart')->get_tickets() );
106
-            $this->espresso_list_hooked_functions();
107
-            Benchmark::displayResults();
108
-        }
109
-    }
110
-
111
-
112
-
113
-    /**
114
-     *    List All Hooked Functions
115
-     *    to list all functions for a specific hook, add ee_list_hooks={hook-name} to URL
116
-     *    http://wp.smashingmagazine.com/2009/08/18/10-useful-wordpress-hook-hacks/
117
-     *
118
-     * @param string $tag
119
-     * @return void
120
-     */
121
-    public function espresso_list_hooked_functions($tag = '')
122
-    {
123
-        global $wp_filter;
124
-        echo '<br/><br/><br/><h3>Hooked Functions</h3>';
125
-        if ($tag) {
126
-            $hook[ $tag ] = $wp_filter[ $tag ];
127
-            if (! is_array($hook[ $tag ])) {
128
-                trigger_error("Nothing found for '$tag' hook", E_USER_WARNING);
129
-                return;
130
-            }
131
-            echo '<h5>For Tag: ' . $tag . '</h5>';
132
-        } else {
133
-            $hook = is_array($wp_filter) ? $wp_filter : array($wp_filter);
134
-            ksort($hook);
135
-        }
136
-        foreach ($hook as $tag_name => $priorities) {
137
-            echo "<br />&gt;&gt;&gt;&gt;&gt;\t<strong>$tag_name</strong><br />";
138
-            ksort($priorities);
139
-            foreach ($priorities as $priority => $function) {
140
-                echo $priority;
141
-                foreach ($function as $name => $properties) {
142
-                    echo "\t$name<br />";
143
-                }
144
-            }
145
-        }
146
-    }
147
-
148
-
149
-
150
-    /**
151
-     *    registered_filter_callbacks
152
-     *
153
-     * @param string $hook_name
154
-     * @return array
155
-     */
156
-    public static function registered_filter_callbacks($hook_name = '')
157
-    {
158
-        $filters = array();
159
-        global $wp_filter;
160
-        if (isset($wp_filter[ $hook_name ])) {
161
-            $filters[ $hook_name ] = array();
162
-            foreach ($wp_filter[ $hook_name ] as $priority => $callbacks) {
163
-                $filters[ $hook_name ][ $priority ] = array();
164
-                foreach ($callbacks as $callback) {
165
-                    $filters[ $hook_name ][ $priority ][] = $callback['function'];
166
-                }
167
-            }
168
-        }
169
-        return $filters;
170
-    }
171
-
172
-
173
-
174
-    /**
175
-     *    captures plugin activation errors for debugging
176
-     *
177
-     * @return void
178
-     * @throws EE_Error
179
-     */
180
-    public static function ee_plugin_activation_errors()
181
-    {
182
-        if (WP_DEBUG) {
183
-            $activation_errors = ob_get_contents();
184
-            if (empty($activation_errors)) {
185
-                return;
186
-            }
187
-            $activation_errors = date('Y-m-d H:i:s') . "\n" . $activation_errors;
188
-            espresso_load_required('EEH_File', EE_HELPERS . 'EEH_File.helper.php');
189
-            if (class_exists('EEH_File')) {
190
-                try {
191
-                    EEH_File::ensure_file_exists_and_is_writable(
192
-                        EVENT_ESPRESSO_UPLOAD_DIR . 'logs/espresso_plugin_activation_errors.html'
193
-                    );
194
-                    EEH_File::write_to_file(
195
-                        EVENT_ESPRESSO_UPLOAD_DIR . 'logs/espresso_plugin_activation_errors.html',
196
-                        $activation_errors
197
-                    );
198
-                } catch (EE_Error $e) {
199
-                    EE_Error::add_error(
200
-                        sprintf(
201
-                            __(
202
-                                'The Event Espresso activation errors file could not be setup because: %s',
203
-                                'event_espresso'
204
-                            ),
205
-                            $e->getMessage()
206
-                        ),
207
-                        __FILE__,
208
-                        __FUNCTION__,
209
-                        __LINE__
210
-                    );
211
-                }
212
-            } else {
213
-                // old school attempt
214
-                file_put_contents(
215
-                    EVENT_ESPRESSO_UPLOAD_DIR . 'logs/espresso_plugin_activation_errors.html',
216
-                    $activation_errors
217
-                );
218
-            }
219
-            $activation_errors = get_option('ee_plugin_activation_errors', '') . $activation_errors;
220
-            update_option('ee_plugin_activation_errors', $activation_errors);
221
-        }
222
-    }
223
-
224
-
225
-
226
-    /**
227
-     * This basically mimics the WordPress _doing_it_wrong() function except adds our own messaging etc.
228
-     * Very useful for providing helpful messages to developers when the method of doing something has been deprecated,
229
-     * or we want to make sure they use something the right way.
230
-     *
231
-     * @access public
232
-     * @param string $function      The function that was called
233
-     * @param string $message       A message explaining what has been done incorrectly
234
-     * @param string $version       The version of Event Espresso where the error was added
235
-     * @param string $applies_when  a version string for when you want the doing_it_wrong notice to begin appearing
236
-     *                              for a deprecated function. This allows deprecation to occur during one version,
237
-     *                              but not have any notices appear until a later version. This allows developers
238
-     *                              extra time to update their code before notices appear.
239
-     * @param int    $error_type
240
-     * @uses   trigger_error()
241
-     */
242
-    public function doing_it_wrong(
243
-        $function,
244
-        $message,
245
-        $version,
246
-        $applies_when = '',
247
-        $error_type = null
248
-    ) {
249
-        $applies_when = ! empty($applies_when) ? $applies_when : espresso_version();
250
-        $error_type = $error_type !== null ? $error_type : E_USER_NOTICE;
251
-        // because we swapped the parameter order around for the last two params,
252
-        // let's verify that some third party isn't still passing an error type value for the third param
253
-        if (is_int($applies_when)) {
254
-            $error_type = $applies_when;
255
-            $applies_when = espresso_version();
256
-        }
257
-        // if not displaying notices yet, then just leave
258
-        if (version_compare(espresso_version(), $applies_when, '<')) {
259
-            return;
260
-        }
261
-        do_action('AHEE__EEH_Debug_Tools__doing_it_wrong_run', $function, $message, $version);
262
-        $version = $version === null
263
-            ? ''
264
-            : sprintf(
265
-                __('(This message was added in version %s of Event Espresso)', 'event_espresso'),
266
-                $version
267
-            );
268
-        $error_message = sprintf(
269
-            esc_html__('%1$s was called %2$sincorrectly%3$s. %4$s %5$s', 'event_espresso'),
270
-            $function,
271
-            '<strong>',
272
-            '</strong>',
273
-            $message,
274
-            $version
275
-        );
276
-        // don't trigger error if doing ajax,
277
-        // instead we'll add a transient EE_Error notice that in theory should show on the next request.
278
-        if (defined('DOING_AJAX') && DOING_AJAX) {
279
-            $error_message .= ' ' . esc_html__(
280
-                'This is a doing_it_wrong message that was triggered during an ajax request.  The request params on this request were: ',
281
-                'event_espresso'
282
-            );
283
-            $error_message .= '<ul><li>';
284
-            $error_message .= implode('</li><li>', EE_Registry::instance()->REQ->params());
285
-            $error_message .= '</ul>';
286
-            EE_Error::add_error($error_message, 'debug::doing_it_wrong', $function, '42');
287
-            // now we set this on the transient so it shows up on the next request.
288
-            EE_Error::get_notices(false, true);
289
-        } else {
290
-            trigger_error($error_message, $error_type);
291
-        }
292
-    }
293
-
294
-
295
-
296
-
297
-    /**
298
-     * Logger helpers
299
-     */
300
-    /**
301
-     * debug
302
-     *
303
-     * @param string $class
304
-     * @param string $func
305
-     * @param string $line
306
-     * @param array  $info
307
-     * @param bool   $display_request
308
-     * @param string $debug_index
309
-     * @param string $debug_key
310
-     * @throws EE_Error
311
-     * @throws \EventEspresso\core\exceptions\InvalidSessionDataException
312
-     */
313
-    public static function log(
314
-        $class = '',
315
-        $func = '',
316
-        $line = '',
317
-        $info = array(),
318
-        $display_request = false,
319
-        $debug_index = '',
320
-        $debug_key = 'EE_DEBUG_SPCO'
321
-    ) {
322
-        if (WP_DEBUG) {
323
-            $debug_key = $debug_key . '_' . EE_Session::instance()->id();
324
-            $debug_data = get_option($debug_key, array());
325
-            $default_data = array(
326
-                $class => $func . '() : ' . $line,
327
-                'REQ'  => $display_request ? $_REQUEST : '',
328
-            );
329
-            // don't serialize objects
330
-            $info = self::strip_objects($info);
331
-            $index = ! empty($debug_index) ? $debug_index : 0;
332
-            if (! isset($debug_data[ $index ])) {
333
-                $debug_data[ $index ] = array();
334
-            }
335
-            $debug_data[ $index ][ microtime() ] = array_merge($default_data, $info);
336
-            update_option($debug_key, $debug_data);
337
-        }
338
-    }
339
-
340
-
341
-
342
-    /**
343
-     * strip_objects
344
-     *
345
-     * @param array $info
346
-     * @return array
347
-     */
348
-    public static function strip_objects($info = array())
349
-    {
350
-        foreach ($info as $key => $value) {
351
-            if (is_array($value)) {
352
-                $info[ $key ] = self::strip_objects($value);
353
-            } elseif (is_object($value)) {
354
-                $object_class = get_class($value);
355
-                $info[ $object_class ] = array();
356
-                $info[ $object_class ]['ID'] = method_exists($value, 'ID') ? $value->ID() : spl_object_hash($value);
357
-                if (method_exists($value, 'ID')) {
358
-                    $info[ $object_class ]['ID'] = $value->ID();
359
-                }
360
-                if (method_exists($value, 'status')) {
361
-                    $info[ $object_class ]['status'] = $value->status();
362
-                } elseif (method_exists($value, 'status_ID')) {
363
-                    $info[ $object_class ]['status'] = $value->status_ID();
364
-                }
365
-                unset($info[ $key ]);
366
-            }
367
-        }
368
-        return (array) $info;
369
-    }
370
-
371
-
372
-
373
-    /**
374
-     * @param mixed      $var
375
-     * @param string     $var_name
376
-     * @param string     $file
377
-     * @param int|string $line
378
-     * @param int|string $heading_tag
379
-     * @param bool       $die
380
-     * @param string     $margin
381
-     */
382
-    public static function printv(
383
-        $var,
384
-        $var_name = '',
385
-        $file = '',
386
-        $line = '',
387
-        $heading_tag = 5,
388
-        $die = false,
389
-        $margin = ''
390
-    ) {
391
-        $var_name = ! $var_name ? 'string' : $var_name;
392
-        $var_name = ucwords(str_replace('$', '', $var_name));
393
-        $is_method = method_exists($var_name, $var);
394
-        $var_name = ucwords(str_replace('_', ' ', $var_name));
395
-        $heading_tag = EEH_Debug_Tools::headingTag($heading_tag);
396
-        $result = EEH_Debug_Tools::headingSpacer($heading_tag);
397
-        $result .= EEH_Debug_Tools::heading($var_name, $heading_tag, $margin, $line);
398
-        $result .= $is_method
399
-            ? EEH_Debug_Tools::grey_span('::') . EEH_Debug_Tools::orange_span($var . '()')
400
-            : EEH_Debug_Tools::grey_span(' : ') . EEH_Debug_Tools::orange_span($var);
401
-        $result .= EEH_Debug_Tools::file_and_line($file, $line, $heading_tag);
402
-        $result .= EEH_Debug_Tools::headingX($heading_tag);
403
-        if ($die) {
404
-            die($result);
405
-        }
406
-        echo $result;
407
-    }
408
-
409
-
410
-    protected static function headingTag($heading_tag)
411
-    {
412
-        $heading_tag = absint($heading_tag);
413
-        return $heading_tag > 0 && $heading_tag < 7 ? "h{$heading_tag}" : 'h5';
414
-    }
415
-
416
-
417
-    protected static function headingSpacer($heading_tag)
418
-    {
419
-        return EEH_Debug_Tools::plainOutput() && ($heading_tag === 'h1' || $heading_tag === 'h2')
420
-            ? "\n"
421
-            : '';
422
-    }
423
-
424
-
425
-    protected static function plainOutput()
426
-    {
427
-        return defined('EE_TESTS_DIR')
428
-               || (defined('DOING_AJAX') && DOING_AJAX)
429
-               || (
430
-                   isset($_SERVER['REQUEST_URI'])
431
-                   && strpos(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), 'wp-json') !== false
432
-               );
433
-    }
434
-
435
-
436
-    /**
437
-     * @param string $var_name
438
-     * @param string $heading_tag
439
-     * @param string $margin
440
-     * @param int    $line
441
-     * @return string
442
-     */
443
-    protected static function heading($var_name = '', $heading_tag = 'h5', $margin = '', $line = 0)
444
-    {
445
-        if (EEH_Debug_Tools::plainOutput()) {
446
-            $heading = '';
447
-            if ($heading_tag === 'h1' || $heading_tag === 'h2') {
448
-                $heading .= "\n";
449
-            }
450
-            $heading .= "\n{$line}) {$var_name}";
451
-            return $heading;
452
-        }
453
-        $margin = "25px 0 0 {$margin}";
454
-        return '<' . $heading_tag . ' style="color:#2EA2CC; margin:' . $margin . ';"><b>' . $var_name . '</b>';
455
-    }
456
-
457
-
458
-
459
-    /**
460
-     * @param string $heading_tag
461
-     * @return string
462
-     */
463
-    protected static function headingX($heading_tag = 'h5')
464
-    {
465
-        if (EEH_Debug_Tools::plainOutput()) {
466
-            return '';
467
-        }
468
-        return '</' . $heading_tag . '>';
469
-    }
470
-
471
-
472
-
473
-    /**
474
-     * @param string $content
475
-     * @return string
476
-     */
477
-    protected static function grey_span($content = '')
478
-    {
479
-        if (EEH_Debug_Tools::plainOutput()) {
480
-            return $content;
481
-        }
482
-        return '<span style="color:#999">' . $content . '</span>';
483
-    }
484
-
485
-
486
-
487
-    /**
488
-     * @param string $file
489
-     * @param int    $line
490
-     * @return string
491
-     */
492
-    protected static function file_and_line($file, $line, $heading_tag)
493
-    {
494
-        if ($file === '' || $line === '') {
495
-            return '';
496
-        }
497
-        $file = str_replace(EE_PLUGIN_DIR_PATH, '/', $file);
498
-        if (EEH_Debug_Tools::plainOutput()) {
499
-            if ($heading_tag === 'h1' || $heading_tag === 'h2') {
500
-                return " ({$file})";
501
-            }
502
-            return '';
503
-        }
504
-        return '<br /><span style="font-size:9px;font-weight:normal;color:#666;line-height: 12px;">'
505
-               . $file
506
-               . '<br />line no: '
507
-               . $line
508
-               . '</span>';
509
-    }
510
-
511
-
512
-
513
-    /**
514
-     * @param string $content
515
-     * @return string
516
-     */
517
-    protected static function orange_span($content = '')
518
-    {
519
-        if (EEH_Debug_Tools::plainOutput()) {
520
-            return $content;
521
-        }
522
-        return '<span style="color:#E76700">' . $content . '</span>';
523
-    }
524
-
525
-
526
-
527
-    /**
528
-     * @param mixed $var
529
-     * @return string
530
-     */
531
-    protected static function pre_span($var)
532
-    {
533
-        ob_start();
534
-        var_dump($var);
535
-        $var = ob_get_clean();
536
-        if (EEH_Debug_Tools::plainOutput()) {
537
-            return $var;
538
-        }
539
-        return '<pre style="color: #9C3; display: inline-block; padding:.4em .6em; background: #334">' . $var . '</pre>';
540
-    }
541
-
542
-
543
-
544
-    /**
545
-     * @param mixed      $var
546
-     * @param string     $var_name
547
-     * @param string     $file
548
-     * @param int|string $line
549
-     * @param int|string $heading_tag
550
-     * @param bool       $die
551
-     */
552
-    public static function printr(
553
-        $var,
554
-        $var_name = '',
555
-        $file = '',
556
-        $line = '',
557
-        $heading_tag = 5,
558
-        $die = false
559
-    ) {
560
-        // return;
561
-        $file = str_replace(rtrim(ABSPATH, '\\/'), '', $file);
562
-        if (empty($var) && empty($var_name)) {
563
-            $var = $file;
564
-            $var_name = "line $line";
565
-            $file = '';
566
-            $line = '';
567
-        }
568
-        $margin = is_admin() ? ' 180px' : '0';
569
-        // $print_r = false;
570
-        if (is_string($var)) {
571
-            EEH_Debug_Tools::printv($var, $var_name, $file, $line, $heading_tag, $die, $margin);
572
-            return;
573
-        }
574
-        if (is_object($var)) {
575
-            $var_name = ! $var_name ? 'object' : $var_name;
576
-            // $print_r = true;
577
-        } elseif (is_array($var)) {
578
-            $var_name = ! $var_name ? 'array' : $var_name;
579
-            // $print_r = true;
580
-        } elseif (is_numeric($var)) {
581
-            $var_name = ! $var_name ? 'numeric' : $var_name;
582
-        } elseif ($var === null) {
583
-            $var_name = ! $var_name ? 'null' : $var_name;
584
-        }
585
-        $var_name = ucwords(str_replace(array('$', '_'), array('', ' '), $var_name));
586
-        $heading_tag = EEH_Debug_Tools::headingTag($heading_tag);
587
-        $result = EEH_Debug_Tools::headingSpacer($heading_tag);
588
-        $result .= EEH_Debug_Tools::heading($var_name, $heading_tag, $margin, $line);
589
-        $result .= EEH_Debug_Tools::grey_span(' : ') . EEH_Debug_Tools::orange_span(
590
-            EEH_Debug_Tools::pre_span($var)
591
-        );
592
-        $result .= EEH_Debug_Tools::file_and_line($file, $line, $heading_tag);
593
-        $result .= EEH_Debug_Tools::headingX($heading_tag);
594
-        if ($die) {
595
-            die($result);
596
-        }
597
-        echo $result;
598
-    }
599
-
600
-
601
-
602
-    /******************** deprecated ********************/
603
-
604
-
605
-
606
-    /**
607
-     * @deprecated 4.9.39.rc.034
608
-     */
609
-    public function reset_times()
610
-    {
611
-        Benchmark::resetTimes();
612
-    }
613
-
614
-
615
-
616
-    /**
617
-     * @deprecated 4.9.39.rc.034
618
-     * @param null $timer_name
619
-     */
620
-    public function start_timer($timer_name = null)
621
-    {
622
-        Benchmark::startTimer($timer_name);
623
-    }
624
-
625
-
626
-
627
-    /**
628
-     * @deprecated 4.9.39.rc.034
629
-     * @param string $timer_name
630
-     */
631
-    public function stop_timer($timer_name = '')
632
-    {
633
-        Benchmark::stopTimer($timer_name);
634
-    }
635
-
636
-
637
-
638
-    /**
639
-     * @deprecated 4.9.39.rc.034
640
-     * @param string  $label      The label to show for this time eg "Start of calling Some_Class::some_function"
641
-     * @param boolean $output_now whether to echo now, or wait until EEH_Debug_Tools::show_times() is called
642
-     * @return void
643
-     */
644
-    public function measure_memory($label, $output_now = false)
645
-    {
646
-        Benchmark::measureMemory($label, $output_now);
647
-    }
648
-
649
-
650
-
651
-    /**
652
-     * @deprecated 4.9.39.rc.034
653
-     * @param int $size
654
-     * @return string
655
-     */
656
-    public function convert($size)
657
-    {
658
-        return Benchmark::convert($size);
659
-    }
660
-
661
-
662
-
663
-    /**
664
-     * @deprecated 4.9.39.rc.034
665
-     * @param bool $output_now
666
-     * @return string
667
-     */
668
-    public function show_times($output_now = true)
669
-    {
670
-        return Benchmark::displayResults($output_now);
671
-    }
672
-
673
-
674
-
675
-    /**
676
-     * @deprecated 4.9.39.rc.034
677
-     * @param string $timer_name
678
-     * @param float  $total_time
679
-     * @return string
680
-     */
681
-    public function format_time($timer_name, $total_time)
682
-    {
683
-        return Benchmark::formatTime($timer_name, $total_time);
684
-    }
14
+	/**
15
+	 *    instance of the EEH_Autoloader object
16
+	 *
17
+	 * @var    $_instance
18
+	 * @access    private
19
+	 */
20
+	private static $_instance;
21
+
22
+	/**
23
+	 * @var array
24
+	 */
25
+	protected $_memory_usage_points = array();
26
+
27
+
28
+
29
+	/**
30
+	 * @singleton method used to instantiate class object
31
+	 * @access    public
32
+	 * @return EEH_Debug_Tools
33
+	 */
34
+	public static function instance()
35
+	{
36
+		// check if class object is instantiated, and instantiated properly
37
+		if (! self::$_instance instanceof EEH_Debug_Tools) {
38
+			self::$_instance = new self();
39
+		}
40
+		return self::$_instance;
41
+	}
42
+
43
+
44
+
45
+	/**
46
+	 * private class constructor
47
+	 */
48
+	private function __construct()
49
+	{
50
+		// load Kint PHP debugging library
51
+		if (! class_exists('Kint') && file_exists(EE_PLUGIN_DIR_PATH . 'tests/kint/Kint.class.php')) {
52
+			// despite EE4 having a check for an existing copy of the Kint debugging class,
53
+			// if another plugin was loaded AFTER EE4 and they did NOT perform a similar check,
54
+			// then hilarity would ensue as PHP throws a "Cannot redeclare class Kint" error
55
+			// so we've moved it to our test folder so that it is not included with production releases
56
+			// plz use https://wordpress.org/plugins/kint-debugger/  if testing production versions of EE
57
+			require_once(EE_PLUGIN_DIR_PATH . 'tests/kint/Kint.class.php');
58
+		}
59
+		// if ( ! defined('DOING_AJAX') || $_REQUEST['noheader'] !== 'true' || ! isset( $_REQUEST['noheader'], $_REQUEST['TB_iframe'] ) ) {
60
+		// add_action( 'shutdown', array($this,'espresso_session_footer_dump') );
61
+		// }
62
+		$plugin = basename(EE_PLUGIN_DIR_PATH);
63
+		add_action("activate_{$plugin}", array('EEH_Debug_Tools', 'ee_plugin_activation_errors'));
64
+		add_action('activated_plugin', array('EEH_Debug_Tools', 'ee_plugin_activation_errors'));
65
+		add_action('shutdown', array('EEH_Debug_Tools', 'show_db_name'));
66
+	}
67
+
68
+
69
+
70
+	/**
71
+	 *    show_db_name
72
+	 *
73
+	 * @return void
74
+	 */
75
+	public static function show_db_name()
76
+	{
77
+		if (! defined('DOING_AJAX') && (defined('EE_ERROR_EMAILS') && EE_ERROR_EMAILS)) {
78
+			echo '<p style="font-size:10px;font-weight:normal;color:#E76700;margin: 1em 2em; text-align: right;">DB_NAME: '
79
+				 . DB_NAME
80
+				 . '</p>';
81
+		}
82
+		if (EE_DEBUG) {
83
+			Benchmark::displayResults();
84
+		}
85
+	}
86
+
87
+
88
+
89
+	/**
90
+	 *    dump EE_Session object at bottom of page after everything else has happened
91
+	 *
92
+	 * @return void
93
+	 */
94
+	public function espresso_session_footer_dump()
95
+	{
96
+		if ((defined('WP_DEBUG') && WP_DEBUG)
97
+			&& ! defined('DOING_AJAX')
98
+			&& class_exists('Kint')
99
+			&& function_exists('wp_get_current_user')
100
+			&& current_user_can('update_core')
101
+			&& class_exists('EE_Registry')
102
+		) {
103
+			Kint::dump(EE_Registry::instance()->SSN->id());
104
+			Kint::dump(EE_Registry::instance()->SSN);
105
+			//          Kint::dump( EE_Registry::instance()->SSN->get_session_data('cart')->get_tickets() );
106
+			$this->espresso_list_hooked_functions();
107
+			Benchmark::displayResults();
108
+		}
109
+	}
110
+
111
+
112
+
113
+	/**
114
+	 *    List All Hooked Functions
115
+	 *    to list all functions for a specific hook, add ee_list_hooks={hook-name} to URL
116
+	 *    http://wp.smashingmagazine.com/2009/08/18/10-useful-wordpress-hook-hacks/
117
+	 *
118
+	 * @param string $tag
119
+	 * @return void
120
+	 */
121
+	public function espresso_list_hooked_functions($tag = '')
122
+	{
123
+		global $wp_filter;
124
+		echo '<br/><br/><br/><h3>Hooked Functions</h3>';
125
+		if ($tag) {
126
+			$hook[ $tag ] = $wp_filter[ $tag ];
127
+			if (! is_array($hook[ $tag ])) {
128
+				trigger_error("Nothing found for '$tag' hook", E_USER_WARNING);
129
+				return;
130
+			}
131
+			echo '<h5>For Tag: ' . $tag . '</h5>';
132
+		} else {
133
+			$hook = is_array($wp_filter) ? $wp_filter : array($wp_filter);
134
+			ksort($hook);
135
+		}
136
+		foreach ($hook as $tag_name => $priorities) {
137
+			echo "<br />&gt;&gt;&gt;&gt;&gt;\t<strong>$tag_name</strong><br />";
138
+			ksort($priorities);
139
+			foreach ($priorities as $priority => $function) {
140
+				echo $priority;
141
+				foreach ($function as $name => $properties) {
142
+					echo "\t$name<br />";
143
+				}
144
+			}
145
+		}
146
+	}
147
+
148
+
149
+
150
+	/**
151
+	 *    registered_filter_callbacks
152
+	 *
153
+	 * @param string $hook_name
154
+	 * @return array
155
+	 */
156
+	public static function registered_filter_callbacks($hook_name = '')
157
+	{
158
+		$filters = array();
159
+		global $wp_filter;
160
+		if (isset($wp_filter[ $hook_name ])) {
161
+			$filters[ $hook_name ] = array();
162
+			foreach ($wp_filter[ $hook_name ] as $priority => $callbacks) {
163
+				$filters[ $hook_name ][ $priority ] = array();
164
+				foreach ($callbacks as $callback) {
165
+					$filters[ $hook_name ][ $priority ][] = $callback['function'];
166
+				}
167
+			}
168
+		}
169
+		return $filters;
170
+	}
171
+
172
+
173
+
174
+	/**
175
+	 *    captures plugin activation errors for debugging
176
+	 *
177
+	 * @return void
178
+	 * @throws EE_Error
179
+	 */
180
+	public static function ee_plugin_activation_errors()
181
+	{
182
+		if (WP_DEBUG) {
183
+			$activation_errors = ob_get_contents();
184
+			if (empty($activation_errors)) {
185
+				return;
186
+			}
187
+			$activation_errors = date('Y-m-d H:i:s') . "\n" . $activation_errors;
188
+			espresso_load_required('EEH_File', EE_HELPERS . 'EEH_File.helper.php');
189
+			if (class_exists('EEH_File')) {
190
+				try {
191
+					EEH_File::ensure_file_exists_and_is_writable(
192
+						EVENT_ESPRESSO_UPLOAD_DIR . 'logs/espresso_plugin_activation_errors.html'
193
+					);
194
+					EEH_File::write_to_file(
195
+						EVENT_ESPRESSO_UPLOAD_DIR . 'logs/espresso_plugin_activation_errors.html',
196
+						$activation_errors
197
+					);
198
+				} catch (EE_Error $e) {
199
+					EE_Error::add_error(
200
+						sprintf(
201
+							__(
202
+								'The Event Espresso activation errors file could not be setup because: %s',
203
+								'event_espresso'
204
+							),
205
+							$e->getMessage()
206
+						),
207
+						__FILE__,
208
+						__FUNCTION__,
209
+						__LINE__
210
+					);
211
+				}
212
+			} else {
213
+				// old school attempt
214
+				file_put_contents(
215
+					EVENT_ESPRESSO_UPLOAD_DIR . 'logs/espresso_plugin_activation_errors.html',
216
+					$activation_errors
217
+				);
218
+			}
219
+			$activation_errors = get_option('ee_plugin_activation_errors', '') . $activation_errors;
220
+			update_option('ee_plugin_activation_errors', $activation_errors);
221
+		}
222
+	}
223
+
224
+
225
+
226
+	/**
227
+	 * This basically mimics the WordPress _doing_it_wrong() function except adds our own messaging etc.
228
+	 * Very useful for providing helpful messages to developers when the method of doing something has been deprecated,
229
+	 * or we want to make sure they use something the right way.
230
+	 *
231
+	 * @access public
232
+	 * @param string $function      The function that was called
233
+	 * @param string $message       A message explaining what has been done incorrectly
234
+	 * @param string $version       The version of Event Espresso where the error was added
235
+	 * @param string $applies_when  a version string for when you want the doing_it_wrong notice to begin appearing
236
+	 *                              for a deprecated function. This allows deprecation to occur during one version,
237
+	 *                              but not have any notices appear until a later version. This allows developers
238
+	 *                              extra time to update their code before notices appear.
239
+	 * @param int    $error_type
240
+	 * @uses   trigger_error()
241
+	 */
242
+	public function doing_it_wrong(
243
+		$function,
244
+		$message,
245
+		$version,
246
+		$applies_when = '',
247
+		$error_type = null
248
+	) {
249
+		$applies_when = ! empty($applies_when) ? $applies_when : espresso_version();
250
+		$error_type = $error_type !== null ? $error_type : E_USER_NOTICE;
251
+		// because we swapped the parameter order around for the last two params,
252
+		// let's verify that some third party isn't still passing an error type value for the third param
253
+		if (is_int($applies_when)) {
254
+			$error_type = $applies_when;
255
+			$applies_when = espresso_version();
256
+		}
257
+		// if not displaying notices yet, then just leave
258
+		if (version_compare(espresso_version(), $applies_when, '<')) {
259
+			return;
260
+		}
261
+		do_action('AHEE__EEH_Debug_Tools__doing_it_wrong_run', $function, $message, $version);
262
+		$version = $version === null
263
+			? ''
264
+			: sprintf(
265
+				__('(This message was added in version %s of Event Espresso)', 'event_espresso'),
266
+				$version
267
+			);
268
+		$error_message = sprintf(
269
+			esc_html__('%1$s was called %2$sincorrectly%3$s. %4$s %5$s', 'event_espresso'),
270
+			$function,
271
+			'<strong>',
272
+			'</strong>',
273
+			$message,
274
+			$version
275
+		);
276
+		// don't trigger error if doing ajax,
277
+		// instead we'll add a transient EE_Error notice that in theory should show on the next request.
278
+		if (defined('DOING_AJAX') && DOING_AJAX) {
279
+			$error_message .= ' ' . esc_html__(
280
+				'This is a doing_it_wrong message that was triggered during an ajax request.  The request params on this request were: ',
281
+				'event_espresso'
282
+			);
283
+			$error_message .= '<ul><li>';
284
+			$error_message .= implode('</li><li>', EE_Registry::instance()->REQ->params());
285
+			$error_message .= '</ul>';
286
+			EE_Error::add_error($error_message, 'debug::doing_it_wrong', $function, '42');
287
+			// now we set this on the transient so it shows up on the next request.
288
+			EE_Error::get_notices(false, true);
289
+		} else {
290
+			trigger_error($error_message, $error_type);
291
+		}
292
+	}
293
+
294
+
295
+
296
+
297
+	/**
298
+	 * Logger helpers
299
+	 */
300
+	/**
301
+	 * debug
302
+	 *
303
+	 * @param string $class
304
+	 * @param string $func
305
+	 * @param string $line
306
+	 * @param array  $info
307
+	 * @param bool   $display_request
308
+	 * @param string $debug_index
309
+	 * @param string $debug_key
310
+	 * @throws EE_Error
311
+	 * @throws \EventEspresso\core\exceptions\InvalidSessionDataException
312
+	 */
313
+	public static function log(
314
+		$class = '',
315
+		$func = '',
316
+		$line = '',
317
+		$info = array(),
318
+		$display_request = false,
319
+		$debug_index = '',
320
+		$debug_key = 'EE_DEBUG_SPCO'
321
+	) {
322
+		if (WP_DEBUG) {
323
+			$debug_key = $debug_key . '_' . EE_Session::instance()->id();
324
+			$debug_data = get_option($debug_key, array());
325
+			$default_data = array(
326
+				$class => $func . '() : ' . $line,
327
+				'REQ'  => $display_request ? $_REQUEST : '',
328
+			);
329
+			// don't serialize objects
330
+			$info = self::strip_objects($info);
331
+			$index = ! empty($debug_index) ? $debug_index : 0;
332
+			if (! isset($debug_data[ $index ])) {
333
+				$debug_data[ $index ] = array();
334
+			}
335
+			$debug_data[ $index ][ microtime() ] = array_merge($default_data, $info);
336
+			update_option($debug_key, $debug_data);
337
+		}
338
+	}
339
+
340
+
341
+
342
+	/**
343
+	 * strip_objects
344
+	 *
345
+	 * @param array $info
346
+	 * @return array
347
+	 */
348
+	public static function strip_objects($info = array())
349
+	{
350
+		foreach ($info as $key => $value) {
351
+			if (is_array($value)) {
352
+				$info[ $key ] = self::strip_objects($value);
353
+			} elseif (is_object($value)) {
354
+				$object_class = get_class($value);
355
+				$info[ $object_class ] = array();
356
+				$info[ $object_class ]['ID'] = method_exists($value, 'ID') ? $value->ID() : spl_object_hash($value);
357
+				if (method_exists($value, 'ID')) {
358
+					$info[ $object_class ]['ID'] = $value->ID();
359
+				}
360
+				if (method_exists($value, 'status')) {
361
+					$info[ $object_class ]['status'] = $value->status();
362
+				} elseif (method_exists($value, 'status_ID')) {
363
+					$info[ $object_class ]['status'] = $value->status_ID();
364
+				}
365
+				unset($info[ $key ]);
366
+			}
367
+		}
368
+		return (array) $info;
369
+	}
370
+
371
+
372
+
373
+	/**
374
+	 * @param mixed      $var
375
+	 * @param string     $var_name
376
+	 * @param string     $file
377
+	 * @param int|string $line
378
+	 * @param int|string $heading_tag
379
+	 * @param bool       $die
380
+	 * @param string     $margin
381
+	 */
382
+	public static function printv(
383
+		$var,
384
+		$var_name = '',
385
+		$file = '',
386
+		$line = '',
387
+		$heading_tag = 5,
388
+		$die = false,
389
+		$margin = ''
390
+	) {
391
+		$var_name = ! $var_name ? 'string' : $var_name;
392
+		$var_name = ucwords(str_replace('$', '', $var_name));
393
+		$is_method = method_exists($var_name, $var);
394
+		$var_name = ucwords(str_replace('_', ' ', $var_name));
395
+		$heading_tag = EEH_Debug_Tools::headingTag($heading_tag);
396
+		$result = EEH_Debug_Tools::headingSpacer($heading_tag);
397
+		$result .= EEH_Debug_Tools::heading($var_name, $heading_tag, $margin, $line);
398
+		$result .= $is_method
399
+			? EEH_Debug_Tools::grey_span('::') . EEH_Debug_Tools::orange_span($var . '()')
400
+			: EEH_Debug_Tools::grey_span(' : ') . EEH_Debug_Tools::orange_span($var);
401
+		$result .= EEH_Debug_Tools::file_and_line($file, $line, $heading_tag);
402
+		$result .= EEH_Debug_Tools::headingX($heading_tag);
403
+		if ($die) {
404
+			die($result);
405
+		}
406
+		echo $result;
407
+	}
408
+
409
+
410
+	protected static function headingTag($heading_tag)
411
+	{
412
+		$heading_tag = absint($heading_tag);
413
+		return $heading_tag > 0 && $heading_tag < 7 ? "h{$heading_tag}" : 'h5';
414
+	}
415
+
416
+
417
+	protected static function headingSpacer($heading_tag)
418
+	{
419
+		return EEH_Debug_Tools::plainOutput() && ($heading_tag === 'h1' || $heading_tag === 'h2')
420
+			? "\n"
421
+			: '';
422
+	}
423
+
424
+
425
+	protected static function plainOutput()
426
+	{
427
+		return defined('EE_TESTS_DIR')
428
+			   || (defined('DOING_AJAX') && DOING_AJAX)
429
+			   || (
430
+				   isset($_SERVER['REQUEST_URI'])
431
+				   && strpos(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), 'wp-json') !== false
432
+			   );
433
+	}
434
+
435
+
436
+	/**
437
+	 * @param string $var_name
438
+	 * @param string $heading_tag
439
+	 * @param string $margin
440
+	 * @param int    $line
441
+	 * @return string
442
+	 */
443
+	protected static function heading($var_name = '', $heading_tag = 'h5', $margin = '', $line = 0)
444
+	{
445
+		if (EEH_Debug_Tools::plainOutput()) {
446
+			$heading = '';
447
+			if ($heading_tag === 'h1' || $heading_tag === 'h2') {
448
+				$heading .= "\n";
449
+			}
450
+			$heading .= "\n{$line}) {$var_name}";
451
+			return $heading;
452
+		}
453
+		$margin = "25px 0 0 {$margin}";
454
+		return '<' . $heading_tag . ' style="color:#2EA2CC; margin:' . $margin . ';"><b>' . $var_name . '</b>';
455
+	}
456
+
457
+
458
+
459
+	/**
460
+	 * @param string $heading_tag
461
+	 * @return string
462
+	 */
463
+	protected static function headingX($heading_tag = 'h5')
464
+	{
465
+		if (EEH_Debug_Tools::plainOutput()) {
466
+			return '';
467
+		}
468
+		return '</' . $heading_tag . '>';
469
+	}
470
+
471
+
472
+
473
+	/**
474
+	 * @param string $content
475
+	 * @return string
476
+	 */
477
+	protected static function grey_span($content = '')
478
+	{
479
+		if (EEH_Debug_Tools::plainOutput()) {
480
+			return $content;
481
+		}
482
+		return '<span style="color:#999">' . $content . '</span>';
483
+	}
484
+
485
+
486
+
487
+	/**
488
+	 * @param string $file
489
+	 * @param int    $line
490
+	 * @return string
491
+	 */
492
+	protected static function file_and_line($file, $line, $heading_tag)
493
+	{
494
+		if ($file === '' || $line === '') {
495
+			return '';
496
+		}
497
+		$file = str_replace(EE_PLUGIN_DIR_PATH, '/', $file);
498
+		if (EEH_Debug_Tools::plainOutput()) {
499
+			if ($heading_tag === 'h1' || $heading_tag === 'h2') {
500
+				return " ({$file})";
501
+			}
502
+			return '';
503
+		}
504
+		return '<br /><span style="font-size:9px;font-weight:normal;color:#666;line-height: 12px;">'
505
+			   . $file
506
+			   . '<br />line no: '
507
+			   . $line
508
+			   . '</span>';
509
+	}
510
+
511
+
512
+
513
+	/**
514
+	 * @param string $content
515
+	 * @return string
516
+	 */
517
+	protected static function orange_span($content = '')
518
+	{
519
+		if (EEH_Debug_Tools::plainOutput()) {
520
+			return $content;
521
+		}
522
+		return '<span style="color:#E76700">' . $content . '</span>';
523
+	}
524
+
525
+
526
+
527
+	/**
528
+	 * @param mixed $var
529
+	 * @return string
530
+	 */
531
+	protected static function pre_span($var)
532
+	{
533
+		ob_start();
534
+		var_dump($var);
535
+		$var = ob_get_clean();
536
+		if (EEH_Debug_Tools::plainOutput()) {
537
+			return $var;
538
+		}
539
+		return '<pre style="color: #9C3; display: inline-block; padding:.4em .6em; background: #334">' . $var . '</pre>';
540
+	}
541
+
542
+
543
+
544
+	/**
545
+	 * @param mixed      $var
546
+	 * @param string     $var_name
547
+	 * @param string     $file
548
+	 * @param int|string $line
549
+	 * @param int|string $heading_tag
550
+	 * @param bool       $die
551
+	 */
552
+	public static function printr(
553
+		$var,
554
+		$var_name = '',
555
+		$file = '',
556
+		$line = '',
557
+		$heading_tag = 5,
558
+		$die = false
559
+	) {
560
+		// return;
561
+		$file = str_replace(rtrim(ABSPATH, '\\/'), '', $file);
562
+		if (empty($var) && empty($var_name)) {
563
+			$var = $file;
564
+			$var_name = "line $line";
565
+			$file = '';
566
+			$line = '';
567
+		}
568
+		$margin = is_admin() ? ' 180px' : '0';
569
+		// $print_r = false;
570
+		if (is_string($var)) {
571
+			EEH_Debug_Tools::printv($var, $var_name, $file, $line, $heading_tag, $die, $margin);
572
+			return;
573
+		}
574
+		if (is_object($var)) {
575
+			$var_name = ! $var_name ? 'object' : $var_name;
576
+			// $print_r = true;
577
+		} elseif (is_array($var)) {
578
+			$var_name = ! $var_name ? 'array' : $var_name;
579
+			// $print_r = true;
580
+		} elseif (is_numeric($var)) {
581
+			$var_name = ! $var_name ? 'numeric' : $var_name;
582
+		} elseif ($var === null) {
583
+			$var_name = ! $var_name ? 'null' : $var_name;
584
+		}
585
+		$var_name = ucwords(str_replace(array('$', '_'), array('', ' '), $var_name));
586
+		$heading_tag = EEH_Debug_Tools::headingTag($heading_tag);
587
+		$result = EEH_Debug_Tools::headingSpacer($heading_tag);
588
+		$result .= EEH_Debug_Tools::heading($var_name, $heading_tag, $margin, $line);
589
+		$result .= EEH_Debug_Tools::grey_span(' : ') . EEH_Debug_Tools::orange_span(
590
+			EEH_Debug_Tools::pre_span($var)
591
+		);
592
+		$result .= EEH_Debug_Tools::file_and_line($file, $line, $heading_tag);
593
+		$result .= EEH_Debug_Tools::headingX($heading_tag);
594
+		if ($die) {
595
+			die($result);
596
+		}
597
+		echo $result;
598
+	}
599
+
600
+
601
+
602
+	/******************** deprecated ********************/
603
+
604
+
605
+
606
+	/**
607
+	 * @deprecated 4.9.39.rc.034
608
+	 */
609
+	public function reset_times()
610
+	{
611
+		Benchmark::resetTimes();
612
+	}
613
+
614
+
615
+
616
+	/**
617
+	 * @deprecated 4.9.39.rc.034
618
+	 * @param null $timer_name
619
+	 */
620
+	public function start_timer($timer_name = null)
621
+	{
622
+		Benchmark::startTimer($timer_name);
623
+	}
624
+
625
+
626
+
627
+	/**
628
+	 * @deprecated 4.9.39.rc.034
629
+	 * @param string $timer_name
630
+	 */
631
+	public function stop_timer($timer_name = '')
632
+	{
633
+		Benchmark::stopTimer($timer_name);
634
+	}
635
+
636
+
637
+
638
+	/**
639
+	 * @deprecated 4.9.39.rc.034
640
+	 * @param string  $label      The label to show for this time eg "Start of calling Some_Class::some_function"
641
+	 * @param boolean $output_now whether to echo now, or wait until EEH_Debug_Tools::show_times() is called
642
+	 * @return void
643
+	 */
644
+	public function measure_memory($label, $output_now = false)
645
+	{
646
+		Benchmark::measureMemory($label, $output_now);
647
+	}
648
+
649
+
650
+
651
+	/**
652
+	 * @deprecated 4.9.39.rc.034
653
+	 * @param int $size
654
+	 * @return string
655
+	 */
656
+	public function convert($size)
657
+	{
658
+		return Benchmark::convert($size);
659
+	}
660
+
661
+
662
+
663
+	/**
664
+	 * @deprecated 4.9.39.rc.034
665
+	 * @param bool $output_now
666
+	 * @return string
667
+	 */
668
+	public function show_times($output_now = true)
669
+	{
670
+		return Benchmark::displayResults($output_now);
671
+	}
672
+
673
+
674
+
675
+	/**
676
+	 * @deprecated 4.9.39.rc.034
677
+	 * @param string $timer_name
678
+	 * @param float  $total_time
679
+	 * @return string
680
+	 */
681
+	public function format_time($timer_name, $total_time)
682
+	{
683
+		return Benchmark::formatTime($timer_name, $total_time);
684
+	}
685 685
 }
686 686
 
687 687
 
@@ -691,31 +691,31 @@  discard block
 block discarded – undo
691 691
  * Plugin URI: http://upthemes.com/plugins/kint-debugger/
692 692
  */
693 693
 if (class_exists('Kint') && ! function_exists('dump_wp_query')) {
694
-    function dump_wp_query()
695
-    {
696
-        global $wp_query;
697
-        d($wp_query);
698
-    }
694
+	function dump_wp_query()
695
+	{
696
+		global $wp_query;
697
+		d($wp_query);
698
+	}
699 699
 }
700 700
 /**
701 701
  * borrowed from Kint Debugger
702 702
  * Plugin URI: http://upthemes.com/plugins/kint-debugger/
703 703
  */
704 704
 if (class_exists('Kint') && ! function_exists('dump_wp')) {
705
-    function dump_wp()
706
-    {
707
-        global $wp;
708
-        d($wp);
709
-    }
705
+	function dump_wp()
706
+	{
707
+		global $wp;
708
+		d($wp);
709
+	}
710 710
 }
711 711
 /**
712 712
  * borrowed from Kint Debugger
713 713
  * Plugin URI: http://upthemes.com/plugins/kint-debugger/
714 714
  */
715 715
 if (class_exists('Kint') && ! function_exists('dump_post')) {
716
-    function dump_post()
717
-    {
718
-        global $post;
719
-        d($post);
720
-    }
716
+	function dump_post()
717
+	{
718
+		global $post;
719
+		d($post);
720
+	}
721 721
 }
Please login to merge, or discard this patch.
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     public static function instance()
35 35
     {
36 36
         // check if class object is instantiated, and instantiated properly
37
-        if (! self::$_instance instanceof EEH_Debug_Tools) {
37
+        if ( ! self::$_instance instanceof EEH_Debug_Tools) {
38 38
             self::$_instance = new self();
39 39
         }
40 40
         return self::$_instance;
@@ -48,13 +48,13 @@  discard block
 block discarded – undo
48 48
     private function __construct()
49 49
     {
50 50
         // load Kint PHP debugging library
51
-        if (! class_exists('Kint') && file_exists(EE_PLUGIN_DIR_PATH . 'tests/kint/Kint.class.php')) {
51
+        if ( ! class_exists('Kint') && file_exists(EE_PLUGIN_DIR_PATH.'tests/kint/Kint.class.php')) {
52 52
             // despite EE4 having a check for an existing copy of the Kint debugging class,
53 53
             // if another plugin was loaded AFTER EE4 and they did NOT perform a similar check,
54 54
             // then hilarity would ensue as PHP throws a "Cannot redeclare class Kint" error
55 55
             // so we've moved it to our test folder so that it is not included with production releases
56 56
             // plz use https://wordpress.org/plugins/kint-debugger/  if testing production versions of EE
57
-            require_once(EE_PLUGIN_DIR_PATH . 'tests/kint/Kint.class.php');
57
+            require_once(EE_PLUGIN_DIR_PATH.'tests/kint/Kint.class.php');
58 58
         }
59 59
         // if ( ! defined('DOING_AJAX') || $_REQUEST['noheader'] !== 'true' || ! isset( $_REQUEST['noheader'], $_REQUEST['TB_iframe'] ) ) {
60 60
         // add_action( 'shutdown', array($this,'espresso_session_footer_dump') );
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public static function show_db_name()
76 76
     {
77
-        if (! defined('DOING_AJAX') && (defined('EE_ERROR_EMAILS') && EE_ERROR_EMAILS)) {
77
+        if ( ! defined('DOING_AJAX') && (defined('EE_ERROR_EMAILS') && EE_ERROR_EMAILS)) {
78 78
             echo '<p style="font-size:10px;font-weight:normal;color:#E76700;margin: 1em 2em; text-align: right;">DB_NAME: '
79 79
                  . DB_NAME
80 80
                  . '</p>';
@@ -123,12 +123,12 @@  discard block
 block discarded – undo
123 123
         global $wp_filter;
124 124
         echo '<br/><br/><br/><h3>Hooked Functions</h3>';
125 125
         if ($tag) {
126
-            $hook[ $tag ] = $wp_filter[ $tag ];
127
-            if (! is_array($hook[ $tag ])) {
126
+            $hook[$tag] = $wp_filter[$tag];
127
+            if ( ! is_array($hook[$tag])) {
128 128
                 trigger_error("Nothing found for '$tag' hook", E_USER_WARNING);
129 129
                 return;
130 130
             }
131
-            echo '<h5>For Tag: ' . $tag . '</h5>';
131
+            echo '<h5>For Tag: '.$tag.'</h5>';
132 132
         } else {
133 133
             $hook = is_array($wp_filter) ? $wp_filter : array($wp_filter);
134 134
             ksort($hook);
@@ -157,12 +157,12 @@  discard block
 block discarded – undo
157 157
     {
158 158
         $filters = array();
159 159
         global $wp_filter;
160
-        if (isset($wp_filter[ $hook_name ])) {
161
-            $filters[ $hook_name ] = array();
162
-            foreach ($wp_filter[ $hook_name ] as $priority => $callbacks) {
163
-                $filters[ $hook_name ][ $priority ] = array();
160
+        if (isset($wp_filter[$hook_name])) {
161
+            $filters[$hook_name] = array();
162
+            foreach ($wp_filter[$hook_name] as $priority => $callbacks) {
163
+                $filters[$hook_name][$priority] = array();
164 164
                 foreach ($callbacks as $callback) {
165
-                    $filters[ $hook_name ][ $priority ][] = $callback['function'];
165
+                    $filters[$hook_name][$priority][] = $callback['function'];
166 166
                 }
167 167
             }
168 168
         }
@@ -184,15 +184,15 @@  discard block
 block discarded – undo
184 184
             if (empty($activation_errors)) {
185 185
                 return;
186 186
             }
187
-            $activation_errors = date('Y-m-d H:i:s') . "\n" . $activation_errors;
188
-            espresso_load_required('EEH_File', EE_HELPERS . 'EEH_File.helper.php');
187
+            $activation_errors = date('Y-m-d H:i:s')."\n".$activation_errors;
188
+            espresso_load_required('EEH_File', EE_HELPERS.'EEH_File.helper.php');
189 189
             if (class_exists('EEH_File')) {
190 190
                 try {
191 191
                     EEH_File::ensure_file_exists_and_is_writable(
192
-                        EVENT_ESPRESSO_UPLOAD_DIR . 'logs/espresso_plugin_activation_errors.html'
192
+                        EVENT_ESPRESSO_UPLOAD_DIR.'logs/espresso_plugin_activation_errors.html'
193 193
                     );
194 194
                     EEH_File::write_to_file(
195
-                        EVENT_ESPRESSO_UPLOAD_DIR . 'logs/espresso_plugin_activation_errors.html',
195
+                        EVENT_ESPRESSO_UPLOAD_DIR.'logs/espresso_plugin_activation_errors.html',
196 196
                         $activation_errors
197 197
                     );
198 198
                 } catch (EE_Error $e) {
@@ -212,11 +212,11 @@  discard block
 block discarded – undo
212 212
             } else {
213 213
                 // old school attempt
214 214
                 file_put_contents(
215
-                    EVENT_ESPRESSO_UPLOAD_DIR . 'logs/espresso_plugin_activation_errors.html',
215
+                    EVENT_ESPRESSO_UPLOAD_DIR.'logs/espresso_plugin_activation_errors.html',
216 216
                     $activation_errors
217 217
                 );
218 218
             }
219
-            $activation_errors = get_option('ee_plugin_activation_errors', '') . $activation_errors;
219
+            $activation_errors = get_option('ee_plugin_activation_errors', '').$activation_errors;
220 220
             update_option('ee_plugin_activation_errors', $activation_errors);
221 221
         }
222 222
     }
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
         // don't trigger error if doing ajax,
277 277
         // instead we'll add a transient EE_Error notice that in theory should show on the next request.
278 278
         if (defined('DOING_AJAX') && DOING_AJAX) {
279
-            $error_message .= ' ' . esc_html__(
279
+            $error_message .= ' '.esc_html__(
280 280
                 'This is a doing_it_wrong message that was triggered during an ajax request.  The request params on this request were: ',
281 281
                 'event_espresso'
282 282
             );
@@ -320,19 +320,19 @@  discard block
 block discarded – undo
320 320
         $debug_key = 'EE_DEBUG_SPCO'
321 321
     ) {
322 322
         if (WP_DEBUG) {
323
-            $debug_key = $debug_key . '_' . EE_Session::instance()->id();
323
+            $debug_key = $debug_key.'_'.EE_Session::instance()->id();
324 324
             $debug_data = get_option($debug_key, array());
325 325
             $default_data = array(
326
-                $class => $func . '() : ' . $line,
326
+                $class => $func.'() : '.$line,
327 327
                 'REQ'  => $display_request ? $_REQUEST : '',
328 328
             );
329 329
             // don't serialize objects
330 330
             $info = self::strip_objects($info);
331 331
             $index = ! empty($debug_index) ? $debug_index : 0;
332
-            if (! isset($debug_data[ $index ])) {
333
-                $debug_data[ $index ] = array();
332
+            if ( ! isset($debug_data[$index])) {
333
+                $debug_data[$index] = array();
334 334
             }
335
-            $debug_data[ $index ][ microtime() ] = array_merge($default_data, $info);
335
+            $debug_data[$index][microtime()] = array_merge($default_data, $info);
336 336
             update_option($debug_key, $debug_data);
337 337
         }
338 338
     }
@@ -349,20 +349,20 @@  discard block
 block discarded – undo
349 349
     {
350 350
         foreach ($info as $key => $value) {
351 351
             if (is_array($value)) {
352
-                $info[ $key ] = self::strip_objects($value);
352
+                $info[$key] = self::strip_objects($value);
353 353
             } elseif (is_object($value)) {
354 354
                 $object_class = get_class($value);
355
-                $info[ $object_class ] = array();
356
-                $info[ $object_class ]['ID'] = method_exists($value, 'ID') ? $value->ID() : spl_object_hash($value);
355
+                $info[$object_class] = array();
356
+                $info[$object_class]['ID'] = method_exists($value, 'ID') ? $value->ID() : spl_object_hash($value);
357 357
                 if (method_exists($value, 'ID')) {
358
-                    $info[ $object_class ]['ID'] = $value->ID();
358
+                    $info[$object_class]['ID'] = $value->ID();
359 359
                 }
360 360
                 if (method_exists($value, 'status')) {
361
-                    $info[ $object_class ]['status'] = $value->status();
361
+                    $info[$object_class]['status'] = $value->status();
362 362
                 } elseif (method_exists($value, 'status_ID')) {
363
-                    $info[ $object_class ]['status'] = $value->status_ID();
363
+                    $info[$object_class]['status'] = $value->status_ID();
364 364
                 }
365
-                unset($info[ $key ]);
365
+                unset($info[$key]);
366 366
             }
367 367
         }
368 368
         return (array) $info;
@@ -396,8 +396,8 @@  discard block
 block discarded – undo
396 396
         $result = EEH_Debug_Tools::headingSpacer($heading_tag);
397 397
         $result .= EEH_Debug_Tools::heading($var_name, $heading_tag, $margin, $line);
398 398
         $result .= $is_method
399
-            ? EEH_Debug_Tools::grey_span('::') . EEH_Debug_Tools::orange_span($var . '()')
400
-            : EEH_Debug_Tools::grey_span(' : ') . EEH_Debug_Tools::orange_span($var);
399
+            ? EEH_Debug_Tools::grey_span('::').EEH_Debug_Tools::orange_span($var.'()')
400
+            : EEH_Debug_Tools::grey_span(' : ').EEH_Debug_Tools::orange_span($var);
401 401
         $result .= EEH_Debug_Tools::file_and_line($file, $line, $heading_tag);
402 402
         $result .= EEH_Debug_Tools::headingX($heading_tag);
403 403
         if ($die) {
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
             return $heading;
452 452
         }
453 453
         $margin = "25px 0 0 {$margin}";
454
-        return '<' . $heading_tag . ' style="color:#2EA2CC; margin:' . $margin . ';"><b>' . $var_name . '</b>';
454
+        return '<'.$heading_tag.' style="color:#2EA2CC; margin:'.$margin.';"><b>'.$var_name.'</b>';
455 455
     }
456 456
 
457 457
 
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
         if (EEH_Debug_Tools::plainOutput()) {
466 466
             return '';
467 467
         }
468
-        return '</' . $heading_tag . '>';
468
+        return '</'.$heading_tag.'>';
469 469
     }
470 470
 
471 471
 
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
         if (EEH_Debug_Tools::plainOutput()) {
480 480
             return $content;
481 481
         }
482
-        return '<span style="color:#999">' . $content . '</span>';
482
+        return '<span style="color:#999">'.$content.'</span>';
483 483
     }
484 484
 
485 485
 
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
         if (EEH_Debug_Tools::plainOutput()) {
520 520
             return $content;
521 521
         }
522
-        return '<span style="color:#E76700">' . $content . '</span>';
522
+        return '<span style="color:#E76700">'.$content.'</span>';
523 523
     }
524 524
 
525 525
 
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
         if (EEH_Debug_Tools::plainOutput()) {
537 537
             return $var;
538 538
         }
539
-        return '<pre style="color: #9C3; display: inline-block; padding:.4em .6em; background: #334">' . $var . '</pre>';
539
+        return '<pre style="color: #9C3; display: inline-block; padding:.4em .6em; background: #334">'.$var.'</pre>';
540 540
     }
541 541
 
542 542
 
@@ -586,7 +586,7 @@  discard block
 block discarded – undo
586 586
         $heading_tag = EEH_Debug_Tools::headingTag($heading_tag);
587 587
         $result = EEH_Debug_Tools::headingSpacer($heading_tag);
588 588
         $result .= EEH_Debug_Tools::heading($var_name, $heading_tag, $margin, $line);
589
-        $result .= EEH_Debug_Tools::grey_span(' : ') . EEH_Debug_Tools::orange_span(
589
+        $result .= EEH_Debug_Tools::grey_span(' : ').EEH_Debug_Tools::orange_span(
590 590
             EEH_Debug_Tools::pre_span($var)
591 591
         );
592 592
         $result .= EEH_Debug_Tools::file_and_line($file, $line, $heading_tag);
Please login to merge, or discard this patch.
core/domain/services/graphql/mutators/TicketDelete.php 1 patch
Indentation   +83 added lines, -83 removed lines patch added patch discarded remove patch
@@ -17,93 +17,93 @@
 block discarded – undo
17 17
 class TicketDelete extends EntityMutator
18 18
 {
19 19
 
20
-    /**
21
-     * Defines the mutation data modification closure.
22
-     *
23
-     * @param EEM_Ticket $model
24
-     * @param Ticket     $type
25
-     * @return callable
26
-     */
27
-    public static function mutateAndGetPayload(EEM_Ticket $model, Ticket $type)
28
-    {
29
-        /**
30
-         * Deletes an entity.
31
-         *
32
-         * @param array       $input   The input for the mutation
33
-         * @param AppContext  $context The AppContext passed down to all resolvers
34
-         * @param ResolveInfo $info    The ResolveInfo passed down to all resolvers
35
-         * @return array
36
-         */
37
-        return static function ($input, AppContext $context, ResolveInfo $info) use ($model, $type) {
38
-            try {
39
-                /** @var EE_Ticket $entity */
40
-                $entity = EntityMutator::getEntityFromInputData($model, $input);
20
+	/**
21
+	 * Defines the mutation data modification closure.
22
+	 *
23
+	 * @param EEM_Ticket $model
24
+	 * @param Ticket     $type
25
+	 * @return callable
26
+	 */
27
+	public static function mutateAndGetPayload(EEM_Ticket $model, Ticket $type)
28
+	{
29
+		/**
30
+		 * Deletes an entity.
31
+		 *
32
+		 * @param array       $input   The input for the mutation
33
+		 * @param AppContext  $context The AppContext passed down to all resolvers
34
+		 * @param ResolveInfo $info    The ResolveInfo passed down to all resolvers
35
+		 * @return array
36
+		 */
37
+		return static function ($input, AppContext $context, ResolveInfo $info) use ($model, $type) {
38
+			try {
39
+				/** @var EE_Ticket $entity */
40
+				$entity = EntityMutator::getEntityFromInputData($model, $input);
41 41
 
42
-                // Delete the entity
43
-                if (! empty($input['deletePermanently'])) {
44
-                    $result = TicketDelete::deleteTicketAndRelations($entity);
45
-                } else {
46
-                    // trash the ticket
47
-                    $result = TicketDelete::trashTicket($entity);
48
-                }
49
-                EntityMutator::validateResults($result);
42
+				// Delete the entity
43
+				if (! empty($input['deletePermanently'])) {
44
+					$result = TicketDelete::deleteTicketAndRelations($entity);
45
+				} else {
46
+					// trash the ticket
47
+					$result = TicketDelete::trashTicket($entity);
48
+				}
49
+				EntityMutator::validateResults($result);
50 50
 
51
-                do_action('AHEE__EventEspresso_core_domain_services_graphql_mutators_ticket_delete', $entity, $input);
52
-            } catch (Exception $exception) {
53
-                EntityMutator::handleExceptions(
54
-                    $exception,
55
-                    esc_html__(
56
-                        'The ticket could not be deleted because of the following error(s)',
57
-                        'event_espresso'
58
-                    )
59
-                );
60
-            }
51
+				do_action('AHEE__EventEspresso_core_domain_services_graphql_mutators_ticket_delete', $entity, $input);
52
+			} catch (Exception $exception) {
53
+				EntityMutator::handleExceptions(
54
+					$exception,
55
+					esc_html__(
56
+						'The ticket could not be deleted because of the following error(s)',
57
+						'event_espresso'
58
+					)
59
+				);
60
+			}
61 61
 
62
-            return [
63
-                'deleted' => $entity,
64
-            ];
65
-        };
66
-    }
62
+			return [
63
+				'deleted' => $entity,
64
+			];
65
+		};
66
+	}
67 67
 
68
-    /**
69
-     * Deletes a ticket permanently along with its relations.
70
-     *
71
-     * @param EE_Ticket $entity
72
-     * @return bool | int
73
-     * @throws ReflectionException
74
-     * @throws InvalidArgumentException
75
-     * @throws InvalidInterfaceException
76
-     * @throws InvalidDataTypeException
77
-     * @throws EE_Error
78
-     */
79
-    public static function deleteTicketAndRelations($entity)
80
-    {
81
-        // Remove related non-default prices for the ticket
82
-        $entity->delete_related_permanently('Price', [['PRC_is_default' => false]]);
83
-        // The ticket still might have relations with default taxes, lets divorce them
84
-        $entity->_remove_relations('Price');
85
-        // Remove relation with datetimes
86
-        $entity->_remove_relations('Datetime');
87
-        // Now delete the ticket permanently
88
-        $result = $entity->delete_permanently();
68
+	/**
69
+	 * Deletes a ticket permanently along with its relations.
70
+	 *
71
+	 * @param EE_Ticket $entity
72
+	 * @return bool | int
73
+	 * @throws ReflectionException
74
+	 * @throws InvalidArgumentException
75
+	 * @throws InvalidInterfaceException
76
+	 * @throws InvalidDataTypeException
77
+	 * @throws EE_Error
78
+	 */
79
+	public static function deleteTicketAndRelations($entity)
80
+	{
81
+		// Remove related non-default prices for the ticket
82
+		$entity->delete_related_permanently('Price', [['PRC_is_default' => false]]);
83
+		// The ticket still might have relations with default taxes, lets divorce them
84
+		$entity->_remove_relations('Price');
85
+		// Remove relation with datetimes
86
+		$entity->_remove_relations('Datetime');
87
+		// Now delete the ticket permanently
88
+		$result = $entity->delete_permanently();
89 89
 
90
-        return $result;
91
-    }
90
+		return $result;
91
+	}
92 92
 
93
-    /**
94
-     * Trashes a ticket.
95
-     *
96
-     * @param EE_Ticket $entity
97
-     * @return bool | int
98
-     * @throws ReflectionException
99
-     * @throws InvalidArgumentException
100
-     * @throws InvalidInterfaceException
101
-     * @throws InvalidDataTypeException
102
-     * @throws EE_Error
103
-     */
104
-    public static function trashTicket($entity)
105
-    {
106
-        // trash the ticket
107
-        return $entity->delete();
108
-    }
93
+	/**
94
+	 * Trashes a ticket.
95
+	 *
96
+	 * @param EE_Ticket $entity
97
+	 * @return bool | int
98
+	 * @throws ReflectionException
99
+	 * @throws InvalidArgumentException
100
+	 * @throws InvalidInterfaceException
101
+	 * @throws InvalidDataTypeException
102
+	 * @throws EE_Error
103
+	 */
104
+	public static function trashTicket($entity)
105
+	{
106
+		// trash the ticket
107
+		return $entity->delete();
108
+	}
109 109
 }
Please login to merge, or discard this patch.
core/domain/services/admin/entities/DefaultPrices.php 2 patches
Indentation   +207 added lines, -207 removed lines patch added patch discarded remove patch
@@ -25,211 +25,211 @@
 block discarded – undo
25 25
 class DefaultPrices implements DefaultEntityGeneratorInterface
26 26
 {
27 27
 
28
-    /**
29
-     * @var EEM_Price
30
-     */
31
-    protected $price_model;
32
-
33
-    /**
34
-     * @var EEM_Price_Type
35
-     */
36
-    protected $price_type_model;
37
-
38
-    /**
39
-     * @var EE_Price[]
40
-     */
41
-    protected $new_prices = [];
42
-
43
-    /**
44
-     * @var EE_Price[]
45
-     */
46
-    protected $taxes = [];
47
-
48
-
49
-    /**
50
-     * @param EEM_Price      $price_model
51
-     * @param EEM_Price_Type $price_type_model
52
-     */
53
-    public function __construct(EEM_Price $price_model, EEM_Price_Type $price_type_model)
54
-    {
55
-        $this->price_model      = $price_model;
56
-        $this->price_type_model = $price_type_model;
57
-    }
58
-
59
-
60
-    /**
61
-     * @param EE_Ticket|EE_Base_Class $entity
62
-     * @return EE_Price[]
63
-     * @throws EE_Error
64
-     * @throws InvalidInterfaceException
65
-     * @throws ReflectionException
66
-     * @since $VID:$
67
-     */
68
-    public function create(EE_Base_Class $entity): array
69
-    {
70
-        if (! $entity instanceof EE_Ticket) {
71
-            throw new InvalidEntityException($entity, 'EE_Ticket');
72
-        }
73
-        $is_free                   = true;
74
-        $has_base_price            = false;
75
-        $remove_existing_relations = true;
76
-        // first, let's get all of the default taxes for the site
77
-        $this->taxes = $this->price_model->getAllDefaultTaxes();
78
-        // then separate taxes from the other prices for the existing default ticket prices
79
-        $default_prices = $this->separateTaxesFromOtherPrices($entity->prices());
80
-        // but if that's empty, then let's get the default global prices
81
-        if (empty($default_prices)) {
82
-            $default_global_prices     = $this->price_model->get_all_default_prices();
83
-            $default_prices            = $this->separateTaxesFromOtherPrices($default_global_prices);
84
-            $remove_existing_relations = false;
85
-        }
86
-        // then clone and apply all of the default prices
87
-        [$has_base_price, $is_free] = $this->cloneDefaultPrices(
88
-            $entity,
89
-            $default_prices,
90
-            $remove_existing_relations,
91
-            $has_base_price,
92
-            $is_free
93
-        );
94
-        if (! $has_base_price) {
95
-            $new_base_price                            = $this->createNewBasePrice($entity);
96
-            $this->new_prices[ $new_base_price->ID() ] = $new_base_price;
97
-        }
98
-        $this->applyTaxes($entity, $is_free);
99
-        $ticket_total = $entity->get_ticket_total_with_taxes(true);
100
-        if ($ticket_total !== $entity->ticket_price()) {
101
-            $entity->set_price($ticket_total);
102
-            $entity->save();
103
-        }
104
-        return $this->new_prices;
105
-    }
106
-
107
-
108
-    /**
109
-     * @param EE_Ticket $ticket
110
-     * @param bool      $is_free
111
-     * @throws EE_Error
112
-     * @throws ReflectionException
113
-     */
114
-    private function applyTaxes(EE_Ticket $ticket, bool $is_free)
115
-    {
116
-        if (! $is_free && $ticket->taxable() && ! empty($this->taxes)) {
117
-            foreach ($this->taxes as $tax) {
118
-                // assign taxes but don't duplicate them because they operate globally
119
-                $ticket->set_taxable(true);
120
-                $tax->_add_relation_to($ticket, 'Ticket');
121
-            }
122
-        }
123
-    }
124
-
125
-
126
-    /**
127
-     * @param EE_Ticket  $ticket
128
-     * @param EE_Price[] $default_prices
129
-     * @param bool       $remove_existing_relations
130
-     * @param bool       $has_base_price
131
-     * @param bool       $is_free
132
-     * @return bool[]
133
-     * @throws EE_Error
134
-     * @throws ReflectionException
135
-     */
136
-    private function cloneDefaultPrices(
137
-        EE_Ticket $ticket,
138
-        array $default_prices,
139
-        bool $remove_existing_relations,
140
-        bool $has_base_price,
141
-        bool $is_free
142
-    ): array {
143
-        foreach ($default_prices as $default_price) {
144
-            // duplicate the default price so that it does not get mutated
145
-            $default_price_clone = clone $default_price;
146
-            if ($remove_existing_relations) {
147
-                $ticket->_remove_relation_to($default_price, 'Price');
148
-            }
149
-            if ((
150
-                    // has non-zero base price
151
-                    $default_price_clone->is_base_price()
152
-                    && $default_price_clone->amount() > 0
153
-                )
154
-                || (
155
-                    // or has fixed amount surcharge
156
-                    $default_price_clone->is_surcharge()
157
-                    && ! $default_price_clone->is_percent()
158
-                )
159
-            ) {
160
-                $is_free = false;
161
-            }
162
-            $is_base_price = $default_price_clone->is_base_price();
163
-            // add this price to ticket if it is a regular price modifier, ie: NOT a base price,
164
-            // OR if it IS a base price but this ticket does NOT already have a base price
165
-            if (! $is_base_price || ! $has_base_price) {
166
-                $default_price_clone->set('PRC_ID', null);
167
-                $default_price_clone->set('PRC_is_default', false);
168
-                $default_price_clone->save();
169
-                $default_price_clone->_add_relation_to($ticket, 'Ticket');
170
-                $this->new_prices[ $default_price_clone->ID() ] = $default_price_clone;
171
-                // then recheck that a base price has been set so that we don't add another one
172
-                $has_base_price = $is_base_price ? true : $has_base_price;
173
-            }
174
-        }
175
-        return [$has_base_price, $is_free];
176
-    }
177
-
178
-
179
-    /**
180
-     * @param EE_Ticket $ticket
181
-     * @return EE_Price
182
-     * @throws EE_Error
183
-     * @throws ReflectionException
184
-     */
185
-    private function createNewBasePrice(EE_Ticket $ticket): EE_Price
186
-    {
187
-        $new_base_price  = $this->price_model->get_new_price();
188
-        $base_price_type = $this->price_type_model->get_one(
189
-            [
190
-                [
191
-                    'PBT_ID' => EEM_Price_Type::base_type_base_price,
192
-                ],
193
-            ]
194
-        );
195
-        if (! $base_price_type instanceof EE_Price_Type) {
196
-            throw new RuntimeException(
197
-                esc_html__(
198
-                    'A valid base price type could not be retrieved from the database.',
199
-                    'event_espresso'
200
-                )
201
-            );
202
-        }
203
-        $new_base_price->set('PRT_ID', $base_price_type->ID());
204
-        $new_base_price->set('PRC_is_default', false);
205
-        $new_base_price->save();
206
-        $new_base_price->_add_relation_to($ticket, 'Ticket');
207
-        return $new_base_price;
208
-    }
209
-
210
-
211
-    /**
212
-     * @param array $prices
213
-     * @return array
214
-     * @throws EE_Error
215
-     * @throws ReflectionException
216
-     */
217
-    private function separateTaxesFromOtherPrices(array $prices = []): array
218
-    {
219
-        $default_prices = [];
220
-        if (is_array($prices)) {
221
-            foreach ($prices as $key => $price) {
222
-                if (! $price instanceof EE_Price) {
223
-                    throw new InvalidEntityException($price, 'EE_Price');
224
-                }
225
-                // grab any taxes but don't do anything just yet
226
-                if ($price->is_tax()) {
227
-                    $this->taxes[ $price->ID() ] = $price;
228
-                    continue;
229
-                }
230
-                $default_prices[ $price->ID() ] = $price;
231
-            }
232
-        }
233
-        return $default_prices;
234
-    }
28
+	/**
29
+	 * @var EEM_Price
30
+	 */
31
+	protected $price_model;
32
+
33
+	/**
34
+	 * @var EEM_Price_Type
35
+	 */
36
+	protected $price_type_model;
37
+
38
+	/**
39
+	 * @var EE_Price[]
40
+	 */
41
+	protected $new_prices = [];
42
+
43
+	/**
44
+	 * @var EE_Price[]
45
+	 */
46
+	protected $taxes = [];
47
+
48
+
49
+	/**
50
+	 * @param EEM_Price      $price_model
51
+	 * @param EEM_Price_Type $price_type_model
52
+	 */
53
+	public function __construct(EEM_Price $price_model, EEM_Price_Type $price_type_model)
54
+	{
55
+		$this->price_model      = $price_model;
56
+		$this->price_type_model = $price_type_model;
57
+	}
58
+
59
+
60
+	/**
61
+	 * @param EE_Ticket|EE_Base_Class $entity
62
+	 * @return EE_Price[]
63
+	 * @throws EE_Error
64
+	 * @throws InvalidInterfaceException
65
+	 * @throws ReflectionException
66
+	 * @since $VID:$
67
+	 */
68
+	public function create(EE_Base_Class $entity): array
69
+	{
70
+		if (! $entity instanceof EE_Ticket) {
71
+			throw new InvalidEntityException($entity, 'EE_Ticket');
72
+		}
73
+		$is_free                   = true;
74
+		$has_base_price            = false;
75
+		$remove_existing_relations = true;
76
+		// first, let's get all of the default taxes for the site
77
+		$this->taxes = $this->price_model->getAllDefaultTaxes();
78
+		// then separate taxes from the other prices for the existing default ticket prices
79
+		$default_prices = $this->separateTaxesFromOtherPrices($entity->prices());
80
+		// but if that's empty, then let's get the default global prices
81
+		if (empty($default_prices)) {
82
+			$default_global_prices     = $this->price_model->get_all_default_prices();
83
+			$default_prices            = $this->separateTaxesFromOtherPrices($default_global_prices);
84
+			$remove_existing_relations = false;
85
+		}
86
+		// then clone and apply all of the default prices
87
+		[$has_base_price, $is_free] = $this->cloneDefaultPrices(
88
+			$entity,
89
+			$default_prices,
90
+			$remove_existing_relations,
91
+			$has_base_price,
92
+			$is_free
93
+		);
94
+		if (! $has_base_price) {
95
+			$new_base_price                            = $this->createNewBasePrice($entity);
96
+			$this->new_prices[ $new_base_price->ID() ] = $new_base_price;
97
+		}
98
+		$this->applyTaxes($entity, $is_free);
99
+		$ticket_total = $entity->get_ticket_total_with_taxes(true);
100
+		if ($ticket_total !== $entity->ticket_price()) {
101
+			$entity->set_price($ticket_total);
102
+			$entity->save();
103
+		}
104
+		return $this->new_prices;
105
+	}
106
+
107
+
108
+	/**
109
+	 * @param EE_Ticket $ticket
110
+	 * @param bool      $is_free
111
+	 * @throws EE_Error
112
+	 * @throws ReflectionException
113
+	 */
114
+	private function applyTaxes(EE_Ticket $ticket, bool $is_free)
115
+	{
116
+		if (! $is_free && $ticket->taxable() && ! empty($this->taxes)) {
117
+			foreach ($this->taxes as $tax) {
118
+				// assign taxes but don't duplicate them because they operate globally
119
+				$ticket->set_taxable(true);
120
+				$tax->_add_relation_to($ticket, 'Ticket');
121
+			}
122
+		}
123
+	}
124
+
125
+
126
+	/**
127
+	 * @param EE_Ticket  $ticket
128
+	 * @param EE_Price[] $default_prices
129
+	 * @param bool       $remove_existing_relations
130
+	 * @param bool       $has_base_price
131
+	 * @param bool       $is_free
132
+	 * @return bool[]
133
+	 * @throws EE_Error
134
+	 * @throws ReflectionException
135
+	 */
136
+	private function cloneDefaultPrices(
137
+		EE_Ticket $ticket,
138
+		array $default_prices,
139
+		bool $remove_existing_relations,
140
+		bool $has_base_price,
141
+		bool $is_free
142
+	): array {
143
+		foreach ($default_prices as $default_price) {
144
+			// duplicate the default price so that it does not get mutated
145
+			$default_price_clone = clone $default_price;
146
+			if ($remove_existing_relations) {
147
+				$ticket->_remove_relation_to($default_price, 'Price');
148
+			}
149
+			if ((
150
+					// has non-zero base price
151
+					$default_price_clone->is_base_price()
152
+					&& $default_price_clone->amount() > 0
153
+				)
154
+				|| (
155
+					// or has fixed amount surcharge
156
+					$default_price_clone->is_surcharge()
157
+					&& ! $default_price_clone->is_percent()
158
+				)
159
+			) {
160
+				$is_free = false;
161
+			}
162
+			$is_base_price = $default_price_clone->is_base_price();
163
+			// add this price to ticket if it is a regular price modifier, ie: NOT a base price,
164
+			// OR if it IS a base price but this ticket does NOT already have a base price
165
+			if (! $is_base_price || ! $has_base_price) {
166
+				$default_price_clone->set('PRC_ID', null);
167
+				$default_price_clone->set('PRC_is_default', false);
168
+				$default_price_clone->save();
169
+				$default_price_clone->_add_relation_to($ticket, 'Ticket');
170
+				$this->new_prices[ $default_price_clone->ID() ] = $default_price_clone;
171
+				// then recheck that a base price has been set so that we don't add another one
172
+				$has_base_price = $is_base_price ? true : $has_base_price;
173
+			}
174
+		}
175
+		return [$has_base_price, $is_free];
176
+	}
177
+
178
+
179
+	/**
180
+	 * @param EE_Ticket $ticket
181
+	 * @return EE_Price
182
+	 * @throws EE_Error
183
+	 * @throws ReflectionException
184
+	 */
185
+	private function createNewBasePrice(EE_Ticket $ticket): EE_Price
186
+	{
187
+		$new_base_price  = $this->price_model->get_new_price();
188
+		$base_price_type = $this->price_type_model->get_one(
189
+			[
190
+				[
191
+					'PBT_ID' => EEM_Price_Type::base_type_base_price,
192
+				],
193
+			]
194
+		);
195
+		if (! $base_price_type instanceof EE_Price_Type) {
196
+			throw new RuntimeException(
197
+				esc_html__(
198
+					'A valid base price type could not be retrieved from the database.',
199
+					'event_espresso'
200
+				)
201
+			);
202
+		}
203
+		$new_base_price->set('PRT_ID', $base_price_type->ID());
204
+		$new_base_price->set('PRC_is_default', false);
205
+		$new_base_price->save();
206
+		$new_base_price->_add_relation_to($ticket, 'Ticket');
207
+		return $new_base_price;
208
+	}
209
+
210
+
211
+	/**
212
+	 * @param array $prices
213
+	 * @return array
214
+	 * @throws EE_Error
215
+	 * @throws ReflectionException
216
+	 */
217
+	private function separateTaxesFromOtherPrices(array $prices = []): array
218
+	{
219
+		$default_prices = [];
220
+		if (is_array($prices)) {
221
+			foreach ($prices as $key => $price) {
222
+				if (! $price instanceof EE_Price) {
223
+					throw new InvalidEntityException($price, 'EE_Price');
224
+				}
225
+				// grab any taxes but don't do anything just yet
226
+				if ($price->is_tax()) {
227
+					$this->taxes[ $price->ID() ] = $price;
228
+					continue;
229
+				}
230
+				$default_prices[ $price->ID() ] = $price;
231
+			}
232
+		}
233
+		return $default_prices;
234
+	}
235 235
 }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function create(EE_Base_Class $entity): array
69 69
     {
70
-        if (! $entity instanceof EE_Ticket) {
70
+        if ( ! $entity instanceof EE_Ticket) {
71 71
             throw new InvalidEntityException($entity, 'EE_Ticket');
72 72
         }
73 73
         $is_free                   = true;
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
91 91
             $has_base_price,
92 92
             $is_free
93 93
         );
94
-        if (! $has_base_price) {
94
+        if ( ! $has_base_price) {
95 95
             $new_base_price                            = $this->createNewBasePrice($entity);
96
-            $this->new_prices[ $new_base_price->ID() ] = $new_base_price;
96
+            $this->new_prices[$new_base_price->ID()] = $new_base_price;
97 97
         }
98 98
         $this->applyTaxes($entity, $is_free);
99 99
         $ticket_total = $entity->get_ticket_total_with_taxes(true);
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     private function applyTaxes(EE_Ticket $ticket, bool $is_free)
115 115
     {
116
-        if (! $is_free && $ticket->taxable() && ! empty($this->taxes)) {
116
+        if ( ! $is_free && $ticket->taxable() && ! empty($this->taxes)) {
117 117
             foreach ($this->taxes as $tax) {
118 118
                 // assign taxes but don't duplicate them because they operate globally
119 119
                 $ticket->set_taxable(true);
@@ -162,12 +162,12 @@  discard block
 block discarded – undo
162 162
             $is_base_price = $default_price_clone->is_base_price();
163 163
             // add this price to ticket if it is a regular price modifier, ie: NOT a base price,
164 164
             // OR if it IS a base price but this ticket does NOT already have a base price
165
-            if (! $is_base_price || ! $has_base_price) {
165
+            if ( ! $is_base_price || ! $has_base_price) {
166 166
                 $default_price_clone->set('PRC_ID', null);
167 167
                 $default_price_clone->set('PRC_is_default', false);
168 168
                 $default_price_clone->save();
169 169
                 $default_price_clone->_add_relation_to($ticket, 'Ticket');
170
-                $this->new_prices[ $default_price_clone->ID() ] = $default_price_clone;
170
+                $this->new_prices[$default_price_clone->ID()] = $default_price_clone;
171 171
                 // then recheck that a base price has been set so that we don't add another one
172 172
                 $has_base_price = $is_base_price ? true : $has_base_price;
173 173
             }
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
                 ],
193 193
             ]
194 194
         );
195
-        if (! $base_price_type instanceof EE_Price_Type) {
195
+        if ( ! $base_price_type instanceof EE_Price_Type) {
196 196
             throw new RuntimeException(
197 197
                 esc_html__(
198 198
                     'A valid base price type could not be retrieved from the database.',
@@ -219,15 +219,15 @@  discard block
 block discarded – undo
219 219
         $default_prices = [];
220 220
         if (is_array($prices)) {
221 221
             foreach ($prices as $key => $price) {
222
-                if (! $price instanceof EE_Price) {
222
+                if ( ! $price instanceof EE_Price) {
223 223
                     throw new InvalidEntityException($price, 'EE_Price');
224 224
                 }
225 225
                 // grab any taxes but don't do anything just yet
226 226
                 if ($price->is_tax()) {
227
-                    $this->taxes[ $price->ID() ] = $price;
227
+                    $this->taxes[$price->ID()] = $price;
228 228
                     continue;
229 229
                 }
230
-                $default_prices[ $price->ID() ] = $price;
230
+                $default_prices[$price->ID()] = $price;
231 231
             }
232 232
         }
233 233
         return $default_prices;
Please login to merge, or discard this patch.