@@ -259,9 +259,9 @@ discard block |
||
| 259 | 259 | // Set the current step. |
| 260 | 260 | if ( ! isset( $step['current'] ) ) { |
| 261 | 261 | if ( $step['complete'] ) { |
| 262 | - $steps[ $k ]['current'] = false; |
|
| 262 | + $steps[$k]['current'] = false; |
|
| 263 | 263 | } else { |
| 264 | - $steps[ $k ]['current'] = ! $has_current; |
|
| 264 | + $steps[$k]['current'] = ! $has_current; |
|
| 265 | 265 | $has_current = true; |
| 266 | 266 | } |
| 267 | 267 | } elseif ( $step['current'] ) { |
@@ -271,10 +271,10 @@ discard block |
||
| 271 | 271 | // Set disabled buttons. |
| 272 | 272 | $class = isset( $step['button_class'] ) ? $step['button_class'] : ''; |
| 273 | 273 | $class .= 'button-primary frm-button-primary'; |
| 274 | - if ( ! $steps[ $k ]['current'] ) { |
|
| 274 | + if ( ! $steps[$k]['current'] ) { |
|
| 275 | 275 | $class .= ' grey disabled'; |
| 276 | 276 | } |
| 277 | - $steps[ $k ]['button_class'] = $class; |
|
| 277 | + $steps[$k]['button_class'] = $class; |
|
| 278 | 278 | } |
| 279 | 279 | |
| 280 | 280 | return $steps; |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | if ( $plugin['status'] === 'active' ) { |
| 297 | 297 | continue; |
| 298 | 298 | } |
| 299 | - $links[ $plugin_key ] = $plugin; |
|
| 299 | + $links[$plugin_key] = $plugin; |
|
| 300 | 300 | if ( isset( $plugin['url'] ) ) { |
| 301 | 301 | $rel[] = $plugin['url']; |
| 302 | 302 | } else { |
@@ -403,7 +403,7 @@ discard block |
||
| 403 | 403 | $addons = $api->get_api_info(); |
| 404 | 404 | |
| 405 | 405 | $id = $this->download_id(); |
| 406 | - $has_file = isset( $addons[ $id ] ) && isset( $addons[ $id ]['beta'] ); |
|
| 406 | + $has_file = isset( $addons[$id] ) && isset( $addons[$id]['beta'] ); |
|
| 407 | 407 | |
| 408 | 408 | if ( ! $step['current'] ) { |
| 409 | 409 | ?> |
@@ -418,10 +418,10 @@ discard block |
||
| 418 | 418 | |
| 419 | 419 | if ( ! $has_file ) { |
| 420 | 420 | echo '<p class="frm_error_style">' . esc_html__( 'Files not found.', 'formidable' ) . '</p>'; |
| 421 | - } elseif ( ! isset( $addons[ $id ]['beta']['package'] ) ) { |
|
| 421 | + } elseif ( ! isset( $addons[$id]['beta']['package'] ) ) { |
|
| 422 | 422 | echo '<p class="frm_error_style">' . esc_html__( 'Looks like you may not have a current subscription for this solution. Please check your account.', 'formidable' ) . '</p>'; |
| 423 | 423 | } else { |
| 424 | - $xml = $addons[ $id ]['beta']['package']; |
|
| 424 | + $xml = $addons[$id]['beta']['package']; |
|
| 425 | 425 | ?> |
| 426 | 426 | <form name="frm-new-template" id="frm-new-template" method="post" class="field-group"> |
| 427 | 427 | <input type="hidden" name="link" id="frm_link" value="<?php echo esc_attr( $xml ); ?>" /> |
@@ -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 | |