| @@ -824,11 +824,10 @@ | ||
| 824 | 824 | if (array_key_exists($theme, $presets)) { |
| 825 | 825 | return $presets[$theme]; |
| 826 | 826 | } |
| 827 | 827 | |
| 828 | - // specific preset not found (Pro-only/custom theme saved while Pro add-on inactive). | |
| 829 | - // Fall back to base preset so core CSS vars (--adminify-menu-width) always emit. | |
| 830 | - return isset($presets['preset1']) ? $presets['preset1'] : $common_var; | |
| 828 | + // specific preset not found | |
| 829 | + return []; | |
| 831 | 830 | } |
| 832 | 831 | |
| 833 | 832 | public static function get_page_templates($type = '') |
| 834 | 833 | { |
| @@ -869,41 +868,8 @@ | ||
| 869 | 868 | |
| 870 | 869 | public static function kses_atts_map(array $attrs) |
| 871 | 870 | { |
| 872 | 871 | return array_fill_keys(array_values($attrs), true); |
| 873 | - } | |
| 874 | - | |
| 875 | - /** | |
| 876 | - * Whether the site is served over HTTPS well enough to run the Adminify UI. | |
| 877 | - * | |
| 878 | - * Mirrors the exact condition that gates the dashboard frame in | |
| 879 | - * Inc/Admin/Admin.php ( is_ssl() + an https:// site URL ), so the AJAX | |
| 880 | - * gate behaviour stays consistent with where the UI actually loads. | |
| 881 | - * | |
| 882 | - * @return array{ready:bool,message:string} | |
| 883 | - */ | |
| 884 | - public static function adminify_ui_https_status() | |
| 885 | - { | |
| 886 | - $is_ssl = is_ssl(); | |
| 887 | - $site_https = ( 0 === stripos( (string) site_url(), 'https://' ) ); | |
| 888 | - | |
| 889 | - if ( $is_ssl && $site_https ) { | |
| 890 | - return [ | |
| 891 | - 'ready' => true, | |
| 892 | - 'message' => '', | |
| 893 | - ]; | |
| 894 | - } | |
| 895 | - | |
| 896 | - if ( ! $site_https ) { | |
| 897 | - $message = esc_html__( 'Site URL is not HTTPS. Switch to HTTPS first.', 'adminify' ); | |
| 898 | - } else { | |
| 899 | - $message = esc_html__( 'Open the dashboard over HTTPS first.', 'adminify' ); | |
| 900 | - } | |
| 901 | - | |
| 902 | - return [ | |
| 903 | - 'ready' => false, | |
| 904 | - 'message' => $message, | |
| 905 | - ]; | |
| 906 | 872 | } |
| 907 | 873 | |
| 908 | 874 | public static function kses_allowed_html() |
| 909 | 875 | { |