PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.0
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.0
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 +3 -8 6.275.0 View file →
@@ -1,9 +1,8 @@
1 1 <?php
2 2 /**
3 3 * @since 3.04.02
4 4 *
5 - * @package Formidable
6 5 * @subpackage Upgrader Skin
7 6 */
8 7
9 8 // Exit if accessed directly
@@ -23,10 +22,8 @@
23 22 *
24 23 * @since 3.04.02
25 24 *
26 25 * @param object $upgrader The upgrader object (passed by reference).
27 - *
28 - * @return void
29 26 */
30 27 public function set_upgrader( &$upgrader ) {
31 28 if ( is_object( $upgrader ) ) {
32 29 $this->upgrader =& $upgrader;
@@ -38,10 +35,8 @@
38 35 *
39 36 * @since 3.04.02
40 37 *
41 38 * @param object $result The result of the install process.
42 - *
43 - * @return void
44 39 */
45 40 public function set_result( $result ) {
46 41 $this->result = $result;
47 42 }
@@ -66,12 +61,12 @@
66 61 * back to the Ajax script for processing.
67 62 *
68 63 * @since 3.04.02
69 64 *
70 - * @param string|\WP_Error $errors The WP Error object of errors with the install process.
65 + * @param string|object $errors The WP Error object of errors with the install process.
71 66 */
72 67 public function error( $errors ) {
73 - if ( $errors ) {
68 + if ( ! empty( $errors ) ) {
74 69 if ( ! is_string( $errors ) ) {
75 70 $error = $errors->get_error_message();
76 71 $message = $errors->get_error_data();
77 72 $errors = $error . ' ' . $message;
@@ -82,9 +77,8 @@
82 77 'message' => $errors,
83 78 'success' => false,
84 79 )
85 80 );
86 -
87 81 if ( wp_doing_ajax() ) {
88 82 wp_die();
89 83 } else {
90 84 die();
@@ -101,5 +95,6 @@
101 95 * @param string $string The feedback string.
102 96 * @param mixed ...$args Optional text replacements.
103 97 */
104 98 public function feedback( $string, ...$args ) {}
99 +
105 100 }