@@ 258-268 (lines=11) @@ | ||
255 | * @throws Exception |
|
256 | * @since $VID:$ |
|
257 | */ |
|
258 | public function handleSessionRequest() |
|
259 | { |
|
260 | try { |
|
261 | if (! $this->request->isAdmin() && ! $this->request->isEeAjax() && ! $this->request->isFrontend()) { |
|
262 | return; |
|
263 | } |
|
264 | $this->loader->getShared('EE_Session'); |
|
265 | } catch (Exception $exception) { |
|
266 | new ExceptionStackTraceDisplay($exception); |
|
267 | } |
|
268 | } |
|
269 | ||
270 | ||
271 | /** |
|
@@ 275-292 (lines=18) @@ | ||
272 | * @throws Exception |
|
273 | * @since $VID:$ |
|
274 | */ |
|
275 | public function handleShortcodesRequest() |
|
276 | { |
|
277 | try { |
|
278 | if (! $this->request->isFrontend() && ! $this->request->isIframe() && ! $this->request->isAjax()) { |
|
279 | return; |
|
280 | } |
|
281 | // load, register, and add shortcodes the new way |
|
282 | $this->loader->getShared( |
|
283 | 'EventEspresso\core\services\shortcodes\ShortcodesManager', |
|
284 | [ |
|
285 | // and the old way, but we'll put it under control of the new system |
|
286 | EE_Config::getLegacyShortcodesManager(), |
|
287 | ] |
|
288 | ); |
|
289 | } catch (Exception $exception) { |
|
290 | new ExceptionStackTraceDisplay($exception); |
|
291 | } |
|
292 | } |
|
293 | ||
294 | ||
295 | /** |