/home/altere25/usaigc.com/wp-content/plugins/elementor/includes
NameSizeModeActions
admin-templates/-0755rm
base/-0755rm
container/-0755rm
controls/-0755rm
editor-templates/-0755rm
elements/-0755rm
interfaces/-0755rm
libraries/-0755rm
managers/-0755rm
settings/-0755rm
template-library/-0755rm
widgets/-0755rm
api.php74650644editdlrm
autoloader.php96280644editdlrm
beta-testers.php30590644editdlrm
compatibility.php112140644editdlrm
conditions.php27680644editdlrm
db.php150800644editdlrm
editor-assets-api.php18070644editdlrm
embed.php86460644editdlrm
fonts.php640270644editdlrm
frontend.php401110644editdlrm
heartbeat.php26350644editdlrm
maintenance-mode.php113960644editdlrm
maintenance.php28520644editdlrm
plugin.php168700644editdlrm
preview.php78410644editdlrm
rollback.php37220644editdlrm
shapes.php65620644editdlrm
stylesheet.php91230644editdlrm
tracker.php160610644editdlrm
user.php101160644editdlrm
utils.php235420644editdlrm
Edit: /home/altere25/usaigc.com/wp-content/plugins/elementor/includes/heartbeat.php (2635B)
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 ); } }