Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-conte.../plugins/wpforms-.../src/Admin/Pages
File: Analytics.php
[500] Fix | Delete
case 'pro':
[501] Fix | Delete
$addon_installed = array_key_exists( $this->config['forms_addon'], $this->output_data['all_plugins'] );
[502] Fix | Delete
$step['button_text'] = $addon_installed ? esc_html__( 'Activate Now', 'wpforms-lite' ) : esc_html__( 'Install Now', 'wpforms-lite' );
[503] Fix | Delete
$step['button_url'] = admin_url( $this->config['mi_addons'] );
[504] Fix | Delete
$step['button_class'] = $this->output_data['plugin_setup'] ? 'button-primary' : 'grey';
[505] Fix | Delete
break;
[506] Fix | Delete
}
[507] Fix | Delete
[508] Fix | Delete
return $step;
[509] Fix | Delete
}
[510] Fix | Delete
[511] Fix | Delete
/**
[512] Fix | Delete
* Ajax endpoint. Check plugin setup status.
[513] Fix | Delete
* Used to properly init step 2 section after completing step 1.
[514] Fix | Delete
*
[515] Fix | Delete
* @since 1.5.7
[516] Fix | Delete
*
[517] Fix | Delete
* @noinspection PhpUndefinedFunctionInspection
[518] Fix | Delete
*/
[519] Fix | Delete
public function ajax_check_plugin_status() {
[520] Fix | Delete
[521] Fix | Delete
// Security checks.
[522] Fix | Delete
if (
[523] Fix | Delete
! check_ajax_referer( 'wpforms-admin', 'nonce', false ) ||
[524] Fix | Delete
! wpforms_current_user_can()
[525] Fix | Delete
) {
[526] Fix | Delete
wp_send_json_error(
[527] Fix | Delete
[
[528] Fix | Delete
'error' => esc_html__( 'You do not have permission.', 'wpforms-lite' ),
[529] Fix | Delete
]
[530] Fix | Delete
);
[531] Fix | Delete
}
[532] Fix | Delete
[533] Fix | Delete
$result = [];
[534] Fix | Delete
[535] Fix | Delete
if ( ! function_exists( 'MonsterInsights' ) || ! function_exists( 'monsterinsights_get_ua' ) ) {
[536] Fix | Delete
wp_send_json_error(
[537] Fix | Delete
[
[538] Fix | Delete
'error' => esc_html__( 'Plugin unavailable.', 'wpforms-lite' ),
[539] Fix | Delete
]
[540] Fix | Delete
);
[541] Fix | Delete
}
[542] Fix | Delete
[543] Fix | Delete
$result['setup_status'] = (int) ( '' !== (string) monsterinsights_get_ua() );
[544] Fix | Delete
[545] Fix | Delete
$mi = MonsterInsights();
[546] Fix | Delete
[547] Fix | Delete
$result['license_level'] = 'lite';
[548] Fix | Delete
$result['step3_button_url'] = $this->config['mi_forms_addon_page'];
[549] Fix | Delete
[550] Fix | Delete
if ( is_object( $mi->license ) && method_exists( $mi->license, 'license_can' ) ) {
[551] Fix | Delete
$result['license_level'] = $mi->license->license_can( 'pro' ) || $mi->license->license_can( 'agency' ) ? 'pro' : $result['license_level'];
[552] Fix | Delete
$result['step3_button_url'] = admin_url( $this->config['mi_addons'] );
[553] Fix | Delete
}
[554] Fix | Delete
[555] Fix | Delete
$result['addon_installed'] = (int) array_key_exists( $this->config['forms_addon'], get_plugins() );
[556] Fix | Delete
[557] Fix | Delete
wp_send_json_success( $result );
[558] Fix | Delete
}
[559] Fix | Delete
[560] Fix | Delete
/**
[561] Fix | Delete
* Redirect to MI forms reporting page.
[562] Fix | Delete
* We need this function because `is_plugin_active()` available only after `admin_init` action.
[563] Fix | Delete
*
[564] Fix | Delete
* @since 1.5.7
[565] Fix | Delete
*/
[566] Fix | Delete
public function redirect_to_mi_forms() {
[567] Fix | Delete
[568] Fix | Delete
require_once ABSPATH . 'wp-admin/includes/plugin.php';
[569] Fix | Delete
// Redirect to MI Forms addon if it is activated.
[570] Fix | Delete
if ( is_plugin_active( $this->config['forms_addon'] ) ) {
[571] Fix | Delete
wp_safe_redirect( admin_url( $this->config['mi_forms'] ) );
[572] Fix | Delete
exit;
[573] Fix | Delete
}
[574] Fix | Delete
}
[575] Fix | Delete
}
[576] Fix | Delete
[577] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function