@@ -18,38 +18,38 @@ |
||
18 | 18 | */ |
19 | 19 | class Api extends JsonDataNode |
20 | 20 | { |
21 | - const NODE_NAME = 'api'; |
|
22 | - |
|
23 | - |
|
24 | - /** |
|
25 | - * @param JsonDataNodeValidator $validator |
|
26 | - */ |
|
27 | - public function __construct(JsonDataNodeValidator $validator) |
|
28 | - { |
|
29 | - parent::__construct($validator); |
|
30 | - $this->setNodeName(Api::NODE_NAME); |
|
31 | - } |
|
32 | - |
|
33 | - |
|
34 | - /** |
|
35 | - * @throws DomainException |
|
36 | - * @since $VID:$ |
|
37 | - */ |
|
38 | - public function initialize() |
|
39 | - { |
|
40 | - $this->addData('restApiNonce', wp_create_nonce('wp_rest')); |
|
41 | - $this->addData('restApiBaseUrl', rest_url()); |
|
42 | - $this->addData('restApiRouteUrl', rest_url('ee/v4.8.36/')); |
|
43 | - $this->addData('restApiCollectionEndpoints', EED_Core_Rest_Api::getCollectionRoutesIndexedByModelName()); |
|
44 | - $this->addData('restApiPrimaryKeys', EED_Core_Rest_Api::getPrimaryKeyNamesIndexedByModelName()); |
|
45 | - |
|
46 | - // route can be something like 'graphql' |
|
47 | - $route = trim(Router::$route, '/'); |
|
48 | - // make sure we are dealing with sane folks |
|
49 | - $has_pretty_permalinks = (bool) get_option('permalink_structure'); |
|
50 | - // if pretty permalinks, use '/graphql' otherwise '?graphql=1' |
|
51 | - $graphqlEndpoint = $has_pretty_permalinks ? site_url($route) : add_query_arg($route, 1, site_url()); |
|
52 | - $this->addData('graphqlEndpoint', esc_url($graphqlEndpoint)); |
|
53 | - $this->setInitialized(true); |
|
54 | - } |
|
21 | + const NODE_NAME = 'api'; |
|
22 | + |
|
23 | + |
|
24 | + /** |
|
25 | + * @param JsonDataNodeValidator $validator |
|
26 | + */ |
|
27 | + public function __construct(JsonDataNodeValidator $validator) |
|
28 | + { |
|
29 | + parent::__construct($validator); |
|
30 | + $this->setNodeName(Api::NODE_NAME); |
|
31 | + } |
|
32 | + |
|
33 | + |
|
34 | + /** |
|
35 | + * @throws DomainException |
|
36 | + * @since $VID:$ |
|
37 | + */ |
|
38 | + public function initialize() |
|
39 | + { |
|
40 | + $this->addData('restApiNonce', wp_create_nonce('wp_rest')); |
|
41 | + $this->addData('restApiBaseUrl', rest_url()); |
|
42 | + $this->addData('restApiRouteUrl', rest_url('ee/v4.8.36/')); |
|
43 | + $this->addData('restApiCollectionEndpoints', EED_Core_Rest_Api::getCollectionRoutesIndexedByModelName()); |
|
44 | + $this->addData('restApiPrimaryKeys', EED_Core_Rest_Api::getPrimaryKeyNamesIndexedByModelName()); |
|
45 | + |
|
46 | + // route can be something like 'graphql' |
|
47 | + $route = trim(Router::$route, '/'); |
|
48 | + // make sure we are dealing with sane folks |
|
49 | + $has_pretty_permalinks = (bool) get_option('permalink_structure'); |
|
50 | + // if pretty permalinks, use '/graphql' otherwise '?graphql=1' |
|
51 | + $graphqlEndpoint = $has_pretty_permalinks ? site_url($route) : add_query_arg($route, 1, site_url()); |
|
52 | + $this->addData('graphqlEndpoint', esc_url($graphqlEndpoint)); |
|
53 | + $this->setInitialized(true); |
|
54 | + } |
|
55 | 55 | } |
@@ -16,133 +16,133 @@ |
||
16 | 16 | class EventManagers implements EventEditorDataInterface |
17 | 17 | { |
18 | 18 | |
19 | - /** |
|
20 | - * @var array |
|
21 | - */ |
|
22 | - private $event_managers = []; |
|
19 | + /** |
|
20 | + * @var array |
|
21 | + */ |
|
22 | + private $event_managers = []; |
|
23 | 23 | |
24 | - /** |
|
25 | - * @var Utilities |
|
26 | - */ |
|
27 | - private $utilities; |
|
24 | + /** |
|
25 | + * @var Utilities |
|
26 | + */ |
|
27 | + private $utilities; |
|
28 | 28 | |
29 | 29 | |
30 | - /** |
|
31 | - * EventManagers constructor. |
|
32 | - * |
|
33 | - * @param Utilities $utilities |
|
34 | - */ |
|
35 | - public function __construct(Utilities $utilities) |
|
36 | - { |
|
37 | - $this->utilities = $utilities; |
|
38 | - } |
|
30 | + /** |
|
31 | + * EventManagers constructor. |
|
32 | + * |
|
33 | + * @param Utilities $utilities |
|
34 | + */ |
|
35 | + public function __construct(Utilities $utilities) |
|
36 | + { |
|
37 | + $this->utilities = $utilities; |
|
38 | + } |
|
39 | 39 | |
40 | 40 | |
41 | - /** |
|
42 | - * @param int $eventId |
|
43 | - * @return array |
|
44 | - */ |
|
45 | - public function getData(int $eventId) |
|
46 | - { |
|
47 | - if (empty($this->event_managers)) { |
|
48 | - [$roles, $capabilities] = $this->getRoleAndCapabilities(); |
|
49 | - // first get a list of WP_Roles that have "event manager" capabilities |
|
50 | - $event_manager_roles = $this->getEventManagerRoles($roles, $capabilities); |
|
51 | - // then get a list of WP Users that have any of those roles |
|
52 | - $event_manager_users = $this->getEventManagerUsers($event_manager_roles, $capabilities); |
|
53 | - // now convert to a format that's usable by GQL |
|
54 | - foreach ($event_manager_users as $user) { |
|
55 | - $GUID = $this->utilities->convertToGlobalId('user', $user->ID); |
|
56 | - $this->event_managers[] = [ |
|
57 | - 'id' => $GUID, |
|
58 | - 'name' => $user->display_name, |
|
59 | - ]; |
|
60 | - } |
|
61 | - } |
|
62 | - return $this->event_managers; |
|
63 | - } |
|
41 | + /** |
|
42 | + * @param int $eventId |
|
43 | + * @return array |
|
44 | + */ |
|
45 | + public function getData(int $eventId) |
|
46 | + { |
|
47 | + if (empty($this->event_managers)) { |
|
48 | + [$roles, $capabilities] = $this->getRoleAndCapabilities(); |
|
49 | + // first get a list of WP_Roles that have "event manager" capabilities |
|
50 | + $event_manager_roles = $this->getEventManagerRoles($roles, $capabilities); |
|
51 | + // then get a list of WP Users that have any of those roles |
|
52 | + $event_manager_users = $this->getEventManagerUsers($event_manager_roles, $capabilities); |
|
53 | + // now convert to a format that's usable by GQL |
|
54 | + foreach ($event_manager_users as $user) { |
|
55 | + $GUID = $this->utilities->convertToGlobalId('user', $user->ID); |
|
56 | + $this->event_managers[] = [ |
|
57 | + 'id' => $GUID, |
|
58 | + 'name' => $user->display_name, |
|
59 | + ]; |
|
60 | + } |
|
61 | + } |
|
62 | + return $this->event_managers; |
|
63 | + } |
|
64 | 64 | |
65 | 65 | |
66 | - private function getRoleAndCapabilities() |
|
67 | - { |
|
68 | - global $wp_roles; |
|
69 | - // first let's grab all of the WP_Role objects |
|
70 | - $roles = $wp_roles->role_objects; |
|
71 | - // then filter a list of capabilities we want to use to define an event manager |
|
72 | - $capabilities = (array) apply_filters( |
|
73 | - 'FHEE__EventEspresso_core_domain_services_admin_events_editor_EventManagers__getRoleAndCapabilities__capabilities', |
|
74 | - ['ee_edit_events', 'ee_edit_event'], |
|
75 | - $roles |
|
76 | - ); |
|
77 | - $capabilities = array_map('sanitize_text_field', $capabilities); |
|
78 | - return [$roles, $capabilities]; |
|
79 | - } |
|
66 | + private function getRoleAndCapabilities() |
|
67 | + { |
|
68 | + global $wp_roles; |
|
69 | + // first let's grab all of the WP_Role objects |
|
70 | + $roles = $wp_roles->role_objects; |
|
71 | + // then filter a list of capabilities we want to use to define an event manager |
|
72 | + $capabilities = (array) apply_filters( |
|
73 | + 'FHEE__EventEspresso_core_domain_services_admin_events_editor_EventManagers__getRoleAndCapabilities__capabilities', |
|
74 | + ['ee_edit_events', 'ee_edit_event'], |
|
75 | + $roles |
|
76 | + ); |
|
77 | + $capabilities = array_map('sanitize_text_field', $capabilities); |
|
78 | + return [$roles, $capabilities]; |
|
79 | + } |
|
80 | 80 | |
81 | 81 | |
82 | - /** |
|
83 | - * Returns a list of WP_Role that have "event manager" capabilities |
|
84 | - * The list of "event manager" capabilities is filtered but defaults to: |
|
85 | - * - 'ee_edit_events' |
|
86 | - * - 'ee_edit_event' |
|
87 | - * |
|
88 | - * @param WP_Role[] $roles |
|
89 | - * @param string[] $capabilities |
|
90 | - * @return WP_Role[] |
|
91 | - */ |
|
92 | - private function getEventManagerRoles(array $roles, array $capabilities = []) |
|
93 | - { |
|
94 | - // we'll use this array to capture all of the WP_Role objects that have any of the caps we are targeting |
|
95 | - $event_manager_roles = []; |
|
96 | - foreach ($roles as $role) { |
|
97 | - if ($role instanceof WP_Role) { |
|
98 | - foreach ($capabilities as $capability) { |
|
99 | - // we're using the role name as the array index to prevent duplicates |
|
100 | - if (! isset($event_manager_roles[ $role->name ]) && $role->has_cap($capability)) { |
|
101 | - $event_manager_roles[ $role->name ] = $role; |
|
102 | - } |
|
103 | - } |
|
104 | - } |
|
105 | - } |
|
106 | - return $event_manager_roles; |
|
107 | - } |
|
82 | + /** |
|
83 | + * Returns a list of WP_Role that have "event manager" capabilities |
|
84 | + * The list of "event manager" capabilities is filtered but defaults to: |
|
85 | + * - 'ee_edit_events' |
|
86 | + * - 'ee_edit_event' |
|
87 | + * |
|
88 | + * @param WP_Role[] $roles |
|
89 | + * @param string[] $capabilities |
|
90 | + * @return WP_Role[] |
|
91 | + */ |
|
92 | + private function getEventManagerRoles(array $roles, array $capabilities = []) |
|
93 | + { |
|
94 | + // we'll use this array to capture all of the WP_Role objects that have any of the caps we are targeting |
|
95 | + $event_manager_roles = []; |
|
96 | + foreach ($roles as $role) { |
|
97 | + if ($role instanceof WP_Role) { |
|
98 | + foreach ($capabilities as $capability) { |
|
99 | + // we're using the role name as the array index to prevent duplicates |
|
100 | + if (! isset($event_manager_roles[ $role->name ]) && $role->has_cap($capability)) { |
|
101 | + $event_manager_roles[ $role->name ] = $role; |
|
102 | + } |
|
103 | + } |
|
104 | + } |
|
105 | + } |
|
106 | + return $event_manager_roles; |
|
107 | + } |
|
108 | 108 | |
109 | 109 | |
110 | - /** |
|
111 | - * Returns a list of users that have any of the supplied roles |
|
112 | - * |
|
113 | - * @param WP_Role[] $event_manager_roles |
|
114 | - * @param string[] $capabilities |
|
115 | - * @return stdClass[] |
|
116 | - */ |
|
117 | - private function getEventManagerUsers(array $event_manager_roles, array $capabilities) |
|
118 | - { |
|
119 | - global $wpdb; |
|
120 | - // no roles ?!!? then nothing to query for |
|
121 | - if (empty($event_manager_roles)) { |
|
122 | - return []; |
|
123 | - } |
|
124 | - // begin to build our query |
|
125 | - $SQL = "SELECT u1.ID, u1.display_name FROM {$wpdb->users} AS u1 " |
|
126 | - . "INNER JOIN {$wpdb->usermeta} AS u2 ON u1.ID = u2.user_id " |
|
127 | - . "AND u2.meta_key='{$wpdb->prefix}capabilities' " |
|
128 | - . 'WHERE'; |
|
129 | - $operator = ''; |
|
130 | - foreach ($event_manager_roles as $role) { |
|
131 | - // for each role, add a WHERE clause |
|
132 | - if ($role instanceof WP_Role) { |
|
133 | - $SQL .= $operator . ' u2.meta_value LIKE \'%"' . $role->name . '"%\' '; |
|
134 | - // subsequent clauses will use OR so that any role is accepted |
|
135 | - $operator = 'OR'; |
|
136 | - } |
|
137 | - } |
|
138 | - foreach ($capabilities as $capability) { |
|
139 | - // for each capability, add a WHERE clause |
|
140 | - $SQL .= $operator . ' u2.meta_value LIKE \'%"' . $capability . '";b:1;%\' '; |
|
141 | - // subsequent clauses will use OR so that any role is accepted |
|
142 | - $operator = 'OR'; |
|
143 | - } |
|
144 | - $SQL .= "ORDER BY user_id ASC"; |
|
145 | - $users = $wpdb->get_results($SQL); |
|
146 | - return ! empty($users) ? $users : []; |
|
147 | - } |
|
110 | + /** |
|
111 | + * Returns a list of users that have any of the supplied roles |
|
112 | + * |
|
113 | + * @param WP_Role[] $event_manager_roles |
|
114 | + * @param string[] $capabilities |
|
115 | + * @return stdClass[] |
|
116 | + */ |
|
117 | + private function getEventManagerUsers(array $event_manager_roles, array $capabilities) |
|
118 | + { |
|
119 | + global $wpdb; |
|
120 | + // no roles ?!!? then nothing to query for |
|
121 | + if (empty($event_manager_roles)) { |
|
122 | + return []; |
|
123 | + } |
|
124 | + // begin to build our query |
|
125 | + $SQL = "SELECT u1.ID, u1.display_name FROM {$wpdb->users} AS u1 " |
|
126 | + . "INNER JOIN {$wpdb->usermeta} AS u2 ON u1.ID = u2.user_id " |
|
127 | + . "AND u2.meta_key='{$wpdb->prefix}capabilities' " |
|
128 | + . 'WHERE'; |
|
129 | + $operator = ''; |
|
130 | + foreach ($event_manager_roles as $role) { |
|
131 | + // for each role, add a WHERE clause |
|
132 | + if ($role instanceof WP_Role) { |
|
133 | + $SQL .= $operator . ' u2.meta_value LIKE \'%"' . $role->name . '"%\' '; |
|
134 | + // subsequent clauses will use OR so that any role is accepted |
|
135 | + $operator = 'OR'; |
|
136 | + } |
|
137 | + } |
|
138 | + foreach ($capabilities as $capability) { |
|
139 | + // for each capability, add a WHERE clause |
|
140 | + $SQL .= $operator . ' u2.meta_value LIKE \'%"' . $capability . '";b:1;%\' '; |
|
141 | + // subsequent clauses will use OR so that any role is accepted |
|
142 | + $operator = 'OR'; |
|
143 | + } |
|
144 | + $SQL .= "ORDER BY user_id ASC"; |
|
145 | + $users = $wpdb->get_results($SQL); |
|
146 | + return ! empty($users) ? $users : []; |
|
147 | + } |
|
148 | 148 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $event_manager_users = $this->getEventManagerUsers($event_manager_roles, $capabilities); |
53 | 53 | // now convert to a format that's usable by GQL |
54 | 54 | foreach ($event_manager_users as $user) { |
55 | - $GUID = $this->utilities->convertToGlobalId('user', $user->ID); |
|
55 | + $GUID = $this->utilities->convertToGlobalId('user', $user->ID); |
|
56 | 56 | $this->event_managers[] = [ |
57 | 57 | 'id' => $GUID, |
58 | 58 | 'name' => $user->display_name, |
@@ -97,8 +97,8 @@ discard block |
||
97 | 97 | if ($role instanceof WP_Role) { |
98 | 98 | foreach ($capabilities as $capability) { |
99 | 99 | // we're using the role name as the array index to prevent duplicates |
100 | - if (! isset($event_manager_roles[ $role->name ]) && $role->has_cap($capability)) { |
|
101 | - $event_manager_roles[ $role->name ] = $role; |
|
100 | + if ( ! isset($event_manager_roles[$role->name]) && $role->has_cap($capability)) { |
|
101 | + $event_manager_roles[$role->name] = $role; |
|
102 | 102 | } |
103 | 103 | } |
104 | 104 | } |
@@ -130,14 +130,14 @@ discard block |
||
130 | 130 | foreach ($event_manager_roles as $role) { |
131 | 131 | // for each role, add a WHERE clause |
132 | 132 | if ($role instanceof WP_Role) { |
133 | - $SQL .= $operator . ' u2.meta_value LIKE \'%"' . $role->name . '"%\' '; |
|
133 | + $SQL .= $operator.' u2.meta_value LIKE \'%"'.$role->name.'"%\' '; |
|
134 | 134 | // subsequent clauses will use OR so that any role is accepted |
135 | 135 | $operator = 'OR'; |
136 | 136 | } |
137 | 137 | } |
138 | 138 | foreach ($capabilities as $capability) { |
139 | 139 | // for each capability, add a WHERE clause |
140 | - $SQL .= $operator . ' u2.meta_value LIKE \'%"' . $capability . '";b:1;%\' '; |
|
140 | + $SQL .= $operator.' u2.meta_value LIKE \'%"'.$capability.'";b:1;%\' '; |
|
141 | 141 | // subsequent clauses will use OR so that any role is accepted |
142 | 142 | $operator = 'OR'; |
143 | 143 | } |
@@ -67,7 +67,7 @@ |
||
67 | 67 | |
68 | 68 | /** |
69 | 69 | * @param string $globalRouteCondition |
70 | - * @param mixed $default |
|
70 | + * @param boolean $default |
|
71 | 71 | * @return mixed |
72 | 72 | */ |
73 | 73 | private function getGlobalRouteCondition(string $globalRouteCondition, $default) |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use EventEspresso\core\services\request\RequestInterface; |
8 | 8 | use EventEspresso\core\domain\entities\contexts\RequestTypeContext; |
9 | 9 | use InvalidArgumentException; |
10 | -use WPGraphQL\Router; |
|
11 | 10 | |
12 | 11 | /** |
13 | 12 | * Class RequestTypeContextDetector |
@@ -72,8 +72,8 @@ discard block |
||
72 | 72 | */ |
73 | 73 | private function getGlobalRouteCondition(string $globalRouteCondition, $default) |
74 | 74 | { |
75 | - return isset($this->globalRouteConditions[ $globalRouteCondition ]) |
|
76 | - ? $this->globalRouteConditions[ $globalRouteCondition ] |
|
75 | + return isset($this->globalRouteConditions[$globalRouteCondition]) |
|
76 | + ? $this->globalRouteConditions[$globalRouteCondition] |
|
77 | 77 | : $default; |
78 | 78 | } |
79 | 79 | |
@@ -189,9 +189,9 @@ discard block |
||
189 | 189 | // Check for URLs like http://mysite.com/?rest_route=/ee... and http://mysite.com/wp-json/ee/... |
190 | 190 | return strpos( |
191 | 191 | $this->request->getRequestParam('rest_route', false), |
192 | - '/' . Domain::API_NAMESPACE |
|
192 | + '/'.Domain::API_NAMESPACE |
|
193 | 193 | ) === 0 |
194 | - || $this->uriPathMatches(trim(rest_get_url_prefix(), '/') . '/' . Domain::API_NAMESPACE); |
|
194 | + || $this->uriPathMatches(trim(rest_get_url_prefix(), '/').'/'.Domain::API_NAMESPACE); |
|
195 | 195 | } |
196 | 196 | |
197 | 197 |
@@ -20,252 +20,252 @@ |
||
20 | 20 | class RequestTypeContextDetector |
21 | 21 | { |
22 | 22 | |
23 | - /** |
|
24 | - * @var GraphQLEndpoint $gql_endpoint |
|
25 | - */ |
|
26 | - private $gql_endpoint; |
|
23 | + /** |
|
24 | + * @var GraphQLEndpoint $gql_endpoint |
|
25 | + */ |
|
26 | + private $gql_endpoint; |
|
27 | 27 | |
28 | - /** |
|
29 | - * @var RequestTypeContextFactoryInterface $factory |
|
30 | - */ |
|
31 | - private $factory; |
|
28 | + /** |
|
29 | + * @var RequestTypeContextFactoryInterface $factory |
|
30 | + */ |
|
31 | + private $factory; |
|
32 | 32 | |
33 | - /** |
|
34 | - * @var RequestInterface $request |
|
35 | - */ |
|
36 | - private $request; |
|
33 | + /** |
|
34 | + * @var RequestInterface $request |
|
35 | + */ |
|
36 | + private $request; |
|
37 | 37 | |
38 | - /** |
|
39 | - * @var array $globalRouteConditions |
|
40 | - */ |
|
41 | - private $globalRouteConditions; |
|
38 | + /** |
|
39 | + * @var array $globalRouteConditions |
|
40 | + */ |
|
41 | + private $globalRouteConditions; |
|
42 | 42 | |
43 | 43 | |
44 | - /** |
|
45 | - * RequestTypeContextDetector constructor. |
|
46 | - * |
|
47 | - * @param GraphQLEndpoint $gql_endpoint |
|
48 | - * @param RequestInterface $request |
|
49 | - * @param RequestTypeContextFactoryInterface $factory |
|
50 | - * @param array $globalRouteConditions an array for injecting values that would |
|
51 | - * otherwise be defined as global constants |
|
52 | - * or other global variables for the current |
|
53 | - * request route such as DOING_AJAX |
|
54 | - */ |
|
55 | - public function __construct( |
|
56 | - GraphQLEndpoint $gql_endpoint, |
|
57 | - RequestInterface $request, |
|
58 | - RequestTypeContextFactoryInterface $factory, |
|
59 | - array $globalRouteConditions = [] |
|
60 | - ) { |
|
61 | - $this->gql_endpoint = $gql_endpoint; |
|
62 | - $this->request = $request; |
|
63 | - $this->factory = $factory; |
|
64 | - $this->globalRouteConditions = $globalRouteConditions; |
|
65 | - } |
|
44 | + /** |
|
45 | + * RequestTypeContextDetector constructor. |
|
46 | + * |
|
47 | + * @param GraphQLEndpoint $gql_endpoint |
|
48 | + * @param RequestInterface $request |
|
49 | + * @param RequestTypeContextFactoryInterface $factory |
|
50 | + * @param array $globalRouteConditions an array for injecting values that would |
|
51 | + * otherwise be defined as global constants |
|
52 | + * or other global variables for the current |
|
53 | + * request route such as DOING_AJAX |
|
54 | + */ |
|
55 | + public function __construct( |
|
56 | + GraphQLEndpoint $gql_endpoint, |
|
57 | + RequestInterface $request, |
|
58 | + RequestTypeContextFactoryInterface $factory, |
|
59 | + array $globalRouteConditions = [] |
|
60 | + ) { |
|
61 | + $this->gql_endpoint = $gql_endpoint; |
|
62 | + $this->request = $request; |
|
63 | + $this->factory = $factory; |
|
64 | + $this->globalRouteConditions = $globalRouteConditions; |
|
65 | + } |
|
66 | 66 | |
67 | 67 | |
68 | - /** |
|
69 | - * @param string $globalRouteCondition |
|
70 | - * @param mixed $default |
|
71 | - * @return mixed |
|
72 | - */ |
|
73 | - private function getGlobalRouteCondition(string $globalRouteCondition, $default) |
|
74 | - { |
|
75 | - return isset($this->globalRouteConditions[ $globalRouteCondition ]) |
|
76 | - ? $this->globalRouteConditions[ $globalRouteCondition ] |
|
77 | - : $default; |
|
78 | - } |
|
68 | + /** |
|
69 | + * @param string $globalRouteCondition |
|
70 | + * @param mixed $default |
|
71 | + * @return mixed |
|
72 | + */ |
|
73 | + private function getGlobalRouteCondition(string $globalRouteCondition, $default) |
|
74 | + { |
|
75 | + return isset($this->globalRouteConditions[ $globalRouteCondition ]) |
|
76 | + ? $this->globalRouteConditions[ $globalRouteCondition ] |
|
77 | + : $default; |
|
78 | + } |
|
79 | 79 | |
80 | 80 | |
81 | - /** |
|
82 | - * @return RequestTypeContext |
|
83 | - * @throws InvalidArgumentException |
|
84 | - */ |
|
85 | - public function detectRequestTypeContext() |
|
86 | - { |
|
87 | - // Detect error scrapes |
|
88 | - if ($this->isWordPressErrorScrape()) { |
|
89 | - return $this->factory->create(RequestTypeContext::WP_SCRAPE); |
|
90 | - } |
|
91 | - // Detect activations |
|
92 | - if ($this->isWordPressActivationRequest()) { |
|
93 | - return $this->factory->create(RequestTypeContext::ACTIVATION); |
|
94 | - } |
|
95 | - // Detect EE REST API |
|
96 | - if ($this->isEspressoRestApiRequest()) { |
|
97 | - return $this->factory->create(RequestTypeContext::API); |
|
98 | - } |
|
99 | - // Detect WP REST API |
|
100 | - if ($this->isWordPressRestApiRequest()) { |
|
101 | - return $this->factory->create(RequestTypeContext::WP_API); |
|
102 | - } |
|
103 | - // Detect EE GraphQL |
|
104 | - if ($this->isEspressoGraphQLRequest()) { |
|
105 | - return $this->factory->create(RequestTypeContext::GQL); |
|
106 | - } |
|
107 | - // Detect AJAX |
|
108 | - if ($this->getGlobalRouteCondition('DOING_AJAX', false)) { |
|
109 | - if (filter_var($this->request->getRequestParam('ee_front_ajax'), FILTER_VALIDATE_BOOLEAN)) { |
|
110 | - return $this->factory->create(RequestTypeContext::AJAX_FRONT); |
|
111 | - } |
|
112 | - if (filter_var($this->request->getRequestParam('ee_admin_ajax'), FILTER_VALIDATE_BOOLEAN)) { |
|
113 | - return $this->factory->create(RequestTypeContext::AJAX_ADMIN); |
|
114 | - } |
|
115 | - if ($this->request->getRequestParam('action') === 'heartbeat') { |
|
116 | - return $this->factory->create(RequestTypeContext::AJAX_HEARTBEAT); |
|
117 | - } |
|
118 | - return $this->factory->create(RequestTypeContext::AJAX_OTHER); |
|
119 | - } |
|
120 | - // Detect WP_Cron |
|
121 | - if ($this->isCronRequest()) { |
|
122 | - return $this->factory->create(RequestTypeContext::CRON); |
|
123 | - } |
|
124 | - // Detect command line requests |
|
125 | - if ($this->getGlobalRouteCondition('WP_CLI', false)) { |
|
126 | - return $this->factory->create(RequestTypeContext::CLI); |
|
127 | - } |
|
128 | - // detect WordPress admin (ie: "Dashboard") |
|
129 | - if ($this->getGlobalRouteCondition('is_admin', false)) { |
|
130 | - return $this->factory->create(RequestTypeContext::ADMIN); |
|
131 | - } |
|
132 | - // Detect iFrames |
|
133 | - if ($this->isIframeRoute()) { |
|
134 | - return $this->factory->create(RequestTypeContext::IFRAME); |
|
135 | - } |
|
136 | - // Detect Feeds |
|
137 | - if ($this->isFeedRequest()) { |
|
138 | - return $this->factory->create(RequestTypeContext::FEED); |
|
139 | - } |
|
140 | - // and by process of elimination... |
|
141 | - return $this->factory->create(RequestTypeContext::FRONTEND); |
|
142 | - } |
|
81 | + /** |
|
82 | + * @return RequestTypeContext |
|
83 | + * @throws InvalidArgumentException |
|
84 | + */ |
|
85 | + public function detectRequestTypeContext() |
|
86 | + { |
|
87 | + // Detect error scrapes |
|
88 | + if ($this->isWordPressErrorScrape()) { |
|
89 | + return $this->factory->create(RequestTypeContext::WP_SCRAPE); |
|
90 | + } |
|
91 | + // Detect activations |
|
92 | + if ($this->isWordPressActivationRequest()) { |
|
93 | + return $this->factory->create(RequestTypeContext::ACTIVATION); |
|
94 | + } |
|
95 | + // Detect EE REST API |
|
96 | + if ($this->isEspressoRestApiRequest()) { |
|
97 | + return $this->factory->create(RequestTypeContext::API); |
|
98 | + } |
|
99 | + // Detect WP REST API |
|
100 | + if ($this->isWordPressRestApiRequest()) { |
|
101 | + return $this->factory->create(RequestTypeContext::WP_API); |
|
102 | + } |
|
103 | + // Detect EE GraphQL |
|
104 | + if ($this->isEspressoGraphQLRequest()) { |
|
105 | + return $this->factory->create(RequestTypeContext::GQL); |
|
106 | + } |
|
107 | + // Detect AJAX |
|
108 | + if ($this->getGlobalRouteCondition('DOING_AJAX', false)) { |
|
109 | + if (filter_var($this->request->getRequestParam('ee_front_ajax'), FILTER_VALIDATE_BOOLEAN)) { |
|
110 | + return $this->factory->create(RequestTypeContext::AJAX_FRONT); |
|
111 | + } |
|
112 | + if (filter_var($this->request->getRequestParam('ee_admin_ajax'), FILTER_VALIDATE_BOOLEAN)) { |
|
113 | + return $this->factory->create(RequestTypeContext::AJAX_ADMIN); |
|
114 | + } |
|
115 | + if ($this->request->getRequestParam('action') === 'heartbeat') { |
|
116 | + return $this->factory->create(RequestTypeContext::AJAX_HEARTBEAT); |
|
117 | + } |
|
118 | + return $this->factory->create(RequestTypeContext::AJAX_OTHER); |
|
119 | + } |
|
120 | + // Detect WP_Cron |
|
121 | + if ($this->isCronRequest()) { |
|
122 | + return $this->factory->create(RequestTypeContext::CRON); |
|
123 | + } |
|
124 | + // Detect command line requests |
|
125 | + if ($this->getGlobalRouteCondition('WP_CLI', false)) { |
|
126 | + return $this->factory->create(RequestTypeContext::CLI); |
|
127 | + } |
|
128 | + // detect WordPress admin (ie: "Dashboard") |
|
129 | + if ($this->getGlobalRouteCondition('is_admin', false)) { |
|
130 | + return $this->factory->create(RequestTypeContext::ADMIN); |
|
131 | + } |
|
132 | + // Detect iFrames |
|
133 | + if ($this->isIframeRoute()) { |
|
134 | + return $this->factory->create(RequestTypeContext::IFRAME); |
|
135 | + } |
|
136 | + // Detect Feeds |
|
137 | + if ($this->isFeedRequest()) { |
|
138 | + return $this->factory->create(RequestTypeContext::FEED); |
|
139 | + } |
|
140 | + // and by process of elimination... |
|
141 | + return $this->factory->create(RequestTypeContext::FRONTEND); |
|
142 | + } |
|
143 | 143 | |
144 | 144 | |
145 | - /** |
|
146 | - * @return bool |
|
147 | - */ |
|
148 | - private function isWordPressErrorScrape() |
|
149 | - { |
|
150 | - return ( |
|
151 | - $this->request->getRequestParam('wp_scrape_key') !== null |
|
152 | - && $this->request->getRequestParam('wp_scrape_nonce') !== null |
|
153 | - ) |
|
154 | - || ( |
|
155 | - $this->request->getRequestParam('action') === 'error_scrape' |
|
156 | - && $this->request->getRequestParam('_wpnonce') !== null |
|
157 | - ); |
|
158 | - } |
|
145 | + /** |
|
146 | + * @return bool |
|
147 | + */ |
|
148 | + private function isWordPressErrorScrape() |
|
149 | + { |
|
150 | + return ( |
|
151 | + $this->request->getRequestParam('wp_scrape_key') !== null |
|
152 | + && $this->request->getRequestParam('wp_scrape_nonce') !== null |
|
153 | + ) |
|
154 | + || ( |
|
155 | + $this->request->getRequestParam('action') === 'error_scrape' |
|
156 | + && $this->request->getRequestParam('_wpnonce') !== null |
|
157 | + ); |
|
158 | + } |
|
159 | 159 | |
160 | 160 | |
161 | - /** |
|
162 | - * @return bool |
|
163 | - */ |
|
164 | - private function isWordPressActivationRequest() |
|
165 | - { |
|
166 | - $action = $this->request->getRequestParam('action'); |
|
167 | - $plugins_page_actions = [ |
|
168 | - 'activate', |
|
169 | - 'activate-multi', |
|
170 | - 'activate-selected', |
|
171 | - 'deactivate', |
|
172 | - 'deactivate-multi', |
|
173 | - 'deactivate-selected', |
|
174 | - 'delete-selected', |
|
175 | - 'disable-auto-update-selected', |
|
176 | - 'enable-auto-update-selected', |
|
177 | - 'update-selected', |
|
178 | - ]; |
|
179 | - return $this->uriPathMatches('wp-admin/plugins.php') |
|
180 | - && ($action === 'true' || in_array($action, $plugins_page_actions, true)); |
|
181 | - } |
|
161 | + /** |
|
162 | + * @return bool |
|
163 | + */ |
|
164 | + private function isWordPressActivationRequest() |
|
165 | + { |
|
166 | + $action = $this->request->getRequestParam('action'); |
|
167 | + $plugins_page_actions = [ |
|
168 | + 'activate', |
|
169 | + 'activate-multi', |
|
170 | + 'activate-selected', |
|
171 | + 'deactivate', |
|
172 | + 'deactivate-multi', |
|
173 | + 'deactivate-selected', |
|
174 | + 'delete-selected', |
|
175 | + 'disable-auto-update-selected', |
|
176 | + 'enable-auto-update-selected', |
|
177 | + 'update-selected', |
|
178 | + ]; |
|
179 | + return $this->uriPathMatches('wp-admin/plugins.php') |
|
180 | + && ($action === 'true' || in_array($action, $plugins_page_actions, true)); |
|
181 | + } |
|
182 | 182 | |
183 | 183 | |
184 | - /** |
|
185 | - * @return bool |
|
186 | - */ |
|
187 | - private function isEspressoRestApiRequest() |
|
188 | - { |
|
189 | - // Check for URLs like http://mysite.com/?rest_route=/ee... and http://mysite.com/wp-json/ee/... |
|
190 | - return strpos( |
|
191 | - $this->request->getRequestParam('rest_route', false), |
|
192 | - '/' . Domain::API_NAMESPACE |
|
193 | - ) === 0 |
|
194 | - || $this->uriPathMatches(trim(rest_get_url_prefix(), '/') . '/' . Domain::API_NAMESPACE); |
|
195 | - } |
|
184 | + /** |
|
185 | + * @return bool |
|
186 | + */ |
|
187 | + private function isEspressoRestApiRequest() |
|
188 | + { |
|
189 | + // Check for URLs like http://mysite.com/?rest_route=/ee... and http://mysite.com/wp-json/ee/... |
|
190 | + return strpos( |
|
191 | + $this->request->getRequestParam('rest_route', false), |
|
192 | + '/' . Domain::API_NAMESPACE |
|
193 | + ) === 0 |
|
194 | + || $this->uriPathMatches(trim(rest_get_url_prefix(), '/') . '/' . Domain::API_NAMESPACE); |
|
195 | + } |
|
196 | 196 | |
197 | 197 | |
198 | - /** |
|
199 | - * Checks for URLs like https://mysite.com/graphql |
|
200 | - * |
|
201 | - * @return bool |
|
202 | - */ |
|
203 | - private function isEspressoGraphQLRequest() |
|
204 | - { |
|
205 | - if ($this->gql_endpoint->isGraphqlRequest()) { |
|
206 | - return true; |
|
207 | - } |
|
208 | - $gql_endpoint = $this->gql_endpoint->getEndpoint(); |
|
209 | - return $this->uriPathMatches($gql_endpoint) || $this->request->requestParamIsSet($gql_endpoint); |
|
210 | - } |
|
198 | + /** |
|
199 | + * Checks for URLs like https://mysite.com/graphql |
|
200 | + * |
|
201 | + * @return bool |
|
202 | + */ |
|
203 | + private function isEspressoGraphQLRequest() |
|
204 | + { |
|
205 | + if ($this->gql_endpoint->isGraphqlRequest()) { |
|
206 | + return true; |
|
207 | + } |
|
208 | + $gql_endpoint = $this->gql_endpoint->getEndpoint(); |
|
209 | + return $this->uriPathMatches($gql_endpoint) || $this->request->requestParamIsSet($gql_endpoint); |
|
210 | + } |
|
211 | 211 | |
212 | 212 | |
213 | - /** |
|
214 | - * @return bool |
|
215 | - */ |
|
216 | - private function isWordPressRestApiRequest() |
|
217 | - { |
|
218 | - // Check for URLs like http://mysite.com/?rest_route=/.. and http://mysite.com/wp-json/... |
|
219 | - return $this->request->getRequestParam('rest_route', false) |
|
220 | - || $this->uriPathMatches(trim(rest_get_url_prefix(), '/')); |
|
221 | - } |
|
213 | + /** |
|
214 | + * @return bool |
|
215 | + */ |
|
216 | + private function isWordPressRestApiRequest() |
|
217 | + { |
|
218 | + // Check for URLs like http://mysite.com/?rest_route=/.. and http://mysite.com/wp-json/... |
|
219 | + return $this->request->getRequestParam('rest_route', false) |
|
220 | + || $this->uriPathMatches(trim(rest_get_url_prefix(), '/')); |
|
221 | + } |
|
222 | 222 | |
223 | 223 | |
224 | - /** |
|
225 | - * @return bool |
|
226 | - */ |
|
227 | - private function isCronRequest() |
|
228 | - { |
|
229 | - return $this->uriPathMatches('wp-cron.php'); |
|
230 | - } |
|
224 | + /** |
|
225 | + * @return bool |
|
226 | + */ |
|
227 | + private function isCronRequest() |
|
228 | + { |
|
229 | + return $this->uriPathMatches('wp-cron.php'); |
|
230 | + } |
|
231 | 231 | |
232 | 232 | |
233 | - /** |
|
234 | - * @return bool |
|
235 | - */ |
|
236 | - private function isFeedRequest() |
|
237 | - { |
|
238 | - return $this->uriPathMatches('feed'); |
|
239 | - } |
|
233 | + /** |
|
234 | + * @return bool |
|
235 | + */ |
|
236 | + private function isFeedRequest() |
|
237 | + { |
|
238 | + return $this->uriPathMatches('feed'); |
|
239 | + } |
|
240 | 240 | |
241 | 241 | |
242 | - /** |
|
243 | - * returns true if the current request URI starts with the supplied $component string |
|
244 | - * |
|
245 | - * @param string $component |
|
246 | - * @return bool |
|
247 | - */ |
|
248 | - private function uriPathMatches($component) |
|
249 | - { |
|
250 | - $request_uri = $this->request->requestUri(true); |
|
251 | - $parts = explode('?', $request_uri); |
|
252 | - $path = trim(reset($parts), '/'); |
|
253 | - return strpos($path, $component) === 0; |
|
254 | - } |
|
242 | + /** |
|
243 | + * returns true if the current request URI starts with the supplied $component string |
|
244 | + * |
|
245 | + * @param string $component |
|
246 | + * @return bool |
|
247 | + */ |
|
248 | + private function uriPathMatches($component) |
|
249 | + { |
|
250 | + $request_uri = $this->request->requestUri(true); |
|
251 | + $parts = explode('?', $request_uri); |
|
252 | + $path = trim(reset($parts), '/'); |
|
253 | + return strpos($path, $component) === 0; |
|
254 | + } |
|
255 | 255 | |
256 | 256 | |
257 | - /** |
|
258 | - * @return bool |
|
259 | - */ |
|
260 | - private function isIframeRoute() |
|
261 | - { |
|
262 | - $is_iframe_route = apply_filters( |
|
263 | - 'FHEE__EventEspresso_core_domain_services_contexts_RequestTypeContextDetector__isIframeRoute', |
|
264 | - $this->request->getRequestParam('event_list', '') === 'iframe' |
|
265 | - || $this->request->getRequestParam('ticket_selector', '') === 'iframe' |
|
266 | - || $this->request->getRequestParam('calendar', '') === 'iframe', |
|
267 | - $this |
|
268 | - ); |
|
269 | - return filter_var($is_iframe_route, FILTER_VALIDATE_BOOLEAN); |
|
270 | - } |
|
257 | + /** |
|
258 | + * @return bool |
|
259 | + */ |
|
260 | + private function isIframeRoute() |
|
261 | + { |
|
262 | + $is_iframe_route = apply_filters( |
|
263 | + 'FHEE__EventEspresso_core_domain_services_contexts_RequestTypeContextDetector__isIframeRoute', |
|
264 | + $this->request->getRequestParam('event_list', '') === 'iframe' |
|
265 | + || $this->request->getRequestParam('ticket_selector', '') === 'iframe' |
|
266 | + || $this->request->getRequestParam('calendar', '') === 'iframe', |
|
267 | + $this |
|
268 | + ); |
|
269 | + return filter_var($is_iframe_route, FILTER_VALIDATE_BOOLEAN); |
|
270 | + } |
|
271 | 271 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | |
41 | 41 | /** |
42 | - * @return false|mixed|void |
|
42 | + * @return string |
|
43 | 43 | */ |
44 | 44 | public function getEndpoint() |
45 | 45 | { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | |
49 | 49 | |
50 | 50 | /** |
51 | - * @return mixed|void|bool |
|
51 | + * @return boolean |
|
52 | 52 | */ |
53 | 53 | public function isGraphqlRequest() |
54 | 54 | { |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use EventEspresso\core\services\database\WordPressOption; |
6 | 6 | use Throwable; |
7 | 7 | use WPGraphQL; |
8 | -use WPGraphQL\Data\Config; |
|
9 | 8 | use WPGraphQL\Router; |
10 | 9 | |
11 | 10 | /** |
@@ -18,82 +18,82 @@ |
||
18 | 18 | */ |
19 | 19 | class GraphQLEndpoint extends WordPressOption |
20 | 20 | { |
21 | - const DEFAULT_ENDPOINT = 'graphql'; |
|
21 | + const DEFAULT_ENDPOINT = 'graphql'; |
|
22 | 22 | |
23 | - const OPTION_NAME = 'ee-graphql-endpoint'; |
|
23 | + const OPTION_NAME = 'ee-graphql-endpoint'; |
|
24 | 24 | |
25 | - /** |
|
26 | - * @var boolean |
|
27 | - */ |
|
28 | - private $is_gql_request; |
|
25 | + /** |
|
26 | + * @var boolean |
|
27 | + */ |
|
28 | + private $is_gql_request; |
|
29 | 29 | |
30 | 30 | |
31 | - /** |
|
32 | - * GraphQLEndpoint constructor. |
|
33 | - */ |
|
34 | - public function __construct() |
|
35 | - { |
|
36 | - parent::__construct(GraphQLEndpoint::OPTION_NAME, GraphQLEndpoint::DEFAULT_ENDPOINT, true); |
|
37 | - add_action('graphql_register_settings', [$this, 'verifyAndSetEndpoint'], 20); |
|
38 | - } |
|
31 | + /** |
|
32 | + * GraphQLEndpoint constructor. |
|
33 | + */ |
|
34 | + public function __construct() |
|
35 | + { |
|
36 | + parent::__construct(GraphQLEndpoint::OPTION_NAME, GraphQLEndpoint::DEFAULT_ENDPOINT, true); |
|
37 | + add_action('graphql_register_settings', [$this, 'verifyAndSetEndpoint'], 20); |
|
38 | + } |
|
39 | 39 | |
40 | 40 | |
41 | - /** |
|
42 | - * @return false|mixed|void |
|
43 | - */ |
|
44 | - public function getEndpoint() |
|
45 | - { |
|
46 | - return $this->loadOption(); |
|
47 | - } |
|
41 | + /** |
|
42 | + * @return false|mixed|void |
|
43 | + */ |
|
44 | + public function getEndpoint() |
|
45 | + { |
|
46 | + return $this->loadOption(); |
|
47 | + } |
|
48 | 48 | |
49 | 49 | |
50 | - /** |
|
51 | - * @return mixed|void|bool |
|
52 | - */ |
|
53 | - public function isGraphqlRequest() |
|
54 | - { |
|
55 | - if (! isset($this->is_gql_request)) { |
|
56 | - // grab the GQL endpoint that we saved in the future... wait... wut? |
|
57 | - $endpoint = $this->getEndpoint(); |
|
58 | - if (! class_exists('WPGraphQL')) { |
|
59 | - require_once EE_THIRD_PARTY . 'wp-graphql/src/Router.php'; |
|
60 | - } |
|
61 | - // set our saved endpoint on the WP GQL Pouter class |
|
62 | - // don't worry, this is a static property that they overwrite when they initialize things, |
|
63 | - // and we are essentially getting the value from them anyways, so it should be ok (fingers crossed) |
|
64 | - Router::$route = $endpoint; |
|
65 | - // now call their function for checking if this is a GQL request |
|
66 | - // because they use a bunch of filters and stuff we don't want to duplicate here |
|
67 | - $this->is_gql_request = Router::is_graphql_http_request(); |
|
68 | - } |
|
69 | - return $this->is_gql_request; |
|
70 | - } |
|
50 | + /** |
|
51 | + * @return mixed|void|bool |
|
52 | + */ |
|
53 | + public function isGraphqlRequest() |
|
54 | + { |
|
55 | + if (! isset($this->is_gql_request)) { |
|
56 | + // grab the GQL endpoint that we saved in the future... wait... wut? |
|
57 | + $endpoint = $this->getEndpoint(); |
|
58 | + if (! class_exists('WPGraphQL')) { |
|
59 | + require_once EE_THIRD_PARTY . 'wp-graphql/src/Router.php'; |
|
60 | + } |
|
61 | + // set our saved endpoint on the WP GQL Pouter class |
|
62 | + // don't worry, this is a static property that they overwrite when they initialize things, |
|
63 | + // and we are essentially getting the value from them anyways, so it should be ok (fingers crossed) |
|
64 | + Router::$route = $endpoint; |
|
65 | + // now call their function for checking if this is a GQL request |
|
66 | + // because they use a bunch of filters and stuff we don't want to duplicate here |
|
67 | + $this->is_gql_request = Router::is_graphql_http_request(); |
|
68 | + } |
|
69 | + return $this->is_gql_request; |
|
70 | + } |
|
71 | 71 | |
72 | 72 | |
73 | - /** |
|
74 | - * callback hooked into the graphql_register_settings action |
|
75 | - * basically grabs the value for the 'graphql_endpoint' setting and saves it to our own WP option. |
|
76 | - * |
|
77 | - * i know, i know, i know... |
|
78 | - * WHY are we saving the graphql_endpoint to a WP option if WP GraphQL is already doing the same ?!?! |
|
79 | - * |
|
80 | - * Because we perform our request type detection during `plugins_loaded`, |
|
81 | - * but they don't settle on their endpoint until `after_setup_theme` has run, |
|
82 | - * which is too late for us, so we are just going to save this separately so that we have it. |
|
83 | - * Oh, and this will essentially recheck this value on EVERY request |
|
84 | - * but will only update our saved value if it has actually changed |
|
85 | - */ |
|
86 | - public function verifyAndSetEndpoint() |
|
87 | - { |
|
88 | - try { |
|
89 | - $this->updateOption( |
|
90 | - get_graphql_setting( |
|
91 | - 'graphql_endpoint', |
|
92 | - apply_filters('graphql_endpoint', GraphQLEndpoint::DEFAULT_ENDPOINT) |
|
93 | - ) |
|
94 | - ); |
|
95 | - } catch (Throwable $t) { |
|
96 | - // eat it |
|
97 | - } |
|
98 | - } |
|
73 | + /** |
|
74 | + * callback hooked into the graphql_register_settings action |
|
75 | + * basically grabs the value for the 'graphql_endpoint' setting and saves it to our own WP option. |
|
76 | + * |
|
77 | + * i know, i know, i know... |
|
78 | + * WHY are we saving the graphql_endpoint to a WP option if WP GraphQL is already doing the same ?!?! |
|
79 | + * |
|
80 | + * Because we perform our request type detection during `plugins_loaded`, |
|
81 | + * but they don't settle on their endpoint until `after_setup_theme` has run, |
|
82 | + * which is too late for us, so we are just going to save this separately so that we have it. |
|
83 | + * Oh, and this will essentially recheck this value on EVERY request |
|
84 | + * but will only update our saved value if it has actually changed |
|
85 | + */ |
|
86 | + public function verifyAndSetEndpoint() |
|
87 | + { |
|
88 | + try { |
|
89 | + $this->updateOption( |
|
90 | + get_graphql_setting( |
|
91 | + 'graphql_endpoint', |
|
92 | + apply_filters('graphql_endpoint', GraphQLEndpoint::DEFAULT_ENDPOINT) |
|
93 | + ) |
|
94 | + ); |
|
95 | + } catch (Throwable $t) { |
|
96 | + // eat it |
|
97 | + } |
|
98 | + } |
|
99 | 99 | } |
@@ -52,11 +52,11 @@ |
||
52 | 52 | */ |
53 | 53 | public function isGraphqlRequest() |
54 | 54 | { |
55 | - if (! isset($this->is_gql_request)) { |
|
55 | + if ( ! isset($this->is_gql_request)) { |
|
56 | 56 | // grab the GQL endpoint that we saved in the future... wait... wut? |
57 | 57 | $endpoint = $this->getEndpoint(); |
58 | - if (! class_exists('WPGraphQL')) { |
|
59 | - require_once EE_THIRD_PARTY . 'wp-graphql/src/Router.php'; |
|
58 | + if ( ! class_exists('WPGraphQL')) { |
|
59 | + require_once EE_THIRD_PARTY.'wp-graphql/src/Router.php'; |
|
60 | 60 | } |
61 | 61 | // set our saved endpoint on the WP GQL Pouter class |
62 | 62 | // don't worry, this is a static property that they overwrite when they initialize things, |
@@ -15,134 +15,134 @@ |
||
15 | 15 | */ |
16 | 16 | abstract class WordPressOption |
17 | 17 | { |
18 | - const NOT_SET_YET = 'wordpress-option-value-not-yet-set'; |
|
19 | - |
|
20 | - /** |
|
21 | - * WordPress makes it difficult to determine if an option was successfully saved or not |
|
22 | - * which is sometimes really important to know if the information you are saving is critical. |
|
23 | - * The following options allow us to have a better chance of knowing when an update actually failed |
|
24 | - * or when it just didn't update because the value hasn't changed, but everything is safe. |
|
25 | - */ |
|
26 | - const UPDATE_SUCCESS = 1; |
|
27 | - |
|
28 | - const UPDATE_NONE = 0; |
|
29 | - |
|
30 | - const UPDATE_ERROR = -1; |
|
31 | - |
|
32 | - /** |
|
33 | - * @var boolean |
|
34 | - */ |
|
35 | - private $autoload; |
|
36 | - |
|
37 | - /** |
|
38 | - * @var mixed |
|
39 | - */ |
|
40 | - private $default_value; |
|
41 | - |
|
42 | - /** |
|
43 | - * @var string |
|
44 | - */ |
|
45 | - private $option_name; |
|
46 | - |
|
47 | - /** |
|
48 | - * @var mixed |
|
49 | - */ |
|
50 | - private $value = WordPressOption::NOT_SET_YET; |
|
51 | - |
|
52 | - |
|
53 | - /** |
|
54 | - * WordPressOption constructor. |
|
55 | - * |
|
56 | - * @param bool $autoload |
|
57 | - * @param mixed $default_value |
|
58 | - * @param string $option_name |
|
59 | - */ |
|
60 | - public function __construct(string $option_name, $default_value, bool $autoload = false) |
|
61 | - { |
|
62 | - $this->setAutoload($autoload); |
|
63 | - $this->setDefaultValue($default_value); |
|
64 | - $this->setOptionName($option_name); |
|
65 | - } |
|
66 | - |
|
67 | - |
|
68 | - /** |
|
69 | - * @param bool|string $autoload |
|
70 | - */ |
|
71 | - public function setAutoload($autoload): void |
|
72 | - { |
|
73 | - $this->autoload = filter_var($autoload, FILTER_VALIDATE_BOOLEAN); |
|
74 | - } |
|
75 | - |
|
76 | - |
|
77 | - /** |
|
78 | - * @param mixed $default_value |
|
79 | - */ |
|
80 | - public function setDefaultValue($default_value): void |
|
81 | - { |
|
82 | - $this->default_value = $default_value; |
|
83 | - } |
|
84 | - |
|
85 | - |
|
86 | - /** |
|
87 | - * @param string $option_name |
|
88 | - */ |
|
89 | - public function setOptionName(string $option_name): void |
|
90 | - { |
|
91 | - $this->option_name = sanitize_key($option_name); |
|
92 | - } |
|
93 | - |
|
94 | - |
|
95 | - /** |
|
96 | - * @return string |
|
97 | - */ |
|
98 | - public function getOptionName(): string |
|
99 | - { |
|
100 | - return $this->option_name; |
|
101 | - } |
|
102 | - |
|
103 | - |
|
104 | - /** |
|
105 | - * @return false|mixed|void |
|
106 | - */ |
|
107 | - public function loadOption() |
|
108 | - { |
|
109 | - if ($this->value === WordPressOption::NOT_SET_YET) { |
|
110 | - $this->value = get_option($this->option_name, $this->default_value); |
|
111 | - } |
|
112 | - return $this->value; |
|
113 | - } |
|
114 | - |
|
115 | - |
|
116 | - /** |
|
117 | - * @param $value |
|
118 | - * @return int |
|
119 | - */ |
|
120 | - public function updateOption($value) : int |
|
121 | - { |
|
122 | - // don't update if value has not changed since last update |
|
123 | - if ($value === $this->value) { |
|
124 | - return WordPressOption::UPDATE_NONE; |
|
125 | - } |
|
126 | - // because the options for updating differ when adding an option for the first time |
|
127 | - // we use the WordPressOption::NOT_SET_YET to determine if things already exist in the db |
|
128 | - if (get_option($this->option_name, WordPressOption::NOT_SET_YET) === WordPressOption::NOT_SET_YET) { |
|
129 | - $updated = add_option($this->option_name, $value, '', $this->autoload()); |
|
130 | - } else { |
|
131 | - $updated = update_option($this->option_name, $value); |
|
132 | - } |
|
133 | - if ($updated) { |
|
134 | - $this->value = $value; |
|
135 | - return WordPressOption::UPDATE_SUCCESS; |
|
136 | - } |
|
137 | - return WordPressOption::UPDATE_ERROR; |
|
138 | - } |
|
139 | - |
|
140 | - |
|
141 | - /** |
|
142 | - * @return string |
|
143 | - */ |
|
144 | - private function autoload() : string |
|
145 | - { |
|
146 | - return $this->autoload ? 'yes' : 'no'; |
|
147 | - } |
|
18 | + const NOT_SET_YET = 'wordpress-option-value-not-yet-set'; |
|
19 | + |
|
20 | + /** |
|
21 | + * WordPress makes it difficult to determine if an option was successfully saved or not |
|
22 | + * which is sometimes really important to know if the information you are saving is critical. |
|
23 | + * The following options allow us to have a better chance of knowing when an update actually failed |
|
24 | + * or when it just didn't update because the value hasn't changed, but everything is safe. |
|
25 | + */ |
|
26 | + const UPDATE_SUCCESS = 1; |
|
27 | + |
|
28 | + const UPDATE_NONE = 0; |
|
29 | + |
|
30 | + const UPDATE_ERROR = -1; |
|
31 | + |
|
32 | + /** |
|
33 | + * @var boolean |
|
34 | + */ |
|
35 | + private $autoload; |
|
36 | + |
|
37 | + /** |
|
38 | + * @var mixed |
|
39 | + */ |
|
40 | + private $default_value; |
|
41 | + |
|
42 | + /** |
|
43 | + * @var string |
|
44 | + */ |
|
45 | + private $option_name; |
|
46 | + |
|
47 | + /** |
|
48 | + * @var mixed |
|
49 | + */ |
|
50 | + private $value = WordPressOption::NOT_SET_YET; |
|
51 | + |
|
52 | + |
|
53 | + /** |
|
54 | + * WordPressOption constructor. |
|
55 | + * |
|
56 | + * @param bool $autoload |
|
57 | + * @param mixed $default_value |
|
58 | + * @param string $option_name |
|
59 | + */ |
|
60 | + public function __construct(string $option_name, $default_value, bool $autoload = false) |
|
61 | + { |
|
62 | + $this->setAutoload($autoload); |
|
63 | + $this->setDefaultValue($default_value); |
|
64 | + $this->setOptionName($option_name); |
|
65 | + } |
|
66 | + |
|
67 | + |
|
68 | + /** |
|
69 | + * @param bool|string $autoload |
|
70 | + */ |
|
71 | + public function setAutoload($autoload): void |
|
72 | + { |
|
73 | + $this->autoload = filter_var($autoload, FILTER_VALIDATE_BOOLEAN); |
|
74 | + } |
|
75 | + |
|
76 | + |
|
77 | + /** |
|
78 | + * @param mixed $default_value |
|
79 | + */ |
|
80 | + public function setDefaultValue($default_value): void |
|
81 | + { |
|
82 | + $this->default_value = $default_value; |
|
83 | + } |
|
84 | + |
|
85 | + |
|
86 | + /** |
|
87 | + * @param string $option_name |
|
88 | + */ |
|
89 | + public function setOptionName(string $option_name): void |
|
90 | + { |
|
91 | + $this->option_name = sanitize_key($option_name); |
|
92 | + } |
|
93 | + |
|
94 | + |
|
95 | + /** |
|
96 | + * @return string |
|
97 | + */ |
|
98 | + public function getOptionName(): string |
|
99 | + { |
|
100 | + return $this->option_name; |
|
101 | + } |
|
102 | + |
|
103 | + |
|
104 | + /** |
|
105 | + * @return false|mixed|void |
|
106 | + */ |
|
107 | + public function loadOption() |
|
108 | + { |
|
109 | + if ($this->value === WordPressOption::NOT_SET_YET) { |
|
110 | + $this->value = get_option($this->option_name, $this->default_value); |
|
111 | + } |
|
112 | + return $this->value; |
|
113 | + } |
|
114 | + |
|
115 | + |
|
116 | + /** |
|
117 | + * @param $value |
|
118 | + * @return int |
|
119 | + */ |
|
120 | + public function updateOption($value) : int |
|
121 | + { |
|
122 | + // don't update if value has not changed since last update |
|
123 | + if ($value === $this->value) { |
|
124 | + return WordPressOption::UPDATE_NONE; |
|
125 | + } |
|
126 | + // because the options for updating differ when adding an option for the first time |
|
127 | + // we use the WordPressOption::NOT_SET_YET to determine if things already exist in the db |
|
128 | + if (get_option($this->option_name, WordPressOption::NOT_SET_YET) === WordPressOption::NOT_SET_YET) { |
|
129 | + $updated = add_option($this->option_name, $value, '', $this->autoload()); |
|
130 | + } else { |
|
131 | + $updated = update_option($this->option_name, $value); |
|
132 | + } |
|
133 | + if ($updated) { |
|
134 | + $this->value = $value; |
|
135 | + return WordPressOption::UPDATE_SUCCESS; |
|
136 | + } |
|
137 | + return WordPressOption::UPDATE_ERROR; |
|
138 | + } |
|
139 | + |
|
140 | + |
|
141 | + /** |
|
142 | + * @return string |
|
143 | + */ |
|
144 | + private function autoload() : string |
|
145 | + { |
|
146 | + return $this->autoload ? 'yes' : 'no'; |
|
147 | + } |
|
148 | 148 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | abstract class WordPressOption |
17 | 17 | { |
18 | - const NOT_SET_YET = 'wordpress-option-value-not-yet-set'; |
|
18 | + const NOT_SET_YET = 'wordpress-option-value-not-yet-set'; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * WordPress makes it difficult to determine if an option was successfully saved or not |
@@ -14,297 +14,297 @@ |
||
14 | 14 | */ |
15 | 15 | class JsonDataHandler |
16 | 16 | { |
17 | - const DATA_TYPE_ARRAY = 'array'; |
|
18 | - |
|
19 | - const DATA_TYPE_OBJECT = 'object'; |
|
20 | - |
|
21 | - const DATA_TYPE_USE_FLAGS = 'flags'; |
|
22 | - |
|
23 | - /** |
|
24 | - * @var string |
|
25 | - */ |
|
26 | - private $data_type; |
|
27 | - |
|
28 | - /** |
|
29 | - * @var array|stdClass |
|
30 | - */ |
|
31 | - private $decoded_data; |
|
32 | - |
|
33 | - /** |
|
34 | - * JSON_BIGINT_AS_STRING, |
|
35 | - * JSON_INVALID_UTF8_IGNORE, |
|
36 | - * JSON_INVALID_UTF8_SUBSTITUTE, |
|
37 | - * JSON_OBJECT_AS_ARRAY, |
|
38 | - * JSON_THROW_ON_ERROR |
|
39 | - * |
|
40 | - * @var int |
|
41 | - */ |
|
42 | - private $decode_flags; |
|
43 | - |
|
44 | - /** |
|
45 | - * @var int |
|
46 | - */ |
|
47 | - private $depth; |
|
48 | - |
|
49 | - /** |
|
50 | - * @var string |
|
51 | - */ |
|
52 | - private $encoded_data; |
|
53 | - |
|
54 | - /** |
|
55 | - * JSON_FORCE_OBJECT, |
|
56 | - * JSON_HEX_QUOT, |
|
57 | - * JSON_HEX_TAG, |
|
58 | - * JSON_HEX_AMP, |
|
59 | - * JSON_HEX_APOS, |
|
60 | - * JSON_INVALID_UTF8_IGNORE, |
|
61 | - * JSON_INVALID_UTF8_SUBSTITUTE, |
|
62 | - * JSON_NUMERIC_CHECK, |
|
63 | - * JSON_PARTIAL_OUTPUT_ON_ERROR, |
|
64 | - * JSON_PRESERVE_ZERO_FRACTION, |
|
65 | - * JSON_PRETTY_PRINT, |
|
66 | - * JSON_UNESCAPED_LINE_TERMINATORS, |
|
67 | - * JSON_UNESCAPED_SLASHES, |
|
68 | - * JSON_UNESCAPED_UNICODE, |
|
69 | - * JSON_THROW_ON_ERROR. |
|
70 | - * |
|
71 | - * @var int |
|
72 | - */ |
|
73 | - private $encode_flags; |
|
74 | - |
|
75 | - /** |
|
76 | - * @var int |
|
77 | - */ |
|
78 | - private $last_error_code; |
|
79 | - |
|
80 | - /** |
|
81 | - * @var string |
|
82 | - */ |
|
83 | - private $last_error_msg; |
|
84 | - |
|
85 | - |
|
86 | - /** |
|
87 | - * JsonDataHandler constructor. |
|
88 | - */ |
|
89 | - public function __construct() |
|
90 | - { |
|
91 | - if (!defined('JSON_INVALID_UTF8_IGNORE')) { |
|
92 | - define('JSON_INVALID_UTF8_IGNORE', 1048576); |
|
93 | - } |
|
94 | - if (!defined('JSON_INVALID_UTF8_SUBSTITUTE')) { |
|
95 | - define('JSON_INVALID_UTF8_SUBSTITUTE', 2097152); |
|
96 | - } |
|
97 | - if (!defined('JSON_THROW_ON_ERROR')) { |
|
98 | - define('JSON_THROW_ON_ERROR', 4194304); |
|
99 | - } |
|
100 | - } |
|
101 | - |
|
102 | - |
|
103 | - /** |
|
104 | - * set $data_type, $decode_flags, $encode_flags, and depth all in one shot |
|
105 | - * |
|
106 | - * @param string $data_type |
|
107 | - * @param int $decode_flags |
|
108 | - * @param int $encode_flags |
|
109 | - * @param int $depth |
|
110 | - */ |
|
111 | - public function configure( |
|
112 | - string $data_type = JsonDataHandler::DATA_TYPE_USE_FLAGS, |
|
113 | - int $decode_flags = 0, |
|
114 | - int $encode_flags = 0, |
|
115 | - int $depth = 512 |
|
116 | - ) { |
|
117 | - $this->setDataType($data_type); |
|
118 | - $this->setDecodeFlags($decode_flags); |
|
119 | - $this->setDepth($depth); |
|
120 | - $this->setEncodeFlags($encode_flags); |
|
121 | - } |
|
122 | - |
|
123 | - |
|
124 | - /** |
|
125 | - * @param string $data_type |
|
126 | - */ |
|
127 | - public function setDataType(string $data_type): void |
|
128 | - { |
|
129 | - $this->data_type = $data_type === JsonDataHandler::DATA_TYPE_ARRAY |
|
130 | - || $data_type === JsonDataHandler::DATA_TYPE_OBJECT |
|
131 | - || $data_type === JsonDataHandler::DATA_TYPE_USE_FLAGS |
|
132 | - ? $data_type |
|
133 | - : JsonDataHandler::DATA_TYPE_USE_FLAGS; |
|
134 | - } |
|
135 | - |
|
136 | - |
|
137 | - /** |
|
138 | - * One or more Bitmask values: |
|
139 | - * JSON_BIGINT_AS_STRING, |
|
140 | - * JSON_INVALID_UTF8_IGNORE, PHP >= 7.2 |
|
141 | - * JSON_INVALID_UTF8_SUBSTITUTE, PHP >= 7.2 |
|
142 | - * JSON_OBJECT_AS_ARRAY, |
|
143 | - * JSON_THROW_ON_ERROR PHP >= 7.3 |
|
144 | - * |
|
145 | - * pass multiple values separated with | |
|
146 | - * ex: JSON_BIGINT_AS_STRING | JSON_INVALID_UTF8_IGNORE | JSON_OBJECT_AS_ARRAY |
|
147 | - * |
|
148 | - * @param int $decode_flags |
|
149 | - */ |
|
150 | - public function setDecodeFlags(int $decode_flags): void |
|
151 | - { |
|
152 | - $this->decode_flags = $decode_flags === JSON_BIGINT_AS_STRING |
|
153 | - || $decode_flags === JSON_OBJECT_AS_ARRAY |
|
154 | - // phpcs:ignore PHPCompatibility.Constants.NewConstants.json_invalid_utf8_ignoreFound |
|
155 | - || $decode_flags === JSON_INVALID_UTF8_IGNORE |
|
156 | - // phpcs:ignore PHPCompatibility.Constants.NewConstants.json_invalid_utf8_substituteFound |
|
157 | - || $decode_flags === JSON_INVALID_UTF8_SUBSTITUTE |
|
158 | - // phpcs:ignore PHPCompatibility.Constants.NewConstants.json_throw_on_errorFound |
|
159 | - || $decode_flags === JSON_THROW_ON_ERROR |
|
160 | - ? $decode_flags |
|
161 | - : 0; |
|
162 | - } |
|
163 | - |
|
164 | - |
|
165 | - /** |
|
166 | - * @param int $depth |
|
167 | - */ |
|
168 | - public function setDepth(int $depth): void |
|
169 | - { |
|
170 | - $depth = absint($depth); |
|
171 | - $this->depth = $depth ? $depth : 512; |
|
172 | - } |
|
173 | - |
|
174 | - |
|
175 | - /** |
|
176 | - * One or more Bitmask values: |
|
177 | - * JSON_FORCE_OBJECT, |
|
178 | - * JSON_HEX_QUOT, |
|
179 | - * JSON_HEX_TAG, |
|
180 | - * JSON_HEX_AMP, |
|
181 | - * JSON_HEX_APOS, |
|
182 | - * JSON_INVALID_UTF8_IGNORE, PHP >= 7.2 |
|
183 | - * JSON_INVALID_UTF8_SUBSTITUTE, PHP >= 7.2 |
|
184 | - * JSON_NUMERIC_CHECK, |
|
185 | - * JSON_PARTIAL_OUTPUT_ON_ERROR, |
|
186 | - * JSON_PRESERVE_ZERO_FRACTION, |
|
187 | - * JSON_PRETTY_PRINT, |
|
188 | - * JSON_UNESCAPED_LINE_TERMINATORS, |
|
189 | - * JSON_UNESCAPED_SLASHES, |
|
190 | - * JSON_UNESCAPED_UNICODE, |
|
191 | - * JSON_THROW_ON_ERROR. PHP >= 7.3 |
|
192 | - * |
|
193 | - * pass multiple values separated with | |
|
194 | - * ex: JSON_FORCE_OBJECT | JSON_INVALID_UTF8_IGNORE | JSON_THROW_ON_ERROR |
|
195 | - * |
|
196 | - * @param int $encode_flags |
|
197 | - */ |
|
198 | - public function setEncodeFlags(int $encode_flags): void |
|
199 | - { |
|
200 | - $this->encode_flags = $encode_flags === JSON_FORCE_OBJECT |
|
201 | - || $encode_flags === JSON_HEX_QUOT |
|
202 | - || $encode_flags === JSON_HEX_TAG |
|
203 | - || $encode_flags === JSON_HEX_AMP |
|
204 | - || $encode_flags === JSON_HEX_APOS |
|
205 | - || $encode_flags === JSON_NUMERIC_CHECK |
|
206 | - || $encode_flags === JSON_PARTIAL_OUTPUT_ON_ERROR |
|
207 | - || $encode_flags === JSON_PRESERVE_ZERO_FRACTION |
|
208 | - || $encode_flags === JSON_PRETTY_PRINT |
|
209 | - || $encode_flags === JSON_UNESCAPED_LINE_TERMINATORS |
|
210 | - || $encode_flags === JSON_UNESCAPED_SLASHES |
|
211 | - || $encode_flags === JSON_UNESCAPED_UNICODE |
|
212 | - // phpcs:ignore PHPCompatibility.Constants.NewConstants.json_invalid_utf8_ignoreFound |
|
213 | - || $encode_flags === JSON_INVALID_UTF8_IGNORE |
|
214 | - // phpcs:ignore PHPCompatibility.Constants.NewConstants.json_invalid_utf8_substituteFound |
|
215 | - || $encode_flags === JSON_INVALID_UTF8_SUBSTITUTE |
|
216 | - // phpcs:ignore PHPCompatibility.Constants.NewConstants.json_throw_on_errorFound |
|
217 | - || $encode_flags === JSON_THROW_ON_ERROR |
|
218 | - ? $encode_flags |
|
219 | - : 0; |
|
220 | - } |
|
221 | - |
|
222 | - |
|
223 | - /** |
|
224 | - * @return bool|null |
|
225 | - */ |
|
226 | - private function asAssociative() |
|
227 | - { |
|
228 | - switch ($this->data_type) { |
|
229 | - case JsonDataHandler::DATA_TYPE_ARRAY: |
|
230 | - return true; |
|
231 | - case JsonDataHandler::DATA_TYPE_OBJECT: |
|
232 | - return false; |
|
233 | - case JsonDataHandler::DATA_TYPE_USE_FLAGS: |
|
234 | - return null; |
|
235 | - } |
|
236 | - return null; |
|
237 | - } |
|
238 | - |
|
239 | - |
|
240 | - /** |
|
241 | - * @param string $json |
|
242 | - * @return array|mixed|stdClass |
|
243 | - */ |
|
244 | - public function decodeJson(string $json) |
|
245 | - { |
|
246 | - $this->decoded_data = json_decode($json, $this->asAssociative(), $this->depth, $this->decode_flags); |
|
247 | - $this->last_error_code = json_last_error(); |
|
248 | - $this->last_error_msg = json_last_error_msg(); |
|
249 | - return $this->decoded_data; |
|
250 | - } |
|
251 | - |
|
252 | - |
|
253 | - /** |
|
254 | - * @param $data |
|
255 | - * @return false|string |
|
256 | - */ |
|
257 | - public function encodeData($data) |
|
258 | - { |
|
259 | - $this->encoded_data = json_encode($data, $this->encode_flags, $this->depth); |
|
260 | - $this->last_error_code = json_last_error(); |
|
261 | - $this->last_error_msg = json_last_error_msg(); |
|
262 | - return $this->encoded_data; |
|
263 | - } |
|
264 | - |
|
265 | - |
|
266 | - /** |
|
267 | - * @return array|stdClass |
|
268 | - */ |
|
269 | - public function getDecodedData() |
|
270 | - { |
|
271 | - return $this->decoded_data; |
|
272 | - } |
|
273 | - |
|
274 | - |
|
275 | - /** |
|
276 | - * @return string |
|
277 | - */ |
|
278 | - public function getEncodedData(): string |
|
279 | - { |
|
280 | - return $this->encoded_data; |
|
281 | - } |
|
282 | - |
|
283 | - |
|
284 | - /** |
|
285 | - * @param false $reset |
|
286 | - * @return int |
|
287 | - */ |
|
288 | - public function getLastErrorCode($reset = false) |
|
289 | - { |
|
290 | - $last_error = $this->last_error_code; |
|
291 | - if ($reset) { |
|
292 | - $this->last_error_code = JSON_ERROR_NONE; |
|
293 | - } |
|
294 | - return $last_error; |
|
295 | - } |
|
296 | - |
|
297 | - |
|
298 | - /** |
|
299 | - * @param false $reset |
|
300 | - * @return string |
|
301 | - */ |
|
302 | - public function getLastErrorMessage($reset = false) |
|
303 | - { |
|
304 | - $last_error = $this->last_error_msg; |
|
305 | - if ($reset) { |
|
306 | - $this->last_error_msg = ''; |
|
307 | - } |
|
308 | - return $last_error; |
|
309 | - } |
|
17 | + const DATA_TYPE_ARRAY = 'array'; |
|
18 | + |
|
19 | + const DATA_TYPE_OBJECT = 'object'; |
|
20 | + |
|
21 | + const DATA_TYPE_USE_FLAGS = 'flags'; |
|
22 | + |
|
23 | + /** |
|
24 | + * @var string |
|
25 | + */ |
|
26 | + private $data_type; |
|
27 | + |
|
28 | + /** |
|
29 | + * @var array|stdClass |
|
30 | + */ |
|
31 | + private $decoded_data; |
|
32 | + |
|
33 | + /** |
|
34 | + * JSON_BIGINT_AS_STRING, |
|
35 | + * JSON_INVALID_UTF8_IGNORE, |
|
36 | + * JSON_INVALID_UTF8_SUBSTITUTE, |
|
37 | + * JSON_OBJECT_AS_ARRAY, |
|
38 | + * JSON_THROW_ON_ERROR |
|
39 | + * |
|
40 | + * @var int |
|
41 | + */ |
|
42 | + private $decode_flags; |
|
43 | + |
|
44 | + /** |
|
45 | + * @var int |
|
46 | + */ |
|
47 | + private $depth; |
|
48 | + |
|
49 | + /** |
|
50 | + * @var string |
|
51 | + */ |
|
52 | + private $encoded_data; |
|
53 | + |
|
54 | + /** |
|
55 | + * JSON_FORCE_OBJECT, |
|
56 | + * JSON_HEX_QUOT, |
|
57 | + * JSON_HEX_TAG, |
|
58 | + * JSON_HEX_AMP, |
|
59 | + * JSON_HEX_APOS, |
|
60 | + * JSON_INVALID_UTF8_IGNORE, |
|
61 | + * JSON_INVALID_UTF8_SUBSTITUTE, |
|
62 | + * JSON_NUMERIC_CHECK, |
|
63 | + * JSON_PARTIAL_OUTPUT_ON_ERROR, |
|
64 | + * JSON_PRESERVE_ZERO_FRACTION, |
|
65 | + * JSON_PRETTY_PRINT, |
|
66 | + * JSON_UNESCAPED_LINE_TERMINATORS, |
|
67 | + * JSON_UNESCAPED_SLASHES, |
|
68 | + * JSON_UNESCAPED_UNICODE, |
|
69 | + * JSON_THROW_ON_ERROR. |
|
70 | + * |
|
71 | + * @var int |
|
72 | + */ |
|
73 | + private $encode_flags; |
|
74 | + |
|
75 | + /** |
|
76 | + * @var int |
|
77 | + */ |
|
78 | + private $last_error_code; |
|
79 | + |
|
80 | + /** |
|
81 | + * @var string |
|
82 | + */ |
|
83 | + private $last_error_msg; |
|
84 | + |
|
85 | + |
|
86 | + /** |
|
87 | + * JsonDataHandler constructor. |
|
88 | + */ |
|
89 | + public function __construct() |
|
90 | + { |
|
91 | + if (!defined('JSON_INVALID_UTF8_IGNORE')) { |
|
92 | + define('JSON_INVALID_UTF8_IGNORE', 1048576); |
|
93 | + } |
|
94 | + if (!defined('JSON_INVALID_UTF8_SUBSTITUTE')) { |
|
95 | + define('JSON_INVALID_UTF8_SUBSTITUTE', 2097152); |
|
96 | + } |
|
97 | + if (!defined('JSON_THROW_ON_ERROR')) { |
|
98 | + define('JSON_THROW_ON_ERROR', 4194304); |
|
99 | + } |
|
100 | + } |
|
101 | + |
|
102 | + |
|
103 | + /** |
|
104 | + * set $data_type, $decode_flags, $encode_flags, and depth all in one shot |
|
105 | + * |
|
106 | + * @param string $data_type |
|
107 | + * @param int $decode_flags |
|
108 | + * @param int $encode_flags |
|
109 | + * @param int $depth |
|
110 | + */ |
|
111 | + public function configure( |
|
112 | + string $data_type = JsonDataHandler::DATA_TYPE_USE_FLAGS, |
|
113 | + int $decode_flags = 0, |
|
114 | + int $encode_flags = 0, |
|
115 | + int $depth = 512 |
|
116 | + ) { |
|
117 | + $this->setDataType($data_type); |
|
118 | + $this->setDecodeFlags($decode_flags); |
|
119 | + $this->setDepth($depth); |
|
120 | + $this->setEncodeFlags($encode_flags); |
|
121 | + } |
|
122 | + |
|
123 | + |
|
124 | + /** |
|
125 | + * @param string $data_type |
|
126 | + */ |
|
127 | + public function setDataType(string $data_type): void |
|
128 | + { |
|
129 | + $this->data_type = $data_type === JsonDataHandler::DATA_TYPE_ARRAY |
|
130 | + || $data_type === JsonDataHandler::DATA_TYPE_OBJECT |
|
131 | + || $data_type === JsonDataHandler::DATA_TYPE_USE_FLAGS |
|
132 | + ? $data_type |
|
133 | + : JsonDataHandler::DATA_TYPE_USE_FLAGS; |
|
134 | + } |
|
135 | + |
|
136 | + |
|
137 | + /** |
|
138 | + * One or more Bitmask values: |
|
139 | + * JSON_BIGINT_AS_STRING, |
|
140 | + * JSON_INVALID_UTF8_IGNORE, PHP >= 7.2 |
|
141 | + * JSON_INVALID_UTF8_SUBSTITUTE, PHP >= 7.2 |
|
142 | + * JSON_OBJECT_AS_ARRAY, |
|
143 | + * JSON_THROW_ON_ERROR PHP >= 7.3 |
|
144 | + * |
|
145 | + * pass multiple values separated with | |
|
146 | + * ex: JSON_BIGINT_AS_STRING | JSON_INVALID_UTF8_IGNORE | JSON_OBJECT_AS_ARRAY |
|
147 | + * |
|
148 | + * @param int $decode_flags |
|
149 | + */ |
|
150 | + public function setDecodeFlags(int $decode_flags): void |
|
151 | + { |
|
152 | + $this->decode_flags = $decode_flags === JSON_BIGINT_AS_STRING |
|
153 | + || $decode_flags === JSON_OBJECT_AS_ARRAY |
|
154 | + // phpcs:ignore PHPCompatibility.Constants.NewConstants.json_invalid_utf8_ignoreFound |
|
155 | + || $decode_flags === JSON_INVALID_UTF8_IGNORE |
|
156 | + // phpcs:ignore PHPCompatibility.Constants.NewConstants.json_invalid_utf8_substituteFound |
|
157 | + || $decode_flags === JSON_INVALID_UTF8_SUBSTITUTE |
|
158 | + // phpcs:ignore PHPCompatibility.Constants.NewConstants.json_throw_on_errorFound |
|
159 | + || $decode_flags === JSON_THROW_ON_ERROR |
|
160 | + ? $decode_flags |
|
161 | + : 0; |
|
162 | + } |
|
163 | + |
|
164 | + |
|
165 | + /** |
|
166 | + * @param int $depth |
|
167 | + */ |
|
168 | + public function setDepth(int $depth): void |
|
169 | + { |
|
170 | + $depth = absint($depth); |
|
171 | + $this->depth = $depth ? $depth : 512; |
|
172 | + } |
|
173 | + |
|
174 | + |
|
175 | + /** |
|
176 | + * One or more Bitmask values: |
|
177 | + * JSON_FORCE_OBJECT, |
|
178 | + * JSON_HEX_QUOT, |
|
179 | + * JSON_HEX_TAG, |
|
180 | + * JSON_HEX_AMP, |
|
181 | + * JSON_HEX_APOS, |
|
182 | + * JSON_INVALID_UTF8_IGNORE, PHP >= 7.2 |
|
183 | + * JSON_INVALID_UTF8_SUBSTITUTE, PHP >= 7.2 |
|
184 | + * JSON_NUMERIC_CHECK, |
|
185 | + * JSON_PARTIAL_OUTPUT_ON_ERROR, |
|
186 | + * JSON_PRESERVE_ZERO_FRACTION, |
|
187 | + * JSON_PRETTY_PRINT, |
|
188 | + * JSON_UNESCAPED_LINE_TERMINATORS, |
|
189 | + * JSON_UNESCAPED_SLASHES, |
|
190 | + * JSON_UNESCAPED_UNICODE, |
|
191 | + * JSON_THROW_ON_ERROR. PHP >= 7.3 |
|
192 | + * |
|
193 | + * pass multiple values separated with | |
|
194 | + * ex: JSON_FORCE_OBJECT | JSON_INVALID_UTF8_IGNORE | JSON_THROW_ON_ERROR |
|
195 | + * |
|
196 | + * @param int $encode_flags |
|
197 | + */ |
|
198 | + public function setEncodeFlags(int $encode_flags): void |
|
199 | + { |
|
200 | + $this->encode_flags = $encode_flags === JSON_FORCE_OBJECT |
|
201 | + || $encode_flags === JSON_HEX_QUOT |
|
202 | + || $encode_flags === JSON_HEX_TAG |
|
203 | + || $encode_flags === JSON_HEX_AMP |
|
204 | + || $encode_flags === JSON_HEX_APOS |
|
205 | + || $encode_flags === JSON_NUMERIC_CHECK |
|
206 | + || $encode_flags === JSON_PARTIAL_OUTPUT_ON_ERROR |
|
207 | + || $encode_flags === JSON_PRESERVE_ZERO_FRACTION |
|
208 | + || $encode_flags === JSON_PRETTY_PRINT |
|
209 | + || $encode_flags === JSON_UNESCAPED_LINE_TERMINATORS |
|
210 | + || $encode_flags === JSON_UNESCAPED_SLASHES |
|
211 | + || $encode_flags === JSON_UNESCAPED_UNICODE |
|
212 | + // phpcs:ignore PHPCompatibility.Constants.NewConstants.json_invalid_utf8_ignoreFound |
|
213 | + || $encode_flags === JSON_INVALID_UTF8_IGNORE |
|
214 | + // phpcs:ignore PHPCompatibility.Constants.NewConstants.json_invalid_utf8_substituteFound |
|
215 | + || $encode_flags === JSON_INVALID_UTF8_SUBSTITUTE |
|
216 | + // phpcs:ignore PHPCompatibility.Constants.NewConstants.json_throw_on_errorFound |
|
217 | + || $encode_flags === JSON_THROW_ON_ERROR |
|
218 | + ? $encode_flags |
|
219 | + : 0; |
|
220 | + } |
|
221 | + |
|
222 | + |
|
223 | + /** |
|
224 | + * @return bool|null |
|
225 | + */ |
|
226 | + private function asAssociative() |
|
227 | + { |
|
228 | + switch ($this->data_type) { |
|
229 | + case JsonDataHandler::DATA_TYPE_ARRAY: |
|
230 | + return true; |
|
231 | + case JsonDataHandler::DATA_TYPE_OBJECT: |
|
232 | + return false; |
|
233 | + case JsonDataHandler::DATA_TYPE_USE_FLAGS: |
|
234 | + return null; |
|
235 | + } |
|
236 | + return null; |
|
237 | + } |
|
238 | + |
|
239 | + |
|
240 | + /** |
|
241 | + * @param string $json |
|
242 | + * @return array|mixed|stdClass |
|
243 | + */ |
|
244 | + public function decodeJson(string $json) |
|
245 | + { |
|
246 | + $this->decoded_data = json_decode($json, $this->asAssociative(), $this->depth, $this->decode_flags); |
|
247 | + $this->last_error_code = json_last_error(); |
|
248 | + $this->last_error_msg = json_last_error_msg(); |
|
249 | + return $this->decoded_data; |
|
250 | + } |
|
251 | + |
|
252 | + |
|
253 | + /** |
|
254 | + * @param $data |
|
255 | + * @return false|string |
|
256 | + */ |
|
257 | + public function encodeData($data) |
|
258 | + { |
|
259 | + $this->encoded_data = json_encode($data, $this->encode_flags, $this->depth); |
|
260 | + $this->last_error_code = json_last_error(); |
|
261 | + $this->last_error_msg = json_last_error_msg(); |
|
262 | + return $this->encoded_data; |
|
263 | + } |
|
264 | + |
|
265 | + |
|
266 | + /** |
|
267 | + * @return array|stdClass |
|
268 | + */ |
|
269 | + public function getDecodedData() |
|
270 | + { |
|
271 | + return $this->decoded_data; |
|
272 | + } |
|
273 | + |
|
274 | + |
|
275 | + /** |
|
276 | + * @return string |
|
277 | + */ |
|
278 | + public function getEncodedData(): string |
|
279 | + { |
|
280 | + return $this->encoded_data; |
|
281 | + } |
|
282 | + |
|
283 | + |
|
284 | + /** |
|
285 | + * @param false $reset |
|
286 | + * @return int |
|
287 | + */ |
|
288 | + public function getLastErrorCode($reset = false) |
|
289 | + { |
|
290 | + $last_error = $this->last_error_code; |
|
291 | + if ($reset) { |
|
292 | + $this->last_error_code = JSON_ERROR_NONE; |
|
293 | + } |
|
294 | + return $last_error; |
|
295 | + } |
|
296 | + |
|
297 | + |
|
298 | + /** |
|
299 | + * @param false $reset |
|
300 | + * @return string |
|
301 | + */ |
|
302 | + public function getLastErrorMessage($reset = false) |
|
303 | + { |
|
304 | + $last_error = $this->last_error_msg; |
|
305 | + if ($reset) { |
|
306 | + $this->last_error_msg = ''; |
|
307 | + } |
|
308 | + return $last_error; |
|
309 | + } |
|
310 | 310 | } |
@@ -88,13 +88,13 @@ |
||
88 | 88 | */ |
89 | 89 | public function __construct() |
90 | 90 | { |
91 | - if (!defined('JSON_INVALID_UTF8_IGNORE')) { |
|
91 | + if ( ! defined('JSON_INVALID_UTF8_IGNORE')) { |
|
92 | 92 | define('JSON_INVALID_UTF8_IGNORE', 1048576); |
93 | 93 | } |
94 | - if (!defined('JSON_INVALID_UTF8_SUBSTITUTE')) { |
|
94 | + if ( ! defined('JSON_INVALID_UTF8_SUBSTITUTE')) { |
|
95 | 95 | define('JSON_INVALID_UTF8_SUBSTITUTE', 2097152); |
96 | 96 | } |
97 | - if (!defined('JSON_THROW_ON_ERROR')) { |
|
97 | + if ( ! defined('JSON_THROW_ON_ERROR')) { |
|
98 | 98 | define('JSON_THROW_ON_ERROR', 4194304); |
99 | 99 | } |
100 | 100 | } |
@@ -16,87 +16,87 @@ |
||
16 | 16 | abstract class JsonDataWordpressOption extends WordPressOption |
17 | 17 | { |
18 | 18 | |
19 | - /** |
|
20 | - * @var array |
|
21 | - */ |
|
22 | - private $options; |
|
23 | - |
|
24 | - /** |
|
25 | - * @var JsonDataHandler |
|
26 | - */ |
|
27 | - private $json_data_handler; |
|
28 | - |
|
29 | - |
|
30 | - /** |
|
31 | - * JsonDataWordpressOption constructor. |
|
32 | - * |
|
33 | - * @param JsonDataHandler $json_data_handler |
|
34 | - * @param string $option_name |
|
35 | - * @param $default_value |
|
36 | - */ |
|
37 | - public function __construct(JsonDataHandler $json_data_handler, string $option_name, $default_value) |
|
38 | - { |
|
39 | - $this->json_data_handler = $json_data_handler; |
|
40 | - $this->json_data_handler->configure(JsonDataHandler::DATA_TYPE_OBJECT); |
|
41 | - parent::__construct($option_name, $default_value); |
|
42 | - } |
|
43 | - |
|
44 | - |
|
45 | - /** |
|
46 | - * @param $options |
|
47 | - */ |
|
48 | - private function update($options) |
|
49 | - { |
|
50 | - if ($this->updateOption($this->json_data_handler->encodeData($options))) { |
|
51 | - $this->options = $options; |
|
52 | - } |
|
53 | - } |
|
54 | - |
|
55 | - |
|
56 | - /** |
|
57 | - * @param string $property |
|
58 | - * @param mixed $value |
|
59 | - * @return void |
|
60 | - */ |
|
61 | - public function addProperty(string $property, $value) |
|
62 | - { |
|
63 | - $options = $this->getAll(); |
|
64 | - $options->{$property} = $value; |
|
65 | - $this->update($options); |
|
66 | - } |
|
67 | - |
|
68 | - |
|
69 | - /** |
|
70 | - * @param string $property |
|
71 | - * @return mixed |
|
72 | - */ |
|
73 | - public function getProperty(string $property) |
|
74 | - { |
|
75 | - $options = $this->getAll(); |
|
76 | - return property_exists($options, $property) ? $options->{$property} : null; |
|
77 | - } |
|
78 | - |
|
79 | - |
|
80 | - /** |
|
81 | - * @return array|mixed|stdClass |
|
82 | - */ |
|
83 | - public function getAll() |
|
84 | - { |
|
85 | - if (empty($this->options)) { |
|
86 | - $this->options = $this->json_data_handler->decodeJson($this->loadOption()); |
|
87 | - } |
|
88 | - return $this->options; |
|
89 | - } |
|
90 | - |
|
91 | - |
|
92 | - /** |
|
93 | - * @param string $property |
|
94 | - * @return void |
|
95 | - */ |
|
96 | - public function removeProperty(string $property) |
|
97 | - { |
|
98 | - $options = $this->getAll(); |
|
99 | - unset($options->{$property}); |
|
100 | - $this->update($options); |
|
101 | - } |
|
19 | + /** |
|
20 | + * @var array |
|
21 | + */ |
|
22 | + private $options; |
|
23 | + |
|
24 | + /** |
|
25 | + * @var JsonDataHandler |
|
26 | + */ |
|
27 | + private $json_data_handler; |
|
28 | + |
|
29 | + |
|
30 | + /** |
|
31 | + * JsonDataWordpressOption constructor. |
|
32 | + * |
|
33 | + * @param JsonDataHandler $json_data_handler |
|
34 | + * @param string $option_name |
|
35 | + * @param $default_value |
|
36 | + */ |
|
37 | + public function __construct(JsonDataHandler $json_data_handler, string $option_name, $default_value) |
|
38 | + { |
|
39 | + $this->json_data_handler = $json_data_handler; |
|
40 | + $this->json_data_handler->configure(JsonDataHandler::DATA_TYPE_OBJECT); |
|
41 | + parent::__construct($option_name, $default_value); |
|
42 | + } |
|
43 | + |
|
44 | + |
|
45 | + /** |
|
46 | + * @param $options |
|
47 | + */ |
|
48 | + private function update($options) |
|
49 | + { |
|
50 | + if ($this->updateOption($this->json_data_handler->encodeData($options))) { |
|
51 | + $this->options = $options; |
|
52 | + } |
|
53 | + } |
|
54 | + |
|
55 | + |
|
56 | + /** |
|
57 | + * @param string $property |
|
58 | + * @param mixed $value |
|
59 | + * @return void |
|
60 | + */ |
|
61 | + public function addProperty(string $property, $value) |
|
62 | + { |
|
63 | + $options = $this->getAll(); |
|
64 | + $options->{$property} = $value; |
|
65 | + $this->update($options); |
|
66 | + } |
|
67 | + |
|
68 | + |
|
69 | + /** |
|
70 | + * @param string $property |
|
71 | + * @return mixed |
|
72 | + */ |
|
73 | + public function getProperty(string $property) |
|
74 | + { |
|
75 | + $options = $this->getAll(); |
|
76 | + return property_exists($options, $property) ? $options->{$property} : null; |
|
77 | + } |
|
78 | + |
|
79 | + |
|
80 | + /** |
|
81 | + * @return array|mixed|stdClass |
|
82 | + */ |
|
83 | + public function getAll() |
|
84 | + { |
|
85 | + if (empty($this->options)) { |
|
86 | + $this->options = $this->json_data_handler->decodeJson($this->loadOption()); |
|
87 | + } |
|
88 | + return $this->options; |
|
89 | + } |
|
90 | + |
|
91 | + |
|
92 | + /** |
|
93 | + * @param string $property |
|
94 | + * @return void |
|
95 | + */ |
|
96 | + public function removeProperty(string $property) |
|
97 | + { |
|
98 | + $options = $this->getAll(); |
|
99 | + unset($options->{$property}); |
|
100 | + $this->update($options); |
|
101 | + } |
|
102 | 102 | } |
@@ -20,47 +20,47 @@ |
||
20 | 20 | class SetRequestTypeContextChecker extends Middleware |
21 | 21 | { |
22 | 22 | |
23 | - /** |
|
24 | - * converts a Request to a Response |
|
25 | - * |
|
26 | - * @param RequestInterface $request |
|
27 | - * @param ResponseInterface $response |
|
28 | - * @return ResponseInterface |
|
29 | - * @throws InvalidArgumentException |
|
30 | - */ |
|
31 | - public function handleRequest(RequestInterface $request, ResponseInterface $response) |
|
32 | - { |
|
33 | - $this->request = $request; |
|
34 | - $this->response = $response; |
|
35 | - /** @var GraphQLEndpoint $gql_endpoint */ |
|
36 | - $gql_endpoint = $this->loader->getShared('EventEspresso\core\services\graphql\GraphQLEndpoint'); |
|
37 | - /** @var RequestTypeContextFactoryInterface $request_type_context_factory */ |
|
38 | - $request_type_context_factory = $this->loader->getShared( |
|
39 | - 'EventEspresso\core\domain\services\contexts\RequestTypeContextFactory', |
|
40 | - [$this->loader] |
|
41 | - ); |
|
42 | - /** @var RequestTypeContextDetector $request_type_context_detector */ |
|
43 | - $request_type_context_detector = $this->loader->getShared( |
|
44 | - 'EventEspresso\core\domain\services\contexts\RequestTypeContextDetector', |
|
45 | - [ |
|
46 | - $gql_endpoint, |
|
47 | - $this->request, |
|
48 | - $request_type_context_factory, |
|
49 | - [ |
|
50 | - 'DOING_AJAX' => defined('DOING_AJAX') && DOING_AJAX, |
|
51 | - 'WP_CLI' => defined('WP_CLI') && WP_CLI, |
|
52 | - 'is_admin' => is_admin(), |
|
53 | - ], |
|
54 | - ] |
|
55 | - ); |
|
56 | - $request_type_context = $request_type_context_detector->detectRequestTypeContext(); |
|
57 | - $request_type_context->setIsUnitTesting(defined('EE_TESTS_DIR')); |
|
58 | - $request_type_context_checker = $this->loader->getShared( |
|
59 | - 'EventEspresso\core\domain\services\contexts\RequestTypeContextChecker', |
|
60 | - [$request_type_context] |
|
61 | - ); |
|
62 | - $this->request->setRequestTypeContextChecker($request_type_context_checker); |
|
63 | - $this->response = $this->processRequestStack($this->request, $this->response); |
|
64 | - return $this->response; |
|
65 | - } |
|
23 | + /** |
|
24 | + * converts a Request to a Response |
|
25 | + * |
|
26 | + * @param RequestInterface $request |
|
27 | + * @param ResponseInterface $response |
|
28 | + * @return ResponseInterface |
|
29 | + * @throws InvalidArgumentException |
|
30 | + */ |
|
31 | + public function handleRequest(RequestInterface $request, ResponseInterface $response) |
|
32 | + { |
|
33 | + $this->request = $request; |
|
34 | + $this->response = $response; |
|
35 | + /** @var GraphQLEndpoint $gql_endpoint */ |
|
36 | + $gql_endpoint = $this->loader->getShared('EventEspresso\core\services\graphql\GraphQLEndpoint'); |
|
37 | + /** @var RequestTypeContextFactoryInterface $request_type_context_factory */ |
|
38 | + $request_type_context_factory = $this->loader->getShared( |
|
39 | + 'EventEspresso\core\domain\services\contexts\RequestTypeContextFactory', |
|
40 | + [$this->loader] |
|
41 | + ); |
|
42 | + /** @var RequestTypeContextDetector $request_type_context_detector */ |
|
43 | + $request_type_context_detector = $this->loader->getShared( |
|
44 | + 'EventEspresso\core\domain\services\contexts\RequestTypeContextDetector', |
|
45 | + [ |
|
46 | + $gql_endpoint, |
|
47 | + $this->request, |
|
48 | + $request_type_context_factory, |
|
49 | + [ |
|
50 | + 'DOING_AJAX' => defined('DOING_AJAX') && DOING_AJAX, |
|
51 | + 'WP_CLI' => defined('WP_CLI') && WP_CLI, |
|
52 | + 'is_admin' => is_admin(), |
|
53 | + ], |
|
54 | + ] |
|
55 | + ); |
|
56 | + $request_type_context = $request_type_context_detector->detectRequestTypeContext(); |
|
57 | + $request_type_context->setIsUnitTesting(defined('EE_TESTS_DIR')); |
|
58 | + $request_type_context_checker = $this->loader->getShared( |
|
59 | + 'EventEspresso\core\domain\services\contexts\RequestTypeContextChecker', |
|
60 | + [$request_type_context] |
|
61 | + ); |
|
62 | + $this->request->setRequestTypeContextChecker($request_type_context_checker); |
|
63 | + $this->response = $this->processRequestStack($this->request, $this->response); |
|
64 | + return $this->response; |
|
65 | + } |
|
66 | 66 | } |
@@ -2,240 +2,240 @@ discard block |
||
2 | 2 | /* THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY. */ |
3 | 3 | $generated_i18n_strings = array( |
4 | 4 | // Reference: packages/components/src/Pagination/constants.ts:6 |
5 | - __( '2', 'event_espresso' ), |
|
5 | + __('2', 'event_espresso'), |
|
6 | 6 | |
7 | 7 | // Reference: packages/components/src/Pagination/constants.ts:7 |
8 | - __( '6', 'event_espresso' ), |
|
8 | + __('6', 'event_espresso'), |
|
9 | 9 | |
10 | 10 | // Reference: packages/components/src/Pagination/constants.ts:8 |
11 | - __( '12', 'event_espresso' ), |
|
11 | + __('12', 'event_espresso'), |
|
12 | 12 | |
13 | 13 | // Reference: packages/components/src/Pagination/constants.ts:9 |
14 | - __( '24', 'event_espresso' ), |
|
14 | + __('24', 'event_espresso'), |
|
15 | 15 | |
16 | 16 | // Reference: packages/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:13 |
23 | - __( 'Order by', 'event_espresso' ), |
|
23 | + __('Order by', 'event_espresso'), |
|
24 | 24 | |
25 | 25 | // Reference: domains/blocks/src/components/RegStatusControl.tsx:18 |
26 | 26 | // Reference: domains/blocks/src/event-attendees/controls/SelectStatus.tsx:12 |
27 | - __( 'Select Registration Status', 'event_espresso' ), |
|
27 | + __('Select Registration Status', 'event_espresso'), |
|
28 | 28 | |
29 | 29 | // Reference: domains/blocks/src/components/SortOrderControl.tsx:15 |
30 | - __( 'Ascending', 'event_espresso' ), |
|
30 | + __('Ascending', 'event_espresso'), |
|
31 | 31 | |
32 | 32 | // Reference: domains/blocks/src/components/SortOrderControl.tsx:19 |
33 | - __( 'Descending', 'event_espresso' ), |
|
33 | + __('Descending', 'event_espresso'), |
|
34 | 34 | |
35 | 35 | // Reference: domains/blocks/src/components/SortOrderControl.tsx:25 |
36 | - __( 'Sort order:', 'event_espresso' ), |
|
36 | + __('Sort order:', 'event_espresso'), |
|
37 | 37 | |
38 | 38 | // Reference: domains/blocks/src/event-attendees/AttendeesDisplay.tsx:40 |
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:46 |
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:52 |
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:11 |
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:16 |
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:17 |
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:28 |
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:33 |
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:26 |
64 | - __( 'Display Gravatar', 'event_espresso' ), |
|
64 | + __('Display Gravatar', 'event_espresso'), |
|
65 | 65 | |
66 | 66 | // Reference: domains/blocks/src/event-attendees/controls/GravatarSettings.tsx:31 |
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:32 |
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:37 |
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:21 |
76 | - __( 'Select Datetime', 'event_espresso' ), |
|
76 | + __('Select Datetime', 'event_espresso'), |
|
77 | 77 | |
78 | 78 | // Reference: domains/blocks/src/event-attendees/controls/SelectEvent.tsx:21 |
79 | - __( 'Select Event', 'event_espresso' ), |
|
79 | + __('Select Event', 'event_espresso'), |
|
80 | 80 | |
81 | 81 | // Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:10 |
82 | - __( 'Attendee id', 'event_espresso' ), |
|
82 | + __('Attendee id', 'event_espresso'), |
|
83 | 83 | |
84 | 84 | // Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:14 |
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:18 |
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:22 |
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:26 |
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:40 |
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:21 |
100 | - __( 'Select Ticket', 'event_espresso' ), |
|
100 | + __('Select Ticket', 'event_espresso'), |
|
101 | 101 | |
102 | 102 | // Reference: domains/blocks/src/event-attendees/controls/index.tsx:22 |
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:37 |
106 | - __( 'Gravatar Setttings', 'event_espresso' ), |
|
106 | + __('Gravatar Setttings', 'event_espresso'), |
|
107 | 107 | |
108 | 108 | // Reference: domains/blocks/src/event-attendees/controls/index.tsx:40 |
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:11 |
127 | - __( 'Loading…', 'event_espresso' ), |
|
127 | + __('Loading…', 'event_espresso'), |
|
128 | 128 | |
129 | 129 | // Reference: domains/blocks/src/services/utils.ts:19 |
130 | 130 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:32 |
131 | - __( 'Error', 'event_espresso' ), |
|
131 | + __('Error', 'event_espresso'), |
|
132 | 132 | |
133 | 133 | // Reference: domains/blocks/src/services/utils.ts:26 |
134 | - __( 'Select…', 'event_espresso' ), |
|
134 | + __('Select…', 'event_espresso'), |
|
135 | 135 | |
136 | 136 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/ActiveStatus.tsx:34 |
137 | - __( 'Active Status', 'event_espresso' ), |
|
137 | + __('Active Status', 'event_espresso'), |
|
138 | 138 | |
139 | 139 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/AltRegPage.tsx:37 |
140 | - __( 'Alternative Registration Page', 'event_espresso' ), |
|
140 | + __('Alternative Registration Page', 'event_espresso'), |
|
141 | 141 | |
142 | 142 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/DefaultRegistrationStatus.tsx:17 |
143 | - __( 'Default Registration Status', 'event_espresso' ), |
|
143 | + __('Default Registration Status', 'event_espresso'), |
|
144 | 144 | |
145 | 145 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/Donations.tsx:19 |
146 | - __( 'Disable Donations', 'event_espresso' ), |
|
146 | + __('Disable Donations', 'event_espresso'), |
|
147 | 147 | |
148 | 148 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/Donations.tsx:19 |
149 | - __( 'Enable Donations', 'event_espresso' ), |
|
149 | + __('Enable Donations', 'event_espresso'), |
|
150 | 150 | |
151 | 151 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/EventManager.tsx:37 |
152 | - __( 'Event Manager', 'event_espresso' ), |
|
152 | + __('Event Manager', 'event_espresso'), |
|
153 | 153 | |
154 | 154 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/EventPhoneNumber.tsx:26 |
155 | - __( 'Event Phone Number', 'event_espresso' ), |
|
155 | + __('Event Phone Number', 'event_espresso'), |
|
156 | 156 | |
157 | 157 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/MaxRegistrations.tsx:35 |
158 | - __( 'Maximum Number of Registrations Allowed per Transaction', 'event_espresso' ), |
|
158 | + __('Maximum Number of Registrations Allowed per Transaction', 'event_espresso'), |
|
159 | 159 | |
160 | 160 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:20 |
161 | - __( 'hide ticket selector', 'event_espresso' ), |
|
161 | + __('hide ticket selector', 'event_espresso'), |
|
162 | 162 | |
163 | 163 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:20 |
164 | - __( 'show ticket selector', 'event_espresso' ), |
|
164 | + __('show ticket selector', 'event_espresso'), |
|
165 | 165 | |
166 | 166 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:24 |
167 | - __( 'Display Ticket Selector', 'event_espresso' ), |
|
167 | + __('Display Ticket Selector', 'event_espresso'), |
|
168 | 168 | |
169 | 169 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/index.tsx:22 |
170 | - __( 'Registration Options', 'event_espresso' ), |
|
170 | + __('Registration Options', 'event_espresso'), |
|
171 | 171 | |
172 | 172 | // Reference: domains/eventEditor/src/ui/datetimes/DateRegistrationsLink.tsx:17 |
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/formValidation.ts:15 |
176 | 176 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/formValidation.ts:15 |
177 | - __( 'Name is required', 'event_espresso' ), |
|
177 | + __('Name is required', 'event_espresso'), |
|
178 | 178 | |
179 | 179 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/formValidation.ts:16 |
180 | 180 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/formValidation.ts:12 |
181 | 181 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/formValidation.ts:16 |
182 | 182 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/formValidation.ts:12 |
183 | - __( 'Name must be at least three characters', 'event_espresso' ), |
|
183 | + __('Name must be at least three characters', 'event_espresso'), |
|
184 | 184 | |
185 | 185 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/Container.tsx:22 |
186 | 186 | /* translators: %s datetime id */ |
187 | - __( 'Edit datetime %s', 'event_espresso' ), |
|
187 | + __('Edit datetime %s', 'event_espresso'), |
|
188 | 188 | |
189 | 189 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/Container.tsx:25 |
190 | - __( 'New Datetime', 'event_espresso' ), |
|
190 | + __('New Datetime', 'event_espresso'), |
|
191 | 191 | |
192 | 192 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/ContentBody.tsx:40 |
193 | - __( 'Save and assign tickets', 'event_espresso' ), |
|
193 | + __('Save and assign tickets', 'event_espresso'), |
|
194 | 194 | |
195 | 195 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:11 |
196 | - __( 'primary information about the date', 'event_espresso' ), |
|
196 | + __('primary information about the date', 'event_espresso'), |
|
197 | 197 | |
198 | 198 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:11 |
199 | - __( 'Date Details', 'event_espresso' ), |
|
199 | + __('Date Details', 'event_espresso'), |
|
200 | 200 | |
201 | 201 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:12 |
202 | 202 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:17 |
203 | - __( 'relations between tickets and dates', 'event_espresso' ), |
|
203 | + __('relations between tickets and dates', 'event_espresso'), |
|
204 | 204 | |
205 | 205 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:12 |
206 | - __( 'Assign Tickets', 'event_espresso' ), |
|
206 | + __('Assign Tickets', 'event_espresso'), |
|
207 | 207 | |
208 | 208 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:102 |
209 | 209 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:63 |
210 | 210 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:115 |
211 | - __( 'End Date', 'event_espresso' ), |
|
211 | + __('End Date', 'event_espresso'), |
|
212 | 212 | |
213 | 213 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:111 |
214 | 214 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:108 |
215 | 215 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:124 |
216 | 216 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:108 |
217 | - __( 'Details', 'event_espresso' ), |
|
217 | + __('Details', 'event_espresso'), |
|
218 | 218 | |
219 | 219 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:115 |
220 | 220 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:112 |
221 | 221 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:75 |
222 | - __( 'Capacity', 'event_espresso' ), |
|
222 | + __('Capacity', 'event_espresso'), |
|
223 | 223 | |
224 | 224 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:120 |
225 | - __( 'The maximum number of registrants that can attend the event at this particular date.', 'event_espresso' ), |
|
225 | + __('The maximum number of registrants that can attend the event at this particular date.', 'event_espresso'), |
|
226 | 226 | |
227 | 227 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:124 |
228 | - __( 'Set to 0 to close registration or leave blank for no limit.', 'event_espresso' ), |
|
228 | + __('Set to 0 to close registration or leave blank for no limit.', 'event_espresso'), |
|
229 | 229 | |
230 | 230 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:129 |
231 | 231 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:203 |
232 | - __( 'Trash', 'event_espresso' ), |
|
232 | + __('Trash', 'event_espresso'), |
|
233 | 233 | |
234 | 234 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:73 |
235 | 235 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:45 |
236 | 236 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:86 |
237 | 237 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:45 |
238 | - __( 'Basics', 'event_espresso' ), |
|
238 | + __('Basics', 'event_espresso'), |
|
239 | 239 | |
240 | 240 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:77 |
241 | 241 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:49 |
@@ -243,217 +243,217 @@ discard block |
||
243 | 243 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:90 |
244 | 244 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:49 |
245 | 245 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:42 |
246 | - __( 'Name', 'event_espresso' ), |
|
246 | + __('Name', 'event_espresso'), |
|
247 | 247 | |
248 | 248 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:84 |
249 | 249 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:55 |
250 | 250 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:97 |
251 | 251 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:55 |
252 | 252 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:41 |
253 | - __( 'Description', 'event_espresso' ), |
|
253 | + __('Description', 'event_espresso'), |
|
254 | 254 | |
255 | 255 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:92 |
256 | 256 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:63 |
257 | 257 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:63 |
258 | - __( 'Dates', 'event_espresso' ), |
|
258 | + __('Dates', 'event_espresso'), |
|
259 | 259 | |
260 | 260 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:96 |
261 | 261 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:52 |
262 | 262 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:109 |
263 | - __( 'Start Date', 'event_espresso' ), |
|
263 | + __('Start Date', 'event_espresso'), |
|
264 | 264 | |
265 | 265 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/DatesList.tsx:34 |
266 | 266 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/TableView.tsx:42 |
267 | - __( 'Event Dates', 'event_espresso' ), |
|
267 | + __('Event Dates', 'event_espresso'), |
|
268 | 268 | |
269 | 269 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/DatesList.tsx:37 |
270 | - __( 'loading event dates…', 'event_espresso' ), |
|
270 | + __('loading event dates…', 'event_espresso'), |
|
271 | 271 | |
272 | 272 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/DatesListButtons.tsx:22 |
273 | - __( 'Ticket Assignments', 'event_espresso' ), |
|
273 | + __('Ticket Assignments', 'event_espresso'), |
|
274 | 274 | |
275 | 275 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:27 |
276 | - __( 'Number of related tickets', 'event_espresso' ), |
|
276 | + __('Number of related tickets', 'event_espresso'), |
|
277 | 277 | |
278 | 278 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:28 |
279 | - __( 'There are no tickets assigned to this datetime. Please click the ticket icon to update the assignments.', 'event_espresso' ), |
|
279 | + __('There are no tickets assigned to this datetime. Please click the ticket icon to update the assignments.', 'event_espresso'), |
|
280 | 280 | |
281 | 281 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:42 |
282 | - __( 'assign tickets', 'event_espresso' ), |
|
282 | + __('assign tickets', 'event_espresso'), |
|
283 | 283 | |
284 | 284 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:17 |
285 | - __( 'Permanently delete Datetime?', 'event_espresso' ), |
|
285 | + __('Permanently delete Datetime?', 'event_espresso'), |
|
286 | 286 | |
287 | 287 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:17 |
288 | - __( 'Move Datetime to Trash?', 'event_espresso' ), |
|
288 | + __('Move Datetime to Trash?', 'event_espresso'), |
|
289 | 289 | |
290 | 290 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:19 |
291 | - __( 'Are you sure you want to permanently delete this datetime? This action is permanent and can not be undone.', 'event_espresso' ), |
|
291 | + __('Are you sure you want to permanently delete this datetime? This action is permanent and can not be undone.', 'event_espresso'), |
|
292 | 292 | |
293 | 293 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:22 |
294 | - __( 'Are you sure you want to move this datetime to the trash? You can "untrash" this datetime later if you need to.', 'event_espresso' ), |
|
294 | + __('Are you sure you want to move this datetime to the trash? You can "untrash" this datetime later if you need to.', 'event_espresso'), |
|
295 | 295 | |
296 | 296 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:32 |
297 | - __( 'event date main menu', 'event_espresso' ), |
|
297 | + __('event date main menu', 'event_espresso'), |
|
298 | 298 | |
299 | 299 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:36 |
300 | 300 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:35 |
301 | - __( 'delete permanently', 'event_espresso' ), |
|
301 | + __('delete permanently', 'event_espresso'), |
|
302 | 302 | |
303 | 303 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:36 |
304 | - __( 'trash datetime', 'event_espresso' ), |
|
304 | + __('trash datetime', 'event_espresso'), |
|
305 | 305 | |
306 | 306 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:45 |
307 | - __( 'edit datetime', 'event_espresso' ), |
|
307 | + __('edit datetime', 'event_espresso'), |
|
308 | 308 | |
309 | 309 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:46 |
310 | - __( 'copy datetime', 'event_espresso' ), |
|
310 | + __('copy datetime', 'event_espresso'), |
|
311 | 311 | |
312 | 312 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:30 |
313 | - __( 'edit datetime details', 'event_espresso' ), |
|
313 | + __('edit datetime details', 'event_espresso'), |
|
314 | 314 | |
315 | 315 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:34 |
316 | - __( 'delete datetimes', 'event_espresso' ), |
|
316 | + __('delete datetimes', 'event_espresso'), |
|
317 | 317 | |
318 | 318 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:34 |
319 | - __( 'trash datetimes', 'event_espresso' ), |
|
319 | + __('trash datetimes', 'event_espresso'), |
|
320 | 320 | |
321 | 321 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:13 |
322 | - __( 'Are you sure you want to permanently delete these datetimes? This action can NOT be undone!', 'event_espresso' ), |
|
322 | + __('Are you sure you want to permanently delete these datetimes? This action can NOT be undone!', 'event_espresso'), |
|
323 | 323 | |
324 | 324 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:14 |
325 | - __( 'Are you sure you want to trash these datetimes?', 'event_espresso' ), |
|
325 | + __('Are you sure you want to trash these datetimes?', 'event_espresso'), |
|
326 | 326 | |
327 | 327 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:15 |
328 | - __( 'Delete datetimes permanently', 'event_espresso' ), |
|
328 | + __('Delete datetimes permanently', 'event_espresso'), |
|
329 | 329 | |
330 | 330 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:15 |
331 | - __( 'Trash datetimes', 'event_espresso' ), |
|
331 | + __('Trash datetimes', 'event_espresso'), |
|
332 | 332 | |
333 | 333 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/EditDetails.tsx:22 |
334 | - __( 'Bulk edit date details', 'event_espresso' ), |
|
334 | + __('Bulk edit date details', 'event_espresso'), |
|
335 | 335 | |
336 | 336 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/EditDetails.tsx:23 |
337 | - __( 'any changes will be applied to ALL of the selected dates.', 'event_espresso' ), |
|
337 | + __('any changes will be applied to ALL of the selected dates.', '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:35 |
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:37 |
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:40 |
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:14 |
361 | 361 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:14 |
362 | - __( 'sold', 'event_espresso' ), |
|
362 | + __('sold', 'event_espresso'), |
|
363 | 363 | |
364 | 364 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:27 |
365 | - __( 'capacity', 'event_espresso' ), |
|
365 | + __('capacity', 'event_espresso'), |
|
366 | 366 | |
367 | 367 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:33 |
368 | 368 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:32 |
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:40 |
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:41 |
377 | - __( 'edit description…', 'event_espresso' ), |
|
377 | + __('edit description…', 'event_espresso'), |
|
378 | 378 | |
379 | 379 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:13 |
380 | - __( 'Active', 'event_espresso' ), |
|
380 | + __('Active', 'event_espresso'), |
|
381 | 381 | |
382 | 382 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:14 |
383 | 383 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:13 |
384 | - __( 'Trashed', 'event_espresso' ), |
|
384 | + __('Trashed', 'event_espresso'), |
|
385 | 385 | |
386 | 386 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:15 |
387 | 387 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:14 |
388 | - __( 'Expired', 'event_espresso' ), |
|
388 | + __('Expired', 'event_espresso'), |
|
389 | 389 | |
390 | 390 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:16 |
391 | 391 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:16 |
392 | - __( 'Sold Out', 'event_espresso' ), |
|
392 | + __('Sold Out', 'event_espresso'), |
|
393 | 393 | |
394 | 394 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:17 |
395 | - __( 'Upcoming', 'event_espresso' ), |
|
395 | + __('Upcoming', 'event_espresso'), |
|
396 | 396 | |
397 | 397 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/editable/EditableName.tsx:17 |
398 | 398 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/editable/EditableName.tsx:27 |
399 | - __( 'edit title…', 'event_espresso' ), |
|
399 | + __('edit title…', 'event_espresso'), |
|
400 | 400 | |
401 | 401 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/ActiveDatesFilters.tsx:25 |
402 | 402 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/ActiveTicketsFilters.tsx:25 |
403 | - __( 'ON', 'event_espresso' ), |
|
403 | + __('ON', 'event_espresso'), |
|
404 | 404 | |
405 | 405 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:10 |
406 | - __( 'end dates only', 'event_espresso' ), |
|
406 | + __('end dates only', 'event_espresso'), |
|
407 | 407 | |
408 | 408 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:11 |
409 | - __( 'start and end dates', 'event_espresso' ), |
|
409 | + __('start and end dates', 'event_espresso'), |
|
410 | 410 | |
411 | 411 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:16 |
412 | - __( 'dates above 90% capacity', 'event_espresso' ), |
|
412 | + __('dates above 90% capacity', 'event_espresso'), |
|
413 | 413 | |
414 | 414 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:17 |
415 | - __( 'dates above 75% capacity', 'event_espresso' ), |
|
415 | + __('dates above 75% capacity', 'event_espresso'), |
|
416 | 416 | |
417 | 417 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:18 |
418 | - __( 'dates above 50% capacity', 'event_espresso' ), |
|
418 | + __('dates above 50% capacity', 'event_espresso'), |
|
419 | 419 | |
420 | 420 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:19 |
421 | - __( 'dates below 50% capacity', 'event_espresso' ), |
|
421 | + __('dates below 50% capacity', 'event_espresso'), |
|
422 | 422 | |
423 | 423 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:23 |
424 | - __( 'all dates', 'event_espresso' ), |
|
424 | + __('all dates', 'event_espresso'), |
|
425 | 425 | |
426 | 426 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:24 |
427 | - __( 'all active and upcoming', 'event_espresso' ), |
|
427 | + __('all active and upcoming', 'event_espresso'), |
|
428 | 428 | |
429 | 429 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:25 |
430 | - __( 'active dates only', 'event_espresso' ), |
|
430 | + __('active dates only', 'event_espresso'), |
|
431 | 431 | |
432 | 432 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:26 |
433 | - __( 'upcoming dates only', 'event_espresso' ), |
|
433 | + __('upcoming dates only', 'event_espresso'), |
|
434 | 434 | |
435 | 435 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:27 |
436 | - __( 'next active or upcoming only', 'event_espresso' ), |
|
436 | + __('next active or upcoming only', 'event_espresso'), |
|
437 | 437 | |
438 | 438 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:28 |
439 | - __( 'sold out dates only', 'event_espresso' ), |
|
439 | + __('sold out dates only', 'event_espresso'), |
|
440 | 440 | |
441 | 441 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:29 |
442 | - __( 'recently expired dates', 'event_espresso' ), |
|
442 | + __('recently expired dates', 'event_espresso'), |
|
443 | 443 | |
444 | 444 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:30 |
445 | - __( 'all expired dates', 'event_espresso' ), |
|
445 | + __('all expired dates', 'event_espresso'), |
|
446 | 446 | |
447 | 447 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:31 |
448 | - __( 'trashed dates only', 'event_espresso' ), |
|
448 | + __('trashed dates only', 'event_espresso'), |
|
449 | 449 | |
450 | 450 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:35 |
451 | 451 | // Reference: packages/dates/src/DateRangePicker/DateRangePickerLegend.tsx:10 |
452 | 452 | // Reference: packages/dates/src/DateRangePicker/index.tsx:42 |
453 | - __( 'start date', 'event_espresso' ), |
|
453 | + __('start date', 'event_espresso'), |
|
454 | 454 | |
455 | 455 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:36 |
456 | - __( 'name', 'event_espresso' ), |
|
456 | + __('name', 'event_espresso'), |
|
457 | 457 | |
458 | 458 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:37 |
459 | 459 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:38 |
@@ -461,96 +461,96 @@ discard block |
||
461 | 461 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/table/HeaderCell.tsx:20 |
462 | 462 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:36 |
463 | 463 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:23 |
464 | - __( 'ID', 'event_espresso' ), |
|
464 | + __('ID', 'event_espresso'), |
|
465 | 465 | |
466 | 466 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:38 |
467 | 467 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:47 |
468 | - __( 'custom order', 'event_espresso' ), |
|
468 | + __('custom order', 'event_espresso'), |
|
469 | 469 | |
470 | 470 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:42 |
471 | 471 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:52 |
472 | - __( 'display', 'event_espresso' ), |
|
472 | + __('display', 'event_espresso'), |
|
473 | 473 | |
474 | 474 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:43 |
475 | - __( 'recurrence', 'event_espresso' ), |
|
475 | + __('recurrence', 'event_espresso'), |
|
476 | 476 | |
477 | 477 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:44 |
478 | 478 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:54 |
479 | - __( 'sales', 'event_espresso' ), |
|
479 | + __('sales', 'event_espresso'), |
|
480 | 480 | |
481 | 481 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:45 |
482 | 482 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:56 |
483 | - __( 'sort by', 'event_espresso' ), |
|
483 | + __('sort by', 'event_espresso'), |
|
484 | 484 | |
485 | 485 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:46 |
486 | 486 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:55 |
487 | 487 | // Reference: packages/components/src/EntityList/filterBar/EntityListFilterBar.tsx:73 |
488 | - __( 'search', 'event_espresso' ), |
|
488 | + __('search', 'event_espresso'), |
|
489 | 489 | |
490 | 490 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:47 |
491 | 491 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:57 |
492 | - __( 'status', 'event_espresso' ), |
|
492 | + __('status', 'event_espresso'), |
|
493 | 493 | |
494 | 494 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:9 |
495 | - __( 'start dates only', 'event_espresso' ), |
|
495 | + __('start dates only', 'event_espresso'), |
|
496 | 496 | |
497 | 497 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:20 |
498 | 498 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/NewDateModal.tsx:15 |
499 | 499 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/OptionsModalButton.tsx:11 |
500 | - __( 'Add New Date', 'event_espresso' ), |
|
500 | + __('Add New Date', 'event_espresso'), |
|
501 | 501 | |
502 | 502 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:20 |
503 | - __( 'Add Single Date', 'event_espresso' ), |
|
503 | + __('Add Single Date', 'event_espresso'), |
|
504 | 504 | |
505 | 505 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:34 |
506 | - __( 'Add a single date that only occurs once', 'event_espresso' ), |
|
506 | + __('Add a single date that only occurs once', 'event_espresso'), |
|
507 | 507 | |
508 | 508 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:36 |
509 | - __( 'Single Date', 'event_espresso' ), |
|
509 | + __('Single Date', 'event_espresso'), |
|
510 | 510 | |
511 | 511 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:105 |
512 | 512 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:103 |
513 | 513 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:53 |
514 | - __( 'Actions', 'event_espresso' ), |
|
514 | + __('Actions', 'event_espresso'), |
|
515 | 515 | |
516 | 516 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:53 |
517 | - __( 'Start', 'event_espresso' ), |
|
517 | + __('Start', 'event_espresso'), |
|
518 | 518 | |
519 | 519 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:64 |
520 | - __( 'End', 'event_espresso' ), |
|
520 | + __('End', 'event_espresso'), |
|
521 | 521 | |
522 | 522 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:76 |
523 | - __( 'Cap', 'event_espresso' ), |
|
523 | + __('Cap', 'event_espresso'), |
|
524 | 524 | |
525 | 525 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:84 |
526 | 526 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:85 |
527 | - __( 'Sold', 'event_espresso' ), |
|
527 | + __('Sold', 'event_espresso'), |
|
528 | 528 | |
529 | 529 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:93 |
530 | - __( 'Reg list', 'event_espresso' ), |
|
530 | + __('Reg list', 'event_espresso'), |
|
531 | 531 | |
532 | 532 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:94 |
533 | 533 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:95 |
534 | - __( 'Regs', 'event_espresso' ), |
|
534 | + __('Regs', 'event_espresso'), |
|
535 | 535 | |
536 | 536 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:18 |
537 | - __( 'Tickets must always have at least one date assigned to them but one or more of the tickets below does not have any. Please correct the assignments for the highlighted cells.', 'event_espresso' ), |
|
537 | + __('Tickets must always have at least one date assigned to them but one or more of the tickets below does not have any. Please correct the assignments for the highlighted cells.', 'event_espresso'), |
|
538 | 538 | |
539 | 539 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:22 |
540 | - __( '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. Please correct the assignments for the highlighted cells.', 'event_espresso' ), |
|
540 | + __('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. Please correct the assignments for the highlighted cells.', 'event_espresso'), |
|
541 | 541 | |
542 | 542 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:25 |
543 | 543 | /* translators: %d entity id, %s entity name */ |
544 | - __( 'Ticket Assignment Manager for Datetime: %1$d - %2$s', 'event_espresso' ), |
|
544 | + __('Ticket Assignment Manager for Datetime: %1$d - %2$s', 'event_espresso'), |
|
545 | 545 | |
546 | 546 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:32 |
547 | 547 | /* translators: %d entity id, %s entity name */ |
548 | - __( 'Ticket Assignment Manager for Ticket: %1$d - %2$s', 'event_espresso' ), |
|
548 | + __('Ticket Assignment Manager for Ticket: %1$d - %2$s', 'event_espresso'), |
|
549 | 549 | |
550 | 550 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/TicketAssignmentsManagerModal/buttons/useCancelButtonProps.tsx:18 |
551 | 551 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:16 |
552 | 552 | // Reference: packages/components/src/Modal/useCancelButtonProps.tsx:10 |
553 | - __( 'Cancel', 'event_espresso' ), |
|
553 | + __('Cancel', 'event_espresso'), |
|
554 | 554 | |
555 | 555 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/TicketAssignmentsManagerModal/buttons/useSubmitButtonProps.tsx:25 |
556 | 556 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:17 |
@@ -559,770 +559,770 @@ discard block |
||
559 | 559 | // Reference: packages/components/src/bulkEdit/details/Submit.tsx:38 |
560 | 560 | // Reference: packages/form/src/Submit.tsx:26 |
561 | 561 | // Reference: packages/tpc/src/buttons/useSubmitButtonProps.tsx:25 |
562 | - __( 'Submit', 'event_espresso' ), |
|
562 | + __('Submit', 'event_espresso'), |
|
563 | 563 | |
564 | 564 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/TicketAssignmentsManagerModal/index.tsx:32 |
565 | 565 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/table/Table.tsx:14 |
566 | - __( 'Ticket Assignment Manager', 'event_espresso' ), |
|
566 | + __('Ticket Assignment Manager', 'event_espresso'), |
|
567 | 567 | |
568 | 568 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/table/BodyCell.tsx:24 |
569 | - __( 'assign ticket', 'event_espresso' ), |
|
569 | + __('assign ticket', 'event_espresso'), |
|
570 | 570 | |
571 | 571 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/DatesByMonthControl.tsx:19 |
572 | - __( 'All Dates', 'event_espresso' ), |
|
572 | + __('All Dates', 'event_espresso'), |
|
573 | 573 | |
574 | 574 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/DatesByMonthControl.tsx:26 |
575 | - __( 'dates by month', 'event_espresso' ), |
|
575 | + __('dates by month', 'event_espresso'), |
|
576 | 576 | |
577 | 577 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowExpiredTicketsControl.tsx:14 |
578 | - __( 'show expired tickets', 'event_espresso' ), |
|
578 | + __('show expired tickets', 'event_espresso'), |
|
579 | 579 | |
580 | 580 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowTrashedDatesControl.tsx:10 |
581 | - __( 'show trashed dates', 'event_espresso' ), |
|
581 | + __('show trashed dates', 'event_espresso'), |
|
582 | 582 | |
583 | 583 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowTrashedTicketsControl.tsx:14 |
584 | - __( 'show trashed tickets', 'event_espresso' ), |
|
584 | + __('show trashed tickets', 'event_espresso'), |
|
585 | 585 | |
586 | 586 | // Reference: domains/eventEditor/src/ui/tickets/TicketRegistrationsLink.tsx:17 |
587 | - __( 'total registrations.', 'event_espresso' ), |
|
587 | + __('total registrations.', 'event_espresso'), |
|
588 | 588 | |
589 | 589 | // Reference: domains/eventEditor/src/ui/tickets/TicketRegistrationsLink.tsx:18 |
590 | - __( 'view ALL registrations for this ticket.', 'event_espresso' ), |
|
590 | + __('view ALL registrations for this ticket.', 'event_espresso'), |
|
591 | 591 | |
592 | 592 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/Container.tsx:21 |
593 | 593 | /* translators: %s ticket id */ |
594 | - __( 'Edit ticket %s', 'event_espresso' ), |
|
594 | + __('Edit ticket %s', 'event_espresso'), |
|
595 | 595 | |
596 | 596 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/Container.tsx:24 |
597 | - __( 'New Ticket Details', 'event_espresso' ), |
|
597 | + __('New Ticket Details', 'event_espresso'), |
|
598 | 598 | |
599 | 599 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/ContentBody.tsx:47 |
600 | - __( 'Set ticket prices', 'event_espresso' ), |
|
600 | + __('Set ticket prices', 'event_espresso'), |
|
601 | 601 | |
602 | 602 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/ContentBody.tsx:54 |
603 | - __( 'Skip prices - assign dates', 'event_espresso' ), |
|
603 | + __('Skip prices - assign dates', 'event_espresso'), |
|
604 | 604 | |
605 | 605 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/ContentBody.tsx:70 |
606 | - __( 'Save and assign dates', 'event_espresso' ), |
|
606 | + __('Save and assign dates', 'event_espresso'), |
|
607 | 607 | |
608 | 608 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/ContentBody.tsx:83 |
609 | - __( 'Ticket details', 'event_espresso' ), |
|
609 | + __('Ticket details', 'event_espresso'), |
|
610 | 610 | |
611 | 611 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:11 |
612 | - __( 'primary information about the ticket', 'event_espresso' ), |
|
612 | + __('primary information about the ticket', 'event_espresso'), |
|
613 | 613 | |
614 | 614 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:11 |
615 | - __( 'Ticket Details', 'event_espresso' ), |
|
615 | + __('Ticket Details', 'event_espresso'), |
|
616 | 616 | |
617 | 617 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:13 |
618 | - __( 'apply ticket price modifiers and taxes', 'event_espresso' ), |
|
618 | + __('apply ticket price modifiers and taxes', 'event_espresso'), |
|
619 | 619 | |
620 | 620 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:15 |
621 | - __( 'Price Calculator', 'event_espresso' ), |
|
621 | + __('Price Calculator', 'event_espresso'), |
|
622 | 622 | |
623 | 623 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:17 |
624 | - __( 'Assign Dates', 'event_espresso' ), |
|
624 | + __('Assign Dates', 'event_espresso'), |
|
625 | 625 | |
626 | 626 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:105 |
627 | - __( 'Ticket Sales', 'event_espresso' ), |
|
627 | + __('Ticket Sales', 'event_espresso'), |
|
628 | 628 | |
629 | 629 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:128 |
630 | 630 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:112 |
631 | - __( 'Quantity For Sale', 'event_espresso' ), |
|
631 | + __('Quantity For Sale', 'event_espresso'), |
|
632 | 632 | |
633 | 633 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:134 |
634 | - __( 'The maximum number of this ticket available for sale.', 'event_espresso' ), |
|
634 | + __('The maximum number of this ticket available for sale.', 'event_espresso'), |
|
635 | 635 | |
636 | 636 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:136 |
637 | - __( 'Set to 0 to stop sales, or leave blank for no limit.', 'event_espresso' ), |
|
637 | + __('Set to 0 to stop sales, or leave blank for no limit.', 'event_espresso'), |
|
638 | 638 | |
639 | 639 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:141 |
640 | 640 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:121 |
641 | - __( 'Number of Uses', 'event_espresso' ), |
|
641 | + __('Number of Uses', 'event_espresso'), |
|
642 | 642 | |
643 | 643 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:147 |
644 | - __( 'Controls the total number of times this ticket can be used, regardless of the number of dates it is assigned to.', 'event_espresso' ), |
|
644 | + __('Controls the total number of times this ticket can be used, regardless of the number of dates it is assigned to.', 'event_espresso'), |
|
645 | 645 | |
646 | 646 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:151 |
647 | - __( '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' ), |
|
647 | + __('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'), |
|
648 | 648 | |
649 | 649 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:158 |
650 | 650 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:129 |
651 | - __( 'Minimum Quantity', 'event_espresso' ), |
|
651 | + __('Minimum Quantity', 'event_espresso'), |
|
652 | 652 | |
653 | 653 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:163 |
654 | - __( 'The minimum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso' ), |
|
654 | + __('The minimum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso'), |
|
655 | 655 | |
656 | 656 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:167 |
657 | - __( 'Leave blank for no minimum.', 'event_espresso' ), |
|
657 | + __('Leave blank for no minimum.', 'event_espresso'), |
|
658 | 658 | |
659 | 659 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:172 |
660 | 660 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:137 |
661 | - __( 'Maximum Quantity', 'event_espresso' ), |
|
661 | + __('Maximum Quantity', 'event_espresso'), |
|
662 | 662 | |
663 | 663 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:178 |
664 | - __( 'The maximum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso' ), |
|
664 | + __('The maximum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso'), |
|
665 | 665 | |
666 | 666 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:182 |
667 | - __( 'Leave blank for no maximum.', 'event_espresso' ), |
|
667 | + __('Leave blank for no maximum.', 'event_espresso'), |
|
668 | 668 | |
669 | 669 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:187 |
670 | 670 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:146 |
671 | - __( 'Required Ticket', 'event_espresso' ), |
|
671 | + __('Required Ticket', 'event_espresso'), |
|
672 | 672 | |
673 | 673 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:189 |
674 | - __( 'If enabled, the ticket must be selected and will appear first in frontend ticket lists.', 'event_espresso' ), |
|
674 | + __('If enabled, the ticket must be selected and will appear first in frontend ticket lists.', 'event_espresso'), |
|
675 | 675 | |
676 | 676 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:196 |
677 | - __( 'Default Ticket', 'event_espresso' ), |
|
677 | + __('Default Ticket', 'event_espresso'), |
|
678 | 678 | |
679 | 679 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:198 |
680 | - __( 'If enabled, the ticket will appear on all new events.', 'event_espresso' ), |
|
680 | + __('If enabled, the ticket will appear on all new events.', 'event_espresso'), |
|
681 | 681 | |
682 | 682 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/TicketsList.tsx:35 |
683 | - __( 'Available Tickets', 'event_espresso' ), |
|
683 | + __('Available Tickets', 'event_espresso'), |
|
684 | 684 | |
685 | 685 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/TicketsList.tsx:38 |
686 | - __( 'loading tickets…', 'event_espresso' ), |
|
686 | + __('loading tickets…', 'event_espresso'), |
|
687 | 687 | |
688 | 688 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:27 |
689 | - __( 'Number of related dates', 'event_espresso' ), |
|
689 | + __('Number of related dates', 'event_espresso'), |
|
690 | 690 | |
691 | 691 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:28 |
692 | - __( 'There are no event dates assigned to this ticket. Please click the calendar icon to update the assignments.', 'event_espresso' ), |
|
692 | + __('There are no event dates assigned to this ticket. Please click the calendar icon to update the assignments.', 'event_espresso'), |
|
693 | 693 | |
694 | 694 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:44 |
695 | - __( 'assign dates', 'event_espresso' ), |
|
695 | + __('assign dates', 'event_espresso'), |
|
696 | 696 | |
697 | 697 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:17 |
698 | - __( 'Permanently delete Ticket?', 'event_espresso' ), |
|
698 | + __('Permanently delete Ticket?', 'event_espresso'), |
|
699 | 699 | |
700 | 700 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:17 |
701 | - __( 'Move Ticket to Trash?', 'event_espresso' ), |
|
701 | + __('Move Ticket to Trash?', 'event_espresso'), |
|
702 | 702 | |
703 | 703 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:19 |
704 | - __( 'Are you sure you want to permanently delete this ticket? This action is permanent and can not be undone.', 'event_espresso' ), |
|
704 | + __('Are you sure you want to permanently delete this ticket? This action is permanent and can not be undone.', 'event_espresso'), |
|
705 | 705 | |
706 | 706 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:20 |
707 | - __( 'Are you sure you want to move this ticket to the trash? You can "untrash" this ticket later if you need to.', 'event_espresso' ), |
|
707 | + __('Are you sure you want to move this ticket to the trash? You can "untrash" this ticket later if you need to.', 'event_espresso'), |
|
708 | 708 | |
709 | 709 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:31 |
710 | - __( 'ticket main menu', 'event_espresso' ), |
|
710 | + __('ticket main menu', 'event_espresso'), |
|
711 | 711 | |
712 | 712 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:35 |
713 | - __( 'trash ticket', 'event_espresso' ), |
|
713 | + __('trash ticket', 'event_espresso'), |
|
714 | 714 | |
715 | 715 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:44 |
716 | - __( 'edit ticket', 'event_espresso' ), |
|
716 | + __('edit ticket', 'event_espresso'), |
|
717 | 717 | |
718 | 718 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:45 |
719 | - __( 'copy ticket', 'event_espresso' ), |
|
719 | + __('copy ticket', 'event_espresso'), |
|
720 | 720 | |
721 | 721 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:39 |
722 | 722 | // Reference: packages/components/src/bulkEdit/BulkActions.tsx:44 |
723 | - __( 'bulk actions', 'event_espresso' ), |
|
723 | + __('bulk actions', 'event_espresso'), |
|
724 | 724 | |
725 | 725 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:43 |
726 | - __( 'edit ticket details', 'event_espresso' ), |
|
726 | + __('edit ticket details', 'event_espresso'), |
|
727 | 727 | |
728 | 728 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:47 |
729 | - __( 'delete tickets', 'event_espresso' ), |
|
729 | + __('delete tickets', 'event_espresso'), |
|
730 | 730 | |
731 | 731 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:47 |
732 | - __( 'trash tickets', 'event_espresso' ), |
|
732 | + __('trash tickets', 'event_espresso'), |
|
733 | 733 | |
734 | 734 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:51 |
735 | - __( 'edit ticket prices', 'event_espresso' ), |
|
735 | + __('edit ticket prices', 'event_espresso'), |
|
736 | 736 | |
737 | 737 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:13 |
738 | - __( 'Are you sure you want to permanently delete these tickets? This action can NOT be undone!', 'event_espresso' ), |
|
738 | + __('Are you sure you want to permanently delete these tickets? This action can NOT be undone!', 'event_espresso'), |
|
739 | 739 | |
740 | 740 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:14 |
741 | - __( 'Are you sure you want to trash these tickets?', 'event_espresso' ), |
|
741 | + __('Are you sure you want to trash these tickets?', 'event_espresso'), |
|
742 | 742 | |
743 | 743 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:15 |
744 | - __( 'Delete tickets permanently', 'event_espresso' ), |
|
744 | + __('Delete tickets permanently', 'event_espresso'), |
|
745 | 745 | |
746 | 746 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:15 |
747 | - __( 'Trash tickets', 'event_espresso' ), |
|
747 | + __('Trash tickets', 'event_espresso'), |
|
748 | 748 | |
749 | 749 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/EditDetails.tsx:22 |
750 | - __( 'Bulk edit ticket details', 'event_espresso' ), |
|
750 | + __('Bulk edit ticket details', 'event_espresso'), |
|
751 | 751 | |
752 | 752 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/EditDetails.tsx:23 |
753 | - __( 'any changes will be applied to ALL of the selected tickets.', 'event_espresso' ), |
|
753 | + __('any changes will be applied to ALL of the selected tickets.', 'event_espresso'), |
|
754 | 754 | |
755 | 755 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/EditPrices.tsx:18 |
756 | - __( 'Bulk edit ticket prices', 'event_espresso' ), |
|
756 | + __('Bulk edit ticket prices', 'event_espresso'), |
|
757 | 757 | |
758 | 758 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:19 |
759 | - __( 'Edit all prices together', 'event_espresso' ), |
|
759 | + __('Edit all prices together', 'event_espresso'), |
|
760 | 760 | |
761 | 761 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:20 |
762 | - __( 'Edit all the selected ticket prices dynamically', 'event_espresso' ), |
|
762 | + __('Edit all the selected ticket prices dynamically', 'event_espresso'), |
|
763 | 763 | |
764 | 764 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:24 |
765 | - __( 'Edit prices individually', 'event_espresso' ), |
|
765 | + __('Edit prices individually', 'event_espresso'), |
|
766 | 766 | |
767 | 767 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:25 |
768 | - __( 'Edit prices for each ticket individually', 'event_espresso' ), |
|
768 | + __('Edit prices for each ticket individually', 'event_espresso'), |
|
769 | 769 | |
770 | 770 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:15 |
771 | 771 | // Reference: packages/components/src/bulkEdit/details/Submit.tsx:45 |
772 | 772 | // Reference: packages/form/src/ResetButton.tsx:17 |
773 | 773 | // Reference: packages/tpc/src/buttons/useResetButtonProps.tsx:12 |
774 | - __( 'Reset', 'event_espresso' ), |
|
774 | + __('Reset', 'event_espresso'), |
|
775 | 775 | |
776 | 776 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/editSeparately/TPCInstance.tsx:25 |
777 | 777 | /* translators: %s ticket name */ |
778 | - __( 'Edit prices for Ticket: %s', 'event_espresso' ), |
|
778 | + __('Edit prices for Ticket: %s', 'event_espresso'), |
|
779 | 779 | |
780 | 780 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:36 |
781 | - __( 'Edit Ticket Sale Dates', 'event_espresso' ), |
|
781 | + __('Edit Ticket Sale Dates', 'event_espresso'), |
|
782 | 782 | |
783 | 783 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:38 |
784 | - __( 'edit ticket sales start and end dates', 'event_espresso' ), |
|
784 | + __('edit ticket sales start and end dates', 'event_espresso'), |
|
785 | 785 | |
786 | 786 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:27 |
787 | - __( 'quantity', 'event_espresso' ), |
|
787 | + __('quantity', 'event_espresso'), |
|
788 | 788 | |
789 | 789 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketQuantity.tsx:26 |
790 | - __( 'edit quantity of tickets available…', 'event_espresso' ), |
|
790 | + __('edit quantity of tickets available…', 'event_espresso'), |
|
791 | 791 | |
792 | 792 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:15 |
793 | 793 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:51 |
794 | - __( 'On Sale', 'event_espresso' ), |
|
794 | + __('On Sale', 'event_espresso'), |
|
795 | 795 | |
796 | 796 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:17 |
797 | - __( 'Pending', 'event_espresso' ), |
|
797 | + __('Pending', 'event_espresso'), |
|
798 | 798 | |
799 | 799 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/editable/EditablePrice.tsx:32 |
800 | - __( 'edit ticket total…', 'event_espresso' ), |
|
800 | + __('edit ticket total…', 'event_espresso'), |
|
801 | 801 | |
802 | 802 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/editable/EditablePrice.tsx:42 |
803 | - __( 'set price…', 'event_espresso' ), |
|
803 | + __('set price…', 'event_espresso'), |
|
804 | 804 | |
805 | 805 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/IsChainedButton.tsx:24 |
806 | - __( 'tickets list is linked to dates list and is showing tickets for above dates only', 'event_espresso' ), |
|
806 | + __('tickets list is linked to dates list and is showing tickets for above dates only', 'event_espresso'), |
|
807 | 807 | |
808 | 808 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/IsChainedButton.tsx:25 |
809 | - __( 'tickets list is unlinked and is showing tickets for all event dates', 'event_espresso' ), |
|
809 | + __('tickets list is unlinked and is showing tickets for all event dates', 'event_espresso'), |
|
810 | 810 | |
811 | 811 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:10 |
812 | - __( 'ticket sales start and end dates', 'event_espresso' ), |
|
812 | + __('ticket sales start and end dates', 'event_espresso'), |
|
813 | 813 | |
814 | 814 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:15 |
815 | - __( 'tickets with 90% or more sold', 'event_espresso' ), |
|
815 | + __('tickets with 90% or more sold', 'event_espresso'), |
|
816 | 816 | |
817 | 817 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:16 |
818 | - __( 'tickets with 75% or more sold', 'event_espresso' ), |
|
818 | + __('tickets with 75% or more sold', 'event_espresso'), |
|
819 | 819 | |
820 | 820 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:17 |
821 | - __( 'tickets with 50% or more sold', 'event_espresso' ), |
|
821 | + __('tickets with 50% or more sold', 'event_espresso'), |
|
822 | 822 | |
823 | 823 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:19 |
824 | - __( 'tickets with less than 50% sold', 'event_espresso' ), |
|
824 | + __('tickets with less than 50% sold', 'event_espresso'), |
|
825 | 825 | |
826 | 826 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:28 |
827 | - __( 'all tickets for all dates', 'event_espresso' ), |
|
827 | + __('all tickets for all dates', 'event_espresso'), |
|
828 | 828 | |
829 | 829 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:29 |
830 | - __( 'all on sale and sale pending', 'event_espresso' ), |
|
830 | + __('all on sale and sale pending', 'event_espresso'), |
|
831 | 831 | |
832 | 832 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:30 |
833 | - __( 'on sale tickets only', 'event_espresso' ), |
|
833 | + __('on sale tickets only', 'event_espresso'), |
|
834 | 834 | |
835 | 835 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:31 |
836 | - __( 'sale pending tickets only', 'event_espresso' ), |
|
836 | + __('sale pending tickets only', 'event_espresso'), |
|
837 | 837 | |
838 | 838 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:32 |
839 | - __( 'next on sale or sale pending only', 'event_espresso' ), |
|
839 | + __('next on sale or sale pending only', 'event_espresso'), |
|
840 | 840 | |
841 | 841 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:33 |
842 | - __( 'sold out tickets only', 'event_espresso' ), |
|
842 | + __('sold out tickets only', 'event_espresso'), |
|
843 | 843 | |
844 | 844 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:34 |
845 | - __( 'expired tickets only', 'event_espresso' ), |
|
845 | + __('expired tickets only', 'event_espresso'), |
|
846 | 846 | |
847 | 847 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:35 |
848 | - __( 'trashed tickets only', 'event_espresso' ), |
|
848 | + __('trashed tickets only', 'event_espresso'), |
|
849 | 849 | |
850 | 850 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:40 |
851 | - __( 'all tickets for above dates', 'event_espresso' ), |
|
851 | + __('all tickets for above dates', 'event_espresso'), |
|
852 | 852 | |
853 | 853 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:44 |
854 | - __( 'ticket sale date', 'event_espresso' ), |
|
854 | + __('ticket sale date', 'event_espresso'), |
|
855 | 855 | |
856 | 856 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:45 |
857 | - __( 'ticket name', 'event_espresso' ), |
|
857 | + __('ticket name', 'event_espresso'), |
|
858 | 858 | |
859 | 859 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:46 |
860 | - __( 'ticket ID', 'event_espresso' ), |
|
860 | + __('ticket ID', 'event_espresso'), |
|
861 | 861 | |
862 | 862 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:53 |
863 | - __( 'link', 'event_espresso' ), |
|
863 | + __('link', 'event_espresso'), |
|
864 | 864 | |
865 | 865 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:8 |
866 | - __( 'ticket sales start date only', 'event_espresso' ), |
|
866 | + __('ticket sales start date only', 'event_espresso'), |
|
867 | 867 | |
868 | 868 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:9 |
869 | - __( 'ticket sales end date only', 'event_espresso' ), |
|
869 | + __('ticket sales end date only', 'event_espresso'), |
|
870 | 870 | |
871 | 871 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:19 |
872 | - __( 'Add New Ticket', 'event_espresso' ), |
|
872 | + __('Add New Ticket', 'event_espresso'), |
|
873 | 873 | |
874 | 874 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:31 |
875 | - __( 'Single Ticket', 'event_espresso' ), |
|
875 | + __('Single Ticket', 'event_espresso'), |
|
876 | 876 | |
877 | 877 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:33 |
878 | - __( 'Add a single ticket and assign the dates to it', 'event_espresso' ), |
|
878 | + __('Add a single ticket and assign the dates to it', 'event_espresso'), |
|
879 | 879 | |
880 | 880 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/TableView.tsx:40 |
881 | - __( 'Tickets', 'event_espresso' ), |
|
881 | + __('Tickets', 'event_espresso'), |
|
882 | 882 | |
883 | 883 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:50 |
884 | - __( 'Goes on Sale', 'event_espresso' ), |
|
884 | + __('Goes on Sale', 'event_espresso'), |
|
885 | 885 | |
886 | 886 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:61 |
887 | - __( 'Sale Ends', 'event_espresso' ), |
|
887 | + __('Sale Ends', 'event_espresso'), |
|
888 | 888 | |
889 | 889 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:62 |
890 | - __( 'Ends', 'event_espresso' ), |
|
890 | + __('Ends', 'event_espresso'), |
|
891 | 891 | |
892 | 892 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:71 |
893 | - __( 'Price', 'event_espresso' ), |
|
893 | + __('Price', 'event_espresso'), |
|
894 | 894 | |
895 | 895 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:78 |
896 | - __( 'Quantity', 'event_espresso' ), |
|
896 | + __('Quantity', 'event_espresso'), |
|
897 | 897 | |
898 | 898 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:94 |
899 | - __( 'Registrations', 'event_espresso' ), |
|
899 | + __('Registrations', 'event_espresso'), |
|
900 | 900 | |
901 | 901 | // Reference: domains/wpPluginsPage/src/exitSurvey/Popup.tsx:28 |
902 | - __( 'Do you have a moment to share why you are deactivating Event Espresso?', 'event_espresso' ), |
|
902 | + __('Do you have a moment to share why you are deactivating Event Espresso?', 'event_espresso'), |
|
903 | 903 | |
904 | 904 | // Reference: domains/wpPluginsPage/src/exitSurvey/Popup.tsx:39 |
905 | - __( 'Skip', 'event_espresso' ), |
|
905 | + __('Skip', 'event_espresso'), |
|
906 | 906 | |
907 | 907 | // Reference: domains/wpPluginsPage/src/exitSurvey/Popup.tsx:41 |
908 | - __( 'Sure I\'ll help', 'event_espresso' ), |
|
908 | + __('Sure I\'ll help', 'event_espresso'), |
|
909 | 909 | |
910 | 910 | // Reference: packages/adapters/src/Pagination/Pagination.tsx:24 |
911 | - __( 'pagination', 'event_espresso' ), |
|
911 | + __('pagination', 'event_espresso'), |
|
912 | 912 | |
913 | 913 | // Reference: packages/components/src/ActiveFilters/ActiveFilters.tsx:9 |
914 | - __( 'active filters:', 'event_espresso' ), |
|
914 | + __('active filters:', 'event_espresso'), |
|
915 | 915 | |
916 | 916 | // Reference: packages/components/src/ActiveFilters/FilterTag.tsx:11 |
917 | 917 | /* translators: %s filter name */ |
918 | - __( 'remove filter - %s', 'event_espresso' ), |
|
918 | + __('remove filter - %s', 'event_espresso'), |
|
919 | 919 | |
920 | 920 | // Reference: packages/components/src/CalendarDateRange/CalendarDateRange.tsx:39 |
921 | - __( 'to', 'event_espresso' ), |
|
921 | + __('to', 'event_espresso'), |
|
922 | 922 | |
923 | 923 | // Reference: packages/components/src/CalendarDateSwitcher/CalendarDateSwitcher.tsx:33 |
924 | - __( 'starts', 'event_espresso' ), |
|
924 | + __('starts', 'event_espresso'), |
|
925 | 925 | |
926 | 926 | // Reference: packages/components/src/CalendarDateSwitcher/CalendarDateSwitcher.tsx:45 |
927 | - __( 'ends', 'event_espresso' ), |
|
927 | + __('ends', 'event_espresso'), |
|
928 | 928 | |
929 | 929 | // Reference: packages/components/src/CalendarPageDate/CalendarPageDate.tsx:57 |
930 | - __( 'TO', 'event_espresso' ), |
|
930 | + __('TO', 'event_espresso'), |
|
931 | 931 | |
932 | 932 | // Reference: packages/components/src/Confirm/ConfirmClose.tsx:8 |
933 | 933 | // Reference: packages/components/src/Modal/ModalWithAlert.tsx:22 |
934 | - __( 'Are you sure you want to close this?', 'event_espresso' ), |
|
934 | + __('Are you sure you want to close this?', 'event_espresso'), |
|
935 | 935 | |
936 | 936 | // Reference: packages/components/src/Confirm/ConfirmDelete.tsx:8 |
937 | - __( 'Are you sure you want to delete this?', 'event_espresso' ), |
|
937 | + __('Are you sure you want to delete this?', 'event_espresso'), |
|
938 | 938 | |
939 | 939 | // Reference: packages/components/src/Confirm/useConfirmWithButton.tsx:11 |
940 | - __( 'Please confirm this action.', 'event_espresso' ), |
|
940 | + __('Please confirm this action.', 'event_espresso'), |
|
941 | 941 | |
942 | 942 | // Reference: packages/components/src/Confirm/useConfirmationDialog.tsx:34 |
943 | - __( 'No', 'event_espresso' ), |
|
943 | + __('No', 'event_espresso'), |
|
944 | 944 | |
945 | 945 | // Reference: packages/components/src/Confirm/useConfirmationDialog.tsx:35 |
946 | - __( 'Yes', 'event_espresso' ), |
|
946 | + __('Yes', 'event_espresso'), |
|
947 | 947 | |
948 | 948 | // Reference: packages/components/src/DateTimeRangePicker/index.tsx:74 |
949 | 949 | // Reference: packages/components/src/Popover/PopoverForm/PopoverForm.tsx:42 |
950 | - __( 'save', 'event_espresso' ), |
|
950 | + __('save', 'event_espresso'), |
|
951 | 951 | |
952 | 952 | // Reference: packages/components/src/DebugInfo/DebugInfo.tsx:38 |
953 | - __( 'Hide Debug Info', 'event_espresso' ), |
|
953 | + __('Hide Debug Info', 'event_espresso'), |
|
954 | 954 | |
955 | 955 | // Reference: packages/components/src/DebugInfo/DebugInfo.tsx:38 |
956 | - __( 'Show Debug Info', 'event_espresso' ), |
|
956 | + __('Show Debug Info', 'event_espresso'), |
|
957 | 957 | |
958 | 958 | // Reference: packages/components/src/EditDateRangeButton/index.tsx:41 |
959 | - __( 'Edit Start and End Dates and Times', 'event_espresso' ), |
|
959 | + __('Edit Start and End Dates and Times', 'event_espresso'), |
|
960 | 960 | |
961 | 961 | // Reference: packages/components/src/EntityActionsMenu/entityMenuItems/Copy.tsx:9 |
962 | - __( 'copy', 'event_espresso' ), |
|
962 | + __('copy', 'event_espresso'), |
|
963 | 963 | |
964 | 964 | // Reference: packages/components/src/EntityActionsMenu/entityMenuItems/Edit.tsx:9 |
965 | - __( 'edit', 'event_espresso' ), |
|
965 | + __('edit', 'event_espresso'), |
|
966 | 966 | |
967 | 967 | // Reference: packages/components/src/EntityActionsMenu/entityMenuItems/Trash.tsx:9 |
968 | - __( 'trash', 'event_espresso' ), |
|
968 | + __('trash', 'event_espresso'), |
|
969 | 969 | |
970 | 970 | // Reference: packages/components/src/EntityDetailsPanel/EntityDetailsPanelSold.tsx:36 |
971 | - __( 'view approved registrations for this date.', 'event_espresso' ), |
|
971 | + __('view approved registrations for this date.', 'event_espresso'), |
|
972 | 972 | |
973 | 973 | // Reference: packages/components/src/EntityDetailsPanel/EntityDetailsPanelSold.tsx:37 |
974 | - __( 'view approved registrations for this ticket.', 'event_espresso' ), |
|
974 | + __('view approved registrations for this ticket.', 'event_espresso'), |
|
975 | 975 | |
976 | 976 | // Reference: packages/components/src/EntityList/EntityList.tsx:36 |
977 | - __( 'no results found', 'event_espresso' ), |
|
977 | + __('no results found', 'event_espresso'), |
|
978 | 978 | |
979 | 979 | // Reference: packages/components/src/EntityList/EntityList.tsx:37 |
980 | - __( 'try changing filter settings', 'event_espresso' ), |
|
980 | + __('try changing filter settings', 'event_espresso'), |
|
981 | 981 | |
982 | 982 | // Reference: packages/components/src/EntityList/filterBar/buttons/CardViewFilterButton.tsx:22 |
983 | - __( 'card view', 'event_espresso' ), |
|
983 | + __('card view', 'event_espresso'), |
|
984 | 984 | |
985 | 985 | // Reference: packages/components/src/EntityList/filterBar/buttons/TableViewFilterButton.tsx:22 |
986 | - __( 'table view', 'event_espresso' ), |
|
986 | + __('table view', 'event_espresso'), |
|
987 | 987 | |
988 | 988 | // Reference: packages/components/src/EntityList/filterBar/buttons/ToggleFiltersButton.tsx:11 |
989 | - __( 'hide filters', 'event_espresso' ), |
|
989 | + __('hide filters', 'event_espresso'), |
|
990 | 990 | |
991 | 991 | // Reference: packages/components/src/EntityList/filterBar/buttons/ToggleFiltersButton.tsx:11 |
992 | - __( 'show filters', 'event_espresso' ), |
|
992 | + __('show filters', 'event_espresso'), |
|
993 | 993 | |
994 | 994 | // Reference: packages/components/src/EntityList/filterBar/buttons/ToggleSortingButton.tsx:28 |
995 | - __( 'disable sorting', 'event_espresso' ), |
|
995 | + __('disable sorting', 'event_espresso'), |
|
996 | 996 | |
997 | 997 | // Reference: packages/components/src/EntityList/filterBar/buttons/ToggleSortingButton.tsx:28 |
998 | - __( 'enable sorting', 'event_espresso' ), |
|
998 | + __('enable sorting', 'event_espresso'), |
|
999 | 999 | |
1000 | 1000 | // Reference: packages/components/src/Legend/ToggleLegendButton.tsx:27 |
1001 | - __( 'hide legend', 'event_espresso' ), |
|
1001 | + __('hide legend', 'event_espresso'), |
|
1002 | 1002 | |
1003 | 1003 | // Reference: packages/components/src/Legend/ToggleLegendButton.tsx:27 |
1004 | - __( 'show legend', 'event_espresso' ), |
|
1004 | + __('show legend', 'event_espresso'), |
|
1005 | 1005 | |
1006 | 1006 | // Reference: packages/components/src/LoadingNotice/LoadingNotice.tsx:12 |
1007 | - __( 'loading…', 'event_espresso' ), |
|
1007 | + __('loading…', 'event_espresso'), |
|
1008 | 1008 | |
1009 | 1009 | // Reference: packages/components/src/Modal/modalCloseButtonProps/index.ts:8 |
1010 | - __( 'close modal', 'event_espresso' ), |
|
1010 | + __('close modal', 'event_espresso'), |
|
1011 | 1011 | |
1012 | 1012 | // Reference: packages/components/src/Pagination/ItemRender.tsx:10 |
1013 | - __( 'next', 'event_espresso' ), |
|
1013 | + __('next', 'event_espresso'), |
|
1014 | 1014 | |
1015 | 1015 | // Reference: packages/components/src/Pagination/ItemRender.tsx:11 |
1016 | - __( 'jump to previous', 'event_espresso' ), |
|
1016 | + __('jump to previous', 'event_espresso'), |
|
1017 | 1017 | |
1018 | 1018 | // Reference: packages/components/src/Pagination/ItemRender.tsx:12 |
1019 | - __( 'jump to next', 'event_espresso' ), |
|
1019 | + __('jump to next', 'event_espresso'), |
|
1020 | 1020 | |
1021 | 1021 | // Reference: packages/components/src/Pagination/ItemRender.tsx:13 |
1022 | - __( 'page', 'event_espresso' ), |
|
1022 | + __('page', 'event_espresso'), |
|
1023 | 1023 | |
1024 | 1024 | // Reference: packages/components/src/Pagination/ItemRender.tsx:9 |
1025 | - __( 'previous', 'event_espresso' ), |
|
1025 | + __('previous', 'event_espresso'), |
|
1026 | 1026 | |
1027 | 1027 | // Reference: packages/components/src/Pagination/PerPage.tsx:37 |
1028 | - __( 'items per page', 'event_espresso' ), |
|
1028 | + __('items per page', 'event_espresso'), |
|
1029 | 1029 | |
1030 | 1030 | // Reference: packages/components/src/Pagination/constants.ts:10 |
1031 | 1031 | /* translators: %s is per page value */ |
1032 | - __( '%s / page', 'event_espresso' ), |
|
1032 | + __('%s / page', 'event_espresso'), |
|
1033 | 1033 | |
1034 | 1034 | // Reference: packages/components/src/Pagination/constants.ts:13 |
1035 | - __( 'Next Page', 'event_espresso' ), |
|
1035 | + __('Next Page', 'event_espresso'), |
|
1036 | 1036 | |
1037 | 1037 | // Reference: packages/components/src/Pagination/constants.ts:14 |
1038 | - __( 'Previous Page', 'event_espresso' ), |
|
1038 | + __('Previous Page', 'event_espresso'), |
|
1039 | 1039 | |
1040 | 1040 | // Reference: packages/components/src/PercentSign/index.tsx:11 |
1041 | - __( '%', 'event_espresso' ), |
|
1041 | + __('%', 'event_espresso'), |
|
1042 | 1042 | |
1043 | 1043 | // Reference: packages/components/src/Stepper/buttons/Next.tsx:12 |
1044 | - __( 'Next', 'event_espresso' ), |
|
1044 | + __('Next', 'event_espresso'), |
|
1045 | 1045 | |
1046 | 1046 | // Reference: packages/components/src/Stepper/buttons/Previous.tsx:12 |
1047 | - __( 'Previous', 'event_espresso' ), |
|
1047 | + __('Previous', 'event_espresso'), |
|
1048 | 1048 | |
1049 | 1049 | // Reference: packages/components/src/Steps/Steps.tsx:30 |
1050 | - __( 'Steps', 'event_espresso' ), |
|
1050 | + __('Steps', 'event_espresso'), |
|
1051 | 1051 | |
1052 | 1052 | // Reference: packages/components/src/TabbableText/index.tsx:19 |
1053 | - __( 'Click to edit…', 'event_espresso' ), |
|
1053 | + __('Click to edit…', 'event_espresso'), |
|
1054 | 1054 | |
1055 | 1055 | // Reference: packages/components/src/TimezoneTimeInfo/Content.tsx:16 |
1056 | - __( 'Your Local Time Zone', 'event_espresso' ), |
|
1056 | + __('Your Local Time Zone', 'event_espresso'), |
|
1057 | 1057 | |
1058 | 1058 | // Reference: packages/components/src/TimezoneTimeInfo/Content.tsx:21 |
1059 | - __( 'The Website\'s Time Zone', 'event_espresso' ), |
|
1059 | + __('The Website\'s Time Zone', 'event_espresso'), |
|
1060 | 1060 | |
1061 | 1061 | // Reference: packages/components/src/TimezoneTimeInfo/Content.tsx:26 |
1062 | - __( 'UTC (Greenwich Mean Time)', 'event_espresso' ), |
|
1062 | + __('UTC (Greenwich Mean Time)', 'event_espresso'), |
|
1063 | 1063 | |
1064 | 1064 | // Reference: packages/components/src/TimezoneTimeInfo/TimezoneTimeInfo.tsx:22 |
1065 | - __( 'This Date Converted To:', 'event_espresso' ), |
|
1065 | + __('This Date Converted To:', 'event_espresso'), |
|
1066 | 1066 | |
1067 | 1067 | // Reference: packages/components/src/TimezoneTimeInfo/TimezoneTimeInfo.tsx:23 |
1068 | - __( 'click for timezone information', 'event_espresso' ), |
|
1068 | + __('click for timezone information', 'event_espresso'), |
|
1069 | 1069 | |
1070 | 1070 | // Reference: packages/components/src/bulkEdit/ActionCheckbox.tsx:38 |
1071 | 1071 | /* translators: %d entity id */ |
1072 | - __( 'select entity with id %d', 'event_espresso' ), |
|
1072 | + __('select entity with id %d', 'event_espresso'), |
|
1073 | 1073 | |
1074 | 1074 | // Reference: packages/components/src/bulkEdit/ActionCheckbox.tsx:41 |
1075 | - __( 'select all entities', 'event_espresso' ), |
|
1075 | + __('select all entities', 'event_espresso'), |
|
1076 | 1076 | |
1077 | 1077 | // Reference: packages/components/src/bulkEdit/BulkActions.tsx:52 |
1078 | - __( 'select all', 'event_espresso' ), |
|
1078 | + __('select all', 'event_espresso'), |
|
1079 | 1079 | |
1080 | 1080 | // Reference: packages/components/src/bulkEdit/BulkActions.tsx:54 |
1081 | - __( 'apply', 'event_espresso' ), |
|
1081 | + __('apply', 'event_espresso'), |
|
1082 | 1082 | |
1083 | 1083 | // Reference: packages/components/src/bulkEdit/details/BulkEditDetailsProps.tsx:20 |
1084 | - __( 'Note: ', 'event_espresso' ), |
|
1084 | + __('Note: ', 'event_espresso'), |
|
1085 | 1085 | |
1086 | 1086 | // Reference: packages/components/src/bulkEdit/details/BulkEditDetailsProps.tsx:20 |
1087 | - __( 'any changes will be applied to ALL of the selected entities.', 'event_espresso' ), |
|
1087 | + __('any changes will be applied to ALL of the selected entities.', 'event_espresso'), |
|
1088 | 1088 | |
1089 | 1089 | // Reference: packages/components/src/bulkEdit/details/BulkEditDetailsProps.tsx:26 |
1090 | - __( 'Bulk edit details', 'event_espresso' ), |
|
1090 | + __('Bulk edit details', 'event_espresso'), |
|
1091 | 1091 | |
1092 | 1092 | // Reference: packages/components/src/bulkEdit/details/Submit.tsx:28 |
1093 | - __( 'Are you sure you want to bulk update the details?', 'event_espresso' ), |
|
1093 | + __('Are you sure you want to bulk update the details?', 'event_espresso'), |
|
1094 | 1094 | |
1095 | 1095 | // Reference: packages/components/src/bulkEdit/details/Submit.tsx:29 |
1096 | - __( 'Bulk update details', 'event_espresso' ), |
|
1096 | + __('Bulk update details', 'event_espresso'), |
|
1097 | 1097 | |
1098 | 1098 | // Reference: packages/dates/src/DateRangePicker/DateRangePickerLegend.tsx:14 |
1099 | - __( 'day in range', 'event_espresso' ), |
|
1099 | + __('day in range', 'event_espresso'), |
|
1100 | 1100 | |
1101 | 1101 | // Reference: packages/dates/src/DateRangePicker/DateRangePickerLegend.tsx:18 |
1102 | 1102 | // Reference: packages/dates/src/DateRangePicker/index.tsx:60 |
1103 | - __( 'end date', 'event_espresso' ), |
|
1103 | + __('end date', 'event_espresso'), |
|
1104 | 1104 | |
1105 | 1105 | // Reference: packages/dates/src/DateTimePicker.tsx:13 |
1106 | 1106 | // Reference: packages/dates/src/TimePicker.tsx:14 |
1107 | - __( 'time', 'event_espresso' ), |
|
1107 | + __('time', 'event_espresso'), |
|
1108 | 1108 | |
1109 | 1109 | // Reference: packages/dates/src/constants.ts:5 |
1110 | - __( 'End Date & Time must be set later than the Start Date & Time', 'event_espresso' ), |
|
1110 | + __('End Date & Time must be set later than the Start Date & Time', 'event_espresso'), |
|
1111 | 1111 | |
1112 | 1112 | // Reference: packages/dates/src/constants.ts:7 |
1113 | - __( 'Start Date & Time must be set before the End Date & Time', 'event_espresso' ), |
|
1113 | + __('Start Date & Time must be set before the End Date & Time', 'event_espresso'), |
|
1114 | 1114 | |
1115 | 1115 | // Reference: packages/dates/src/utils/misc.ts:14 |
1116 | - __( 'month(s)', 'event_espresso' ), |
|
1116 | + __('month(s)', 'event_espresso'), |
|
1117 | 1117 | |
1118 | 1118 | // Reference: packages/dates/src/utils/misc.ts:15 |
1119 | - __( 'week(s)', 'event_espresso' ), |
|
1119 | + __('week(s)', 'event_espresso'), |
|
1120 | 1120 | |
1121 | 1121 | // Reference: packages/dates/src/utils/misc.ts:16 |
1122 | - __( 'day(s)', 'event_espresso' ), |
|
1122 | + __('day(s)', 'event_espresso'), |
|
1123 | 1123 | |
1124 | 1124 | // Reference: packages/dates/src/utils/misc.ts:17 |
1125 | - __( 'hour(s)', 'event_espresso' ), |
|
1125 | + __('hour(s)', 'event_espresso'), |
|
1126 | 1126 | |
1127 | 1127 | // Reference: packages/dates/src/utils/misc.ts:18 |
1128 | - __( 'minute(s)', 'event_espresso' ), |
|
1128 | + __('minute(s)', 'event_espresso'), |
|
1129 | 1129 | |
1130 | 1130 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:104 |
1131 | - __( 'price types initialized', 'event_espresso' ), |
|
1131 | + __('price types initialized', 'event_espresso'), |
|
1132 | 1132 | |
1133 | 1133 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:114 |
1134 | - __( 'datetimes initialized', 'event_espresso' ), |
|
1134 | + __('datetimes initialized', 'event_espresso'), |
|
1135 | 1135 | |
1136 | 1136 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:124 |
1137 | - __( 'tickets initialized', 'event_espresso' ), |
|
1137 | + __('tickets initialized', 'event_espresso'), |
|
1138 | 1138 | |
1139 | 1139 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:134 |
1140 | - __( 'prices initialized', 'event_espresso' ), |
|
1140 | + __('prices initialized', 'event_espresso'), |
|
1141 | 1141 | |
1142 | 1142 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:22 |
1143 | - __( 'End date has been set one hour after start date', 'event_espresso' ), |
|
1143 | + __('End date has been set one hour after start date', 'event_espresso'), |
|
1144 | 1144 | |
1145 | 1145 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:35 |
1146 | - __( 'Start date has been set one hour before end date', 'event_espresso' ), |
|
1146 | + __('Start date has been set one hour before end date', 'event_espresso'), |
|
1147 | 1147 | |
1148 | 1148 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:47 |
1149 | - __( 'Required', 'event_espresso' ), |
|
1149 | + __('Required', 'event_espresso'), |
|
1150 | 1150 | |
1151 | 1151 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:52 |
1152 | - __( 'Start Date is required', 'event_espresso' ), |
|
1152 | + __('Start Date is required', 'event_espresso'), |
|
1153 | 1153 | |
1154 | 1154 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:56 |
1155 | - __( 'End Date is required', 'event_espresso' ), |
|
1155 | + __('End Date is required', 'event_espresso'), |
|
1156 | 1156 | |
1157 | 1157 | // Reference: packages/form/src/renderers/RepeatableRenderer.tsx:35 |
1158 | 1158 | /* translators: %d the entry number */ |
1159 | - __( 'Entry %d', 'event_espresso' ), |
|
1159 | + __('Entry %d', 'event_espresso'), |
|
1160 | 1160 | |
1161 | 1161 | // Reference: packages/form/src/renderers/RepeatableRenderer.tsx:51 |
1162 | - __( 'Add', 'event_espresso' ), |
|
1162 | + __('Add', 'event_espresso'), |
|
1163 | 1163 | |
1164 | 1164 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:11 |
1165 | 1165 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:17 |
1166 | - __( 'sold out', 'event_espresso' ), |
|
1166 | + __('sold out', 'event_espresso'), |
|
1167 | 1167 | |
1168 | 1168 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:14 |
1169 | 1169 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:14 |
1170 | - __( 'expired', 'event_espresso' ), |
|
1170 | + __('expired', 'event_espresso'), |
|
1171 | 1171 | |
1172 | 1172 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:17 |
1173 | - __( 'upcoming', 'event_espresso' ), |
|
1173 | + __('upcoming', 'event_espresso'), |
|
1174 | 1174 | |
1175 | 1175 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:20 |
1176 | - __( 'active', 'event_espresso' ), |
|
1176 | + __('active', 'event_espresso'), |
|
1177 | 1177 | |
1178 | 1178 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:23 |
1179 | 1179 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:11 |
1180 | - __( 'trashed', 'event_espresso' ), |
|
1180 | + __('trashed', 'event_espresso'), |
|
1181 | 1181 | |
1182 | 1182 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:26 |
1183 | - __( 'cancelled', 'event_espresso' ), |
|
1183 | + __('cancelled', 'event_espresso'), |
|
1184 | 1184 | |
1185 | 1185 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:29 |
1186 | - __( 'postponed', 'event_espresso' ), |
|
1186 | + __('postponed', 'event_espresso'), |
|
1187 | 1187 | |
1188 | 1188 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:33 |
1189 | - __( 'inactive', 'event_espresso' ), |
|
1189 | + __('inactive', 'event_espresso'), |
|
1190 | 1190 | |
1191 | 1191 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:20 |
1192 | - __( 'pending', 'event_espresso' ), |
|
1192 | + __('pending', 'event_espresso'), |
|
1193 | 1193 | |
1194 | 1194 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:23 |
1195 | - __( 'on sale', 'event_espresso' ), |
|
1195 | + __('on sale', 'event_espresso'), |
|
1196 | 1196 | |
1197 | 1197 | // Reference: packages/predicates/src/registration/statusOptions.ts:10 |
1198 | - __( 'Cancelled', 'event_espresso' ), |
|
1198 | + __('Cancelled', 'event_espresso'), |
|
1199 | 1199 | |
1200 | 1200 | // Reference: packages/predicates/src/registration/statusOptions.ts:14 |
1201 | - __( 'Declined', 'event_espresso' ), |
|
1201 | + __('Declined', 'event_espresso'), |
|
1202 | 1202 | |
1203 | 1203 | // Reference: packages/predicates/src/registration/statusOptions.ts:18 |
1204 | - __( 'Incomplete', 'event_espresso' ), |
|
1204 | + __('Incomplete', 'event_espresso'), |
|
1205 | 1205 | |
1206 | 1206 | // Reference: packages/predicates/src/registration/statusOptions.ts:22 |
1207 | - __( 'Not Approved', 'event_espresso' ), |
|
1207 | + __('Not Approved', 'event_espresso'), |
|
1208 | 1208 | |
1209 | 1209 | // Reference: packages/predicates/src/registration/statusOptions.ts:26 |
1210 | - __( 'Pending Payment', 'event_espresso' ), |
|
1210 | + __('Pending Payment', 'event_espresso'), |
|
1211 | 1211 | |
1212 | 1212 | // Reference: packages/predicates/src/registration/statusOptions.ts:30 |
1213 | - __( 'Wait List', 'event_espresso' ), |
|
1213 | + __('Wait List', 'event_espresso'), |
|
1214 | 1214 | |
1215 | 1215 | // Reference: packages/predicates/src/registration/statusOptions.ts:6 |
1216 | - __( 'Approved', 'event_espresso' ), |
|
1216 | + __('Approved', 'event_espresso'), |
|
1217 | 1217 | |
1218 | 1218 | // Reference: packages/tpc/src/buttons/AddPriceModifierButton.tsx:15 |
1219 | - __( 'add new price modifier after this row', 'event_espresso' ), |
|
1219 | + __('add new price modifier after this row', 'event_espresso'), |
|
1220 | 1220 | |
1221 | 1221 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:13 |
1222 | - __( 'Delete all prices', 'event_espresso' ), |
|
1222 | + __('Delete all prices', 'event_espresso'), |
|
1223 | 1223 | |
1224 | 1224 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:26 |
1225 | - __( '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' ), |
|
1225 | + __('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'), |
|
1226 | 1226 | |
1227 | 1227 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:30 |
1228 | - __( 'Delete all prices?', 'event_espresso' ), |
|
1228 | + __('Delete all prices?', 'event_espresso'), |
|
1229 | 1229 | |
1230 | 1230 | // Reference: packages/tpc/src/buttons/DeletePriceModifierButton.tsx:12 |
1231 | - __( 'delete price modifier', 'event_espresso' ), |
|
1231 | + __('delete price modifier', 'event_espresso'), |
|
1232 | 1232 | |
1233 | 1233 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:15 |
1234 | - __( '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' ), |
|
1234 | + __('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'), |
|
1235 | 1235 | |
1236 | 1236 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:18 |
1237 | - __( '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' ), |
|
1237 | + __('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'), |
|
1238 | 1238 | |
1239 | 1239 | // Reference: packages/tpc/src/buttons/TicketPriceCalculatorButton.tsx:29 |
1240 | - __( 'ticket price calculator', 'event_espresso' ), |
|
1240 | + __('ticket price calculator', 'event_espresso'), |
|
1241 | 1241 | |
1242 | 1242 | // Reference: packages/tpc/src/buttons/taxes/AddDefaultTaxesButton.tsx:10 |
1243 | - __( 'Add default taxes', 'event_espresso' ), |
|
1243 | + __('Add default taxes', 'event_espresso'), |
|
1244 | 1244 | |
1245 | 1245 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:11 |
1246 | - __( 'Are you sure you want to remove all of this ticket\'s taxes?', 'event_espresso' ), |
|
1246 | + __('Are you sure you want to remove all of this ticket\'s taxes?', 'event_espresso'), |
|
1247 | 1247 | |
1248 | 1248 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:15 |
1249 | - __( 'Remove all taxes?', 'event_espresso' ), |
|
1249 | + __('Remove all taxes?', 'event_espresso'), |
|
1250 | 1250 | |
1251 | 1251 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:8 |
1252 | - __( 'Remove taxes', 'event_espresso' ), |
|
1252 | + __('Remove taxes', 'event_espresso'), |
|
1253 | 1253 | |
1254 | 1254 | // Reference: packages/tpc/src/components/DefaultPricesInfo.tsx:28 |
1255 | - __( 'Modify default prices.', 'event_espresso' ), |
|
1255 | + __('Modify default prices.', 'event_espresso'), |
|
1256 | 1256 | |
1257 | 1257 | // Reference: packages/tpc/src/components/DefaultTaxesInfo.tsx:28 |
1258 | - __( 'New default taxes are available. Click the - Add default taxes - button to add them now.', 'event_espresso' ), |
|
1258 | + __('New default taxes are available. Click the - Add default taxes - button to add them now.', 'event_espresso'), |
|
1259 | 1259 | |
1260 | 1260 | // Reference: packages/tpc/src/components/NoPricesBanner/AddDefaultPricesButton.tsx:10 |
1261 | - __( 'Add default prices', 'event_espresso' ), |
|
1261 | + __('Add default prices', 'event_espresso'), |
|
1262 | 1262 | |
1263 | 1263 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:14 |
1264 | - __( 'This Ticket is Currently Free', 'event_espresso' ), |
|
1264 | + __('This Ticket is Currently Free', 'event_espresso'), |
|
1265 | 1265 | |
1266 | 1266 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:22 |
1267 | 1267 | /* translators: %s default prices */ |
1268 | - __( 'Click the button below to load your %s into the calculator.', 'event_espresso' ), |
|
1268 | + __('Click the button below to load your %s into the calculator.', 'event_espresso'), |
|
1269 | 1269 | |
1270 | 1270 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:23 |
1271 | - __( 'default prices', 'event_espresso' ), |
|
1271 | + __('default prices', 'event_espresso'), |
|
1272 | 1272 | |
1273 | 1273 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:30 |
1274 | - __( 'Additional ticket price modifiers can be added or removed.', 'event_espresso' ), |
|
1274 | + __('Additional ticket price modifiers can be added or removed.', 'event_espresso'), |
|
1275 | 1275 | |
1276 | 1276 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:33 |
1277 | - __( 'Click the save button below to assign which dates this ticket will be available for purchase on.', 'event_espresso' ), |
|
1277 | + __('Click the save button below to assign which dates this ticket will be available for purchase on.', 'event_espresso'), |
|
1278 | 1278 | |
1279 | 1279 | // Reference: packages/tpc/src/components/TicketPriceCalculatorModal.tsx:32 |
1280 | 1280 | /* translators: %s ticket name */ |
1281 | - __( 'Price Calculator for Ticket: %s', 'event_espresso' ), |
|
1281 | + __('Price Calculator for Ticket: %s', 'event_espresso'), |
|
1282 | 1282 | |
1283 | 1283 | // Reference: packages/tpc/src/components/table/Table.tsx:43 |
1284 | - __( 'Ticket Price Calculator', 'event_espresso' ), |
|
1284 | + __('Ticket Price Calculator', 'event_espresso'), |
|
1285 | 1285 | |
1286 | 1286 | // Reference: packages/tpc/src/components/table/useFooterRowGenerator.tsx:41 |
1287 | - __( 'Total', 'event_espresso' ), |
|
1287 | + __('Total', 'event_espresso'), |
|
1288 | 1288 | |
1289 | 1289 | // Reference: packages/tpc/src/components/table/useFooterRowGenerator.tsx:50 |
1290 | - __( 'ticket total', 'event_espresso' ), |
|
1290 | + __('ticket total', 'event_espresso'), |
|
1291 | 1291 | |
1292 | 1292 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:29 |
1293 | - __( 'Price Type', 'event_espresso' ), |
|
1293 | + __('Price Type', 'event_espresso'), |
|
1294 | 1294 | |
1295 | 1295 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:35 |
1296 | - __( 'Label', 'event_espresso' ), |
|
1296 | + __('Label', 'event_espresso'), |
|
1297 | 1297 | |
1298 | 1298 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:47 |
1299 | - __( 'Amount', 'event_espresso' ), |
|
1299 | + __('Amount', 'event_espresso'), |
|
1300 | 1300 | |
1301 | 1301 | // Reference: packages/tpc/src/inputs/PriceAmountInput.tsx:33 |
1302 | - __( 'amount', 'event_espresso' ), |
|
1302 | + __('amount', 'event_espresso'), |
|
1303 | 1303 | |
1304 | 1304 | // Reference: packages/tpc/src/inputs/PriceAmountInput.tsx:44 |
1305 | - __( 'amount…', 'event_espresso' ), |
|
1305 | + __('amount…', 'event_espresso'), |
|
1306 | 1306 | |
1307 | 1307 | // Reference: packages/tpc/src/inputs/PriceDescriptionInput.tsx:10 |
1308 | - __( 'price description', 'event_espresso' ), |
|
1308 | + __('price description', 'event_espresso'), |
|
1309 | 1309 | |
1310 | 1310 | // Reference: packages/tpc/src/inputs/PriceDescriptionInput.tsx:15 |
1311 | - __( 'description…', 'event_espresso' ), |
|
1311 | + __('description…', 'event_espresso'), |
|
1312 | 1312 | |
1313 | 1313 | // Reference: packages/tpc/src/inputs/PriceIdInput.tsx:9 |
1314 | - __( 'price id', 'event_espresso' ), |
|
1314 | + __('price id', 'event_espresso'), |
|
1315 | 1315 | |
1316 | 1316 | // Reference: packages/tpc/src/inputs/PriceNameInput.tsx:10 |
1317 | - __( 'price name', 'event_espresso' ), |
|
1317 | + __('price name', 'event_espresso'), |
|
1318 | 1318 | |
1319 | 1319 | // Reference: packages/tpc/src/inputs/PriceNameInput.tsx:15 |
1320 | - __( 'label…', 'event_espresso' ), |
|
1320 | + __('label…', 'event_espresso'), |
|
1321 | 1321 | |
1322 | 1322 | // Reference: packages/tpc/src/inputs/PriceTypeInput.tsx:16 |
1323 | - __( 'price type', 'event_espresso' ), |
|
1323 | + __('price type', 'event_espresso'), |
|
1324 | 1324 | |
1325 | 1325 | // Reference: packages/tpc/src/utils/constants.ts:13 |
1326 | - __( '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 archive the old tickets.', 'event_espresso' ) |
|
1326 | + __('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 archive the old tickets.', 'event_espresso') |
|
1327 | 1327 | ); |
1328 | 1328 | /* THIS IS THE END OF THE GENERATED FILE */ |