Upgarded to 4.17.4

This commit is contained in:
2022-06-23 13:17:18 +01:00
parent 80f1e87db9
commit a04fb0c7af
404 changed files with 54683 additions and 4417 deletions

View File

@ -1391,7 +1391,7 @@ class ET_Core_SupportCenter {
'pass_minus_one' => false,
'pass_zero' => false,
'minimum' => null,
'recommended' => '7.2 or higher',
'recommended' => '7.4 or higher',
'actual' => (float) phpversion(),
'help_text' => et_core_intentionally_unescaped( __( 'We recommend using the latest stable version of PHP. This will not only ensure compatibility with Divi, but it will also greatly speed up your website leading to less memory and CPU related issues.', 'et-core' ), 'html' ),
'learn_more' => 'http://php.net/releases/',
@ -2607,7 +2607,8 @@ class ET_Core_SupportCenter {
);
$response['token'] = '';
if ( ! empty( $site_id ) && is_string( $site_id ) ) {
$response['token'] = $account_settings['token'] . '|' . $site_id;
$account_setting_token = isset( $account_settings['token'] ) ? $account_settings['token'] : '';
$response['token'] = $account_setting_token . '|' . $site_id;
}
$response['message'] = esc_html__(
'ET Support User role has been activated.',
@ -3025,12 +3026,13 @@ class ET_Core_SupportCenter {
$site_id = get_option( 'et_support_site_id' );
$support_token_cta = '';
if ( intval( $is_et_support_user_active ) > 0 && ! empty( $site_id ) && is_string( $site_id ) ) {
$account_settings = get_option( $this->support_user_options_name );
$support_token_cta = '<a class="copy_support_token" data-token="'
. esc_attr( $account_settings['token'] . '|' . $site_id )
. '">'
. esc_html__( 'Copy Support Token', 'et-core' )
. '</a>';
$account_settings = get_option( $this->support_user_options_name );
$account_setting_token = isset( $account_settings['token'] ) ? $account_settings['token'] : '';
$support_token_cta = '<a class="copy_support_token" data-token="'
. esc_attr( $account_setting_token . '|' . $site_id )
. '">'
. esc_html__( 'Copy Support Token', 'et-core' )
. '</a>';
}
$card_content .= '<div class="et_card_cta">'