??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/renovaid.co.uk/wp-content/plugins/elementor/includes/heartbeat.php
⬅ Kembali
<?php
namespace Elementor;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Elementor heartbeat.
*
* Elementor heartbeat handler class is responsible for initializing Elementor
* heartbeat. The class communicates with WordPress Heartbeat API while working
* with Elementor.
*
* @since 1.0.0
*/
class Heartbeat {
/**
* Heartbeat received.
*
* Locks the Heartbeat response received when editing with Elementor.
*
* Fired by `heartbeat_received` filter.
*
* @since 1.0.0
* @access public
*
* @param array $response The Heartbeat response.
* @param array $data The `$_POST` data sent.
*
* @return array Heartbeat response received.
*/
public function heartbeat_received( $response, $data ) {
if ( isset( $data['elementor_post_lock']['post_ID'] ) ) {
$post_id = $data['elementor_post_lock']['post_ID'];
$locked_user = Plugin::$instance->editor->get_locked_user( $post_id );
if ( ! $locked_user || ! empty( $data['elementor_force_post_lock'] ) ) {
Plugin::$instance->editor->lock_post( $post_id );
} else {
$response['locked_user'] = $locked_user->display_name;
}
/** @var Core\Common\Modules\Ajax\Module $ajax */
$ajax = Plugin::$instance->common->get_component( 'ajax' );
$response['elementorNonce'] = $ajax->create_nonce();
}
return $response;
}
/**
* Refresh nonces.
*
* Filter the nonces to send to the editor when editing with Elementor. Used
* to refresh the nonce when the nonce expires while editing. This way the
* user doesn't need to log-in again as Elementor fetches the new nonce from
* the server using ajax.
*
* Fired by `wp_refresh_nonces` filter.
*
* @since 1.8.0
* @access public
*
* @param array $response The no-priv Heartbeat response object or array.
* @param array $data The `$_POST` data sent.
*
* @return array Refreshed nonces.
*/
public function refresh_nonces( $response, $data ) {
if ( isset( $data['elementor_post_lock']['post_ID'] ) ) {
/** @var Core\Common\Modules\Ajax\Module $ajax */
$ajax = Plugin::$instance->common->get_component( 'ajax' );
$response['elementor-refresh-nonces'] = [
'elementorNonce' => $ajax->create_nonce(),
'heartbeatNonce' => wp_create_nonce( 'heartbeat-nonce' ),
];
}
return $response;
}
/**
* Heartbeat constructor.
*
* Initializing Elementor heartbeat.
*
* @since 1.0.0
* @access public
*/
public function __construct() {
add_filter( 'heartbeat_received', [ $this, 'heartbeat_received' ], 10, 2 );
add_filter( 'wp_refresh_nonces', [ $this, 'refresh_nonces' ], 30, 2 );
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 admin-templates
dir
—
2026-06-23 10:10
📁 base
dir
—
2026-06-23 10:10
📁 controls
dir
—
2026-06-23 10:10
📁 editor-templates
dir
—
2026-06-23 10:10
📁 elements
dir
—
2026-06-23 10:10
📁 interfaces
dir
—
2026-06-23 10:10
📁 libraries
dir
—
2026-06-23 10:10
📁 managers
dir
—
2026-06-23 10:10
📁 settings
dir
—
2026-06-23 10:10
📁 template-library
dir
—
2026-06-23 10:10
📁 widgets
dir
—
2026-06-23 10:10
🐘 api.php
php
8.7 KB
2026-05-20 16:19
🐘 autoloader.php
php
9.8 KB
2025-10-21 16:51
🐘 beta-testers.php
php
3 KB
2023-04-23 15:22
🐘 compatibility.php
php
11 KB
2025-03-17 17:28
🐘 conditions.php
php
2.7 KB
2023-04-23 15:22
🐘 db.php
php
15.9 KB
2026-02-02 14:52
🐘 editor-assets-api.php
php
4.1 KB
2026-06-08 16:48
🐘 embed.php
php
8.5 KB
2025-03-17 17:28
🐘 fonts.php
php
62.5 KB
2025-03-17 17:28
🐘 frontend.php
php
40 KB
2026-04-20 15:03
🐘 heartbeat.php
php
2.6 KB
2023-04-23 15:22
🐘 maintenance-mode.php
php
11.2 KB
2025-10-21 16:51
🐘 maintenance.php
php
2.8 KB
2025-03-17 17:28
🐘 plugin.php
php
16.7 KB
2026-05-26 12:54
🐘 preview.php
php
7.9 KB
2026-05-20 16:19
🐘 rollback.php
php
4.2 KB
2026-01-20 13:22
🐘 shapes.php
php
7.8 KB
2025-08-05 18:00
🐘 stylesheet.php
php
8.9 KB
2025-09-15 14:10
🐘 tracker.php
php
17 KB
2025-11-10 16:25
🐘 user-data.php
php
3.4 KB
2025-10-21 16:51
🐘 user.php
php
10 KB
2025-12-04 22:09
🐘 utils.php
php
24.9 KB
2026-06-08 16:48