PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 3.06.06
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v3.06.06
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/models/FrmInstallerSkin.php +4 -20 6.5.33.06.06 View file →
@@ -61,29 +61,14 @@
61 61 * back to the Ajax script for processing.
62 62 *
63 63 * @since 3.04.02
64 64 *
65 - * @param string|object $errors The WP Error object of errors with the install process.
65 + * @param array $errors Array of errors with the install process.
66 66 */
67 67 public function error( $errors ) {
68 68 if ( ! empty( $errors ) ) {
69 - if ( ! is_string( $errors ) ) {
70 - $error = $errors->get_error_message();
71 - $message = $errors->get_error_data();
72 - $errors = $error . ' ' . $message;
73 - }
74 - echo json_encode(
75 - array(
76 - 'error' => $errors,
77 - 'message' => $errors,
78 - 'success' => false,
79 - )
80 - );
81 - if ( wp_doing_ajax() ) {
82 - wp_die();
83 - } else {
84 - die();
85 - }
69 + echo json_encode( array( 'error' => $errors->get_error_message() ) );
70 + wp_die();
86 71 }
87 72 }
88 73
89 74 /**
@@ -92,9 +77,8 @@
92 77 *
93 78 * @since 3.04.02
94 79 *
95 80 * @param string $string The feedback string.
96 - * @param mixed ...$args Optional text replacements.
97 81 */
98 - public function feedback( $string, ...$args ) {}
82 + public function feedback( $string ) {}
99 83
100 84 }