Skip to content

Commit 34fd206

Browse files
committed
Lastest Cafe changes 5.0.8.p
1 parent 3b2419c commit 34fd206

File tree

456 files changed

+12051
-9857
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

456 files changed

+12051
-9857
lines changed

.VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5.0.8.046

CHANGELOG.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## Releases
8+
9+
### [5.0.8]
10+
11+
#### Added
12+
- [Save per page setting to local session (#1195) (#714)](https://github.com/eventespresso/cafe/pull/714)
13+
- NEW
14+
15+
#### Fixed
16+
- [Fix Default Date and Time Formats (#698)](https://github.com/eventespresso/cafe/pull/698)
17+
- [Set default blog_offset value (#699)](https://github.com/eventespresso/cafe/pull/699)
18+
- [Run on Later Hook (#658)](https://github.com/eventespresso/cafe/pull/658)
19+
- [Fix Order Inconsistency Issue In Exporting Registrations (#709)](https://github.com/eventespresso/cafe/pull/709)
20+
- [Fix Bulk Edit Shift Dates Decimal Values (Barista#1197)](https://github.com/eventespresso/barista/pull/1197)
21+
- [Dont Pass Unix Timestamps Directly to Datetime Constructor (#716)](https://github.com/eventespresso/cafe/pull/716)
22+
- [Fix attendee information copy function. (#713)](https://github.com/eventespresso/cafe/pull/713)
23+
- [Fix MER Event Cart Totals (#719)](https://github.com/eventespresso/cafe/pull/719)
24+
- [Prevent Transaction Billing Info Overflow and Wrapping (#717)](https://github.com/eventespresso/cafe/pull/717)
25+
- [EDTR UI Fixes (Barista#1206)](https://github.com/eventespresso/barista/pull/1206)
26+
- [Fix legacy duplicate datetime and ticket is taxable checkbox (#725)](https://github.com/eventespresso/cafe/pull/725)
27+
- [Fix Unit Test Calculate Ticket Total (Barista#1208) (#726)](https://github.com/eventespresso/cafe/pull/726)
28+
- [Fix Missing Price Modifiers (Barista#1202)](https://github.com/eventespresso/barista/pull/1202)
29+
- [Ensure ALL Tickets Have Prices (#728)](https://github.com/eventespresso/cafe/pull/728)
30+
- [Fix Admin Route Cap Check (#730)](https://github.com/eventespresso/cafe/pull/730)
31+
- [Fix DTT_description field name (#729)](https://github.com/eventespresso/cafe/pull/729)
32+
- [Fix Overzealous Missing Ticket Price Types Notice (Barista#1216) (#750)](https://github.com/eventespresso/cafe/pull/750)
33+
- [Fix Check-ins for Multi-Date Registration Tickets (#744)](https://github.com/eventespresso/cafe/pull/744)
34+
- [Ensure New Default Tickets ALWAYS Have a Base Price (Barista #1220) (#751)](https://github.com/eventespresso/cafe/pull/751)
35+
- [Strip Escaped Characters from WordPress Date and Time Formats (#752)](https://github.com/eventespresso/cafe/pull/752)
36+
- [Ensure New Price Modifiers Are Not Disabled (Barista#1224) (#755)](https://github.com/eventespresso/cafe/pull/755)
37+
- [Fix Event Registration Options Meta Box Styles (#694)](https://github.com/eventespresso/cafe/pull/694)
38+
- [Fix a Column Word Break Issue (#734)](https://github.com/eventespresso/cafe/pull/734)
39+
- [Fix Frontend Menu Alignment (#735)](https://github.com/eventespresso/cafe/pull/735)
40+
- [Fix WPgraphQL Activation Error (#758)](https://github.com/eventespresso/cafe/pull/758)
41+
- [Allow Query Params (#761)](https://github.com/eventespresso/cafe/pull/761)
42+
- [Set on Selected Option (Barista#1233) (#773)](https://github.com/eventespresso/cafe/pull/773)
43+
- [Fix Venues and People Admin (#763)](https://github.com/eventespresso/cafe/pull/763)
44+
- [Fix Co logo max width on Invoice/Receipt (#775)](https://github.com/eventespresso/cafe/pull/775)
45+
- [Allow attributes passed to the fallback_shortcode_processor to be an empty string (#743)](https://github.com/eventespresso/cafe/pull/743)
46+
- [Fix Nag Notice Display (#779)](https://github.com/eventespresso/cafe/pull/779)
47+
- [Walk Back $_cpt_model_obj Property Type Declaration (#783)](https://github.com/eventespresso/cafe/pull/783)
48+
- [Use GRAPHQL_DEBUG and Fix Conditional (#785)](https://github.com/eventespresso/cafe/pull/785)
49+
- [Fix Edit CPT Route for Attendees (#797)](https://github.com/eventespresso/cafe/pull/797)
50+
- [Make Admin Only Tickets Visible to Super Admins (#798)](https://github.com/eventespresso/cafe/pull/798)
51+
- [Replace space with dash as headers do not support space (#800)](https://github.com/eventespresso/cafe/pull/800)
52+
- [Fix GraphQL Datetime Venue Mutations (#788)](https://github.com/eventespresso/cafe/pull/788)
53+
- [Sort Tickets by Required Status First (#801)](https://github.com/eventespresso/cafe/pull/801)
54+
- [Fixed a word break issue in messages menu. (#768)](https://github.com/eventespresso/cafe/pull/768)
55+
- [Remove Redundant Dropdown Arrow From Select2 Dropdown Inputs (#805)](https://github.com/eventespresso/cafe/pull/805)
56+
- [Fix Height Issue of Multiple Dropdown Input (#806)](https://github.com/eventespresso/cafe/pull/806)
57+
- [Fix Attendee Importer Table Styles (#810)](https://github.com/eventespresso/cafe/pull/810)
58+
- [Fixed registration session display / hide buttons issue (#813)](https://github.com/eventespresso/cafe/pull/813)
59+
- [If extra_request is not set default to an empty array (#815)](https://github.com/eventespresso/cafe/pull/815)
60+
- [Fix Callback Name (#808)](https://github.com/eventespresso/cafe/pull/808)
61+
- FIX
62+
63+
#### Changed
64+
- [Updates from Barista May 30 20:58 (#693)](https://github.com/eventespresso/cafe/pull/693)
65+
- MOD
66+
67+
#### Deprecated
68+
- DEP
69+
70+
#### Removed
71+
- RMV
72+
73+
#### Security
74+
- SEC

PaymentMethods/PayPalCommerce/api/orders/CreateOrder.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use EE_Line_Item;
77
use EE_Transaction;
88
use EEM_State;
9+
use EventEspresso\core\domain\services\validation\email\strategies\Basic;
910
use EventEspresso\core\services\request\sanitizers\RequestSanitizer;
1011
use EventEspresso\PaymentMethods\PayPalCommerce\api\PayPalApi;
1112
use EventEspresso\PaymentMethods\PayPalCommerce\tools\currency\CurrencyManager;
@@ -14,7 +15,6 @@
1415

1516
/**
1617
* Class CreateOrder
17-
*
1818
* Generates and sends a Create Order request using PayPal API.
1919
*
2020
* @package Event Espresso
@@ -90,9 +90,8 @@ public function __construct(PayPalApi $api, EE_Transaction $transaction, array $
9090
*/
9191
public function sanitizeRequestParameters(array $billing_info)
9292
{
93-
$sanitizer = new RequestSanitizer();
94-
foreach ($billing_info as $item => $value)
95-
{
93+
$sanitizer = new RequestSanitizer(new Basic());
94+
foreach ($billing_info as $item => $value) {
9695
$this->billing_info[ $item ] = $sanitizer->clean($value);
9796
}
9897
}
@@ -129,7 +128,7 @@ protected function getParameters(): array
129128
$state = EEM_State::instance()->get_col(
130129
[
131130
['STA_ID' => $this->billing_info['bill_state']],
132-
'limit' => 1
131+
'limit' => 1,
133132
],
134133
'STA_abbrev'
135134
)[0];
@@ -193,7 +192,7 @@ protected function getLineItems(): array
193192
if ($line_item instanceof EE_Line_Item && $line_item->OBJ_type() !== 'Promotion') {
194193
$item_money = $line_item->unit_price();
195194
$li_description = $line_item->desc() ?? esc_html__('Event Ticket', 'event_espresso');
196-
$line_items [] = [
195+
$line_items [] = [
197196
'name' => substr(wp_strip_all_tags($line_item->name()), 0, 126),
198197
'quantity' => $line_item->quantity(),
199198
'description' => substr(wp_strip_all_tags($li_description), 0, 125),
@@ -279,7 +278,7 @@ public function validateOrder($response, $parameters): array
279278
[$this->request_url, $parameters, $response],
280279
$this->transaction->payment_method()
281280
);
282-
} catch (EE_Error | ReflectionException $e) {
281+
} catch (EE_Error|ReflectionException $e) {
283282
// Just continue.
284283
}
285284
return [

PaymentMethods/PayPalCommerce/modules/EED_PayPalOnboard.module.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,9 @@ public static function partnerAccessTokenExpired(EE_Payment_Method $paypal_pm):
247247
}
248248
// Validate the token. Do a health check.
249249
$now = time();
250-
$minutes_left = abs(($expires_at - $now) / 60);
251-
// Count as expired if less than 30 minutes till expiration left.
252-
if ($minutes_left <= 30) {
250+
$minutes_left = round(($expires_at - $now) / 60);
251+
// Count as expired if less than 60 minutes till expiration left.
252+
if ($minutes_left <= 60) {
253253
return true;
254254
}
255255
return false;

admin_pages/events/Events_Admin_List_Table.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,9 @@ public function column_author(EE_Event $event): string
379379
];
380380
$filter_url = EE_Admin_Page::add_query_args_and_nonce($query_args, EVENTS_ADMIN_URL);
381381
$content = '<div class="ee-layout-row ee-layout-row--fixed">';
382-
$content .= $gravatar . ' <a href="' . $filter_url . '" class="ee-aria-tooltip"'
382+
$content .= ' <a href="' . $filter_url . '" class="ee-event-author ee-aria-tooltip"'
383383
. ' aria-label="' . esc_attr__('Click to filter events by this author.', 'event_espresso') . '">'
384-
. $event_author->display_name
384+
. $gravatar . $event_author->display_name
385385
. '</a>';
386386
$content .= '</div>';
387387
return $this->columnContent('author', $content);

0 commit comments

Comments
 (0)