| @@ -1017,27 +1017,9 @@ | ||
| 1017 | 1017 | */ |
| 1018 | 1018 | $output = apply_filters( 'frm_saved_css', $output ); |
| 1019 | 1019 | |
| 1020 | 1020 | echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 1021 | - | |
| 1022 | - self::maybe_hide_sample_form_error_message(); | |
| 1023 | - | |
| 1024 | 1021 | wp_die(); |
| 1025 | - } | |
| 1026 | - | |
| 1027 | - /** | |
| 1028 | - * Add an extra style rule to hide a broken style warning. | |
| 1029 | - * To avoid cluttering the front end with any unecessary styles this is only added when the referer URL matches the styler. | |
| 1030 | - * | |
| 1031 | - * @since 6.2.3 | |
| 1032 | - * | |
| 1033 | - * @return void | |
| 1034 | - */ | |
| 1035 | - public static function maybe_hide_sample_form_error_message() { | |
| 1036 | - $referer = FrmAppHelper::get_server_value( 'HTTP_REFERER' ); | |
| 1037 | - if ( false !== strpos( $referer, 'admin.php?page=formidable-styles' ) ) { | |
| 1038 | - echo '#frm_broken_styles_warning { display: none; }'; | |
| 1039 | - } | |
| 1040 | 1022 | } |
| 1041 | 1023 | |
| 1042 | 1024 | /** |
| 1043 | 1025 | * Replaces relative URL with absolute URL. |