@@ -1082,7 +1082,8 @@ |
||
1082 | 1082 | private static function maybe_get_form_to_show( $id ) { |
1083 | 1083 | $form = false; |
1084 | 1084 | |
1085 | - if ( ! empty( $id ) ) { // no form id or key set |
|
1085 | + if ( ! empty( $id ) ) { |
|
1086 | +// no form id or key set |
|
1086 | 1087 | $form = FrmForm::getOne( $id ); |
1087 | 1088 | if ( ! $form || $form->parent_form_id || $form->status == 'trash' ) { |
1088 | 1089 | $form = false; |
@@ -306,7 +306,8 @@ discard block |
||
306 | 306 | |
307 | 307 | if ( isset( $version_info->new_version ) && ! empty( $version_info->new_version ) ) { |
308 | 308 | $this->clear_old_plugin_version( $version_info ); |
309 | - if ( $version_info === false ) { // was cleared with timeout |
|
309 | + if ( $version_info === false ) { |
|
310 | +// was cleared with timeout |
|
310 | 311 | $transient = false; |
311 | 312 | } else { |
312 | 313 | $this->maybe_use_beta_url( $version_info ); |
@@ -393,7 +394,8 @@ discard block |
||
393 | 394 | } |
394 | 395 | |
395 | 396 | private function is_license_revoked() { |
396 | - if ( empty( $this->license ) || empty( $this->plugin_slug ) || isset( $_POST['license'] ) ) { // WPCS: CSRF ok. |
|
397 | + if ( empty( $this->license ) || empty( $this->plugin_slug ) || isset( $_POST['license'] ) ) { |
|
398 | +// WPCS: CSRF ok. |
|
397 | 399 | return; |
398 | 400 | } |
399 | 401 |
@@ -297,11 +297,13 @@ |
||
297 | 297 | |
298 | 298 | global $frm_edd_plugin_data; |
299 | 299 | |
300 | - if ( empty( $_REQUEST['edd_sl_action'] ) || 'view_plugin_changelog' !== $_REQUEST['edd_sl_action'] ) { // WPCS: CSRF ok. |
|
300 | + if ( empty( $_REQUEST['edd_sl_action'] ) || 'view_plugin_changelog' !== $_REQUEST['edd_sl_action'] ) { |
|
301 | +// WPCS: CSRF ok. |
|
301 | 302 | return; |
302 | 303 | } |
303 | 304 | |
304 | - if ( empty( $_REQUEST['plugin'] ) || empty( $_REQUEST['slug'] ) ) { // WPCS: CSRF ok. |
|
305 | + if ( empty( $_REQUEST['plugin'] ) || empty( $_REQUEST['slug'] ) ) { |
|
306 | +// WPCS: CSRF ok. |
|
305 | 307 | return; |
306 | 308 | } |
307 | 309 |
@@ -56,7 +56,8 @@ discard block |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | private function translate_settings( $settings ) { |
59 | - if ( $settings ) { //workaround for W3 total cache conflict |
|
59 | + if ( $settings ) { |
|
60 | +//workaround for W3 total cache conflict |
|
60 | 61 | return unserialize( serialize( $settings ) ); |
61 | 62 | } |
62 | 63 | |
@@ -68,7 +69,8 @@ discard block |
||
68 | 69 | } |
69 | 70 | |
70 | 71 | // If unserializing didn't work |
71 | - if ( $settings ) { //workaround for W3 total cache conflict |
|
72 | + if ( $settings ) { |
|
73 | +//workaround for W3 total cache conflict |
|
72 | 74 | $settings = unserialize( serialize( $settings ) ); |
73 | 75 | } else { |
74 | 76 | $settings = $this; |
@@ -90,7 +90,8 @@ |
||
90 | 90 | |
91 | 91 | if ( $posted_field->required == '1' && FrmAppHelper::is_empty_value( $value ) ) { |
92 | 92 | $errors[ 'field' . $args['id'] ] = FrmFieldsHelper::get_error_msg( $posted_field, 'blank' ); |
93 | - } elseif ( $posted_field->type == 'text' && ! isset( $_POST['item_name'] ) ) { // WPCS: CSRF ok. |
|
93 | + } elseif ( $posted_field->type == 'text' && ! isset( $_POST['item_name'] ) ) { |
|
94 | +// WPCS: CSRF ok. |
|
94 | 95 | $_POST['item_name'] = $value; |
95 | 96 | } |
96 | 97 |
@@ -125,7 +125,8 @@ |
||
125 | 125 | } |
126 | 126 | |
127 | 127 | // Only do this for single site installs. |
128 | - if ( isset( $_GET['activate-multi'] ) || is_network_admin() ) { // WPCS: CSRF ok. |
|
128 | + if ( isset( $_GET['activate-multi'] ) || is_network_admin() ) { |
|
129 | +// WPCS: CSRF ok. |
|
129 | 130 | return; |
130 | 131 | } |
131 | 132 |
@@ -78,7 +78,8 @@ |
||
78 | 78 | |
79 | 79 | if ( ! isset( $imported['form_status'] ) || empty( $imported['form_status'] ) ) { |
80 | 80 | // Check for an error message in the XML. |
81 | - if ( isset( $xml->Code ) && isset( $xml->Message ) ) { // phpcs:ignore WordPress.NamingConventions |
|
81 | + if ( isset( $xml->Code ) && isset( $xml->Message ) ) { |
|
82 | +// phpcs:ignore WordPress.NamingConventions |
|
82 | 83 | $imported['error'] = reset( $xml->Message ); // phpcs:ignore WordPress.NamingConventions |
83 | 84 | } |
84 | 85 | } |
@@ -125,7 +125,8 @@ |
||
125 | 125 | } |
126 | 126 | |
127 | 127 | // Only do this for single site installs. |
128 | - if ( isset( $_GET['activate-multi'] ) || is_network_admin() ) { // WPCS: CSRF ok. |
|
128 | + if ( isset( $_GET['activate-multi'] ) || is_network_admin() ) { |
|
129 | +// WPCS: CSRF ok. |
|
129 | 130 | return; |
130 | 131 | } |
131 | 132 |
@@ -39,7 +39,8 @@ |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | foreach ( $sub_field['options'] as $option ) { |
42 | - if ( 'default_value' === $option ) { // We parse default value from field column. |
|
42 | + if ( 'default_value' === $option ) { |
|
43 | +// We parse default value from field column. |
|
43 | 44 | continue; |
44 | 45 | } |
45 | 46 |