PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.2
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.2
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/controllers/FrmStylesController.php +1 -19 6.5.36.2 View file →
@@ -916,9 +916,9 @@
916 916 FrmAppHelper::permission_check( 'frm_change_settings' );
917 917 check_ajax_referer( 'frm_ajax', 'nonce' );
918 918
919 919 $frm_style = new FrmStyle();
920 - $defaults = array(); // Intentionally avoid defaults here so nothing gets removed from our style.
920 + $defaults = false; // Intentionally avoid defaults here so nothing gets removed from our style.
921 921 $style = '';
922 922
923 923 echo '<style type="text/css">';
924 924 include FrmAppHelper::plugin_path() . '/css/_single_theme.css.php';
@@ -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.