PluginProbe
404 Solution / trunk
404 Solution vtrunk
4.3.5 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.2.0 4.1.19 4.1.18 4.1.17 4.1.16 4.1.15 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.1.7 4.1.6 4.1.5 4.1.4 4.1.3 trunk 2.30.0 All 109 releases
404-solution / includes / frontend / FrontendRuntimeOptions.php

FrontendRuntimeOptions.php in 404 Solution trunk, at includes/frontend/FrontendRuntimeOptions.php

21 lines 464 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if (!defined('ABSPATH')) {
4 exit;
5 }
6
7 /**
8 * Reads frontend runtime options and normalizes malformed provider responses.
9 */
10 class ABJ_404_Solution_FrontendRuntimeOptions {
11
12 /**
13 * @param bool $skipDbCheck
14 * @return array<string, mixed>
15 */
16 function get(bool $skipDbCheck = false): array {
17 $options = abj_service('options_repository')->getOptions($skipDbCheck);
18 return is_array($options) ? $options : array();
19 }
20 }
21