Welcome to GPLDL - we are still beta - please report any bugs via the contact form.

GPLDLGPLDL
GPLDL
Download the most popular GPL licensed Premium WordPress Themes & Plugins and WooCommerce Extensions for FREE!
  • Blog
    • Blog Articles
    • Latest Updates & Additions
  • Repository
    • Full Repository
    • Premium WordPress Themes
    • Premium WordPress Plugins
    • Premium WooCommerce Extensions
    • Special Gifts for Premium Members
    • Tutorials
  • Forum
  • Free Membership
  • Donations
  • My GPLDL Account
  • Sign In
Menu back  

Reply To: Elementor Pro 3.0.5 – How to null

October 21, 2020 at 12:22 pm #22726
Betialai
Participant

Elementor 3.0.12 has been released. Few changes have to be made on /elementor/core/common/modules/connect/apps/base-app.php

Line 237
Where it says
/**
* @since 2.3.0
* @access public
*/
public function is_connected() {
return (bool) $this->get( 'access_token' );
}

It must say
/**
* @since 2.3.0
* @access public
*/
public function is_connected() {
return true;
//return (bool) $this->get( 'access_token' );
}

Line 331
Where it says
/**
* @since 2.3.0
* @access protected
*/
protected function request( $action, $request_body = [], $as_array = false ) {
$request_body = [
'app' => $this->get_slug(),
'access_token' => $this->get( 'access_token' ),
'client_id' => $this->get( 'client_id' ),
'local_id' => get_current_user_id(),
'site_key' => $this->get_site_key(),
'home_url' => trailingslashit( home_url() ),
] + $request_body;

$headers = [];

if ( $this->is_connected() ) {
$headers['X-Elementor-Signature'] = hash_hmac( 'sha256', wp_json_encode( $request_body, JSON_NUMERIC_CHECK ), $this->get( 'access_token_secret' ) );
}

$response = wp_remote_post( $this->get_api_url() . '/' . $action, [
'body' => $request_body,
'headers' => $headers,
'timeout' => 25,
] );

It must say
/**
* @since 2.3.0
* @access protected
*/
protected function request( $action, $request_body = [], $as_array = false ) {
$request_body = [
'app' => $this->get_slug(),
'access_token' => $this->get( 'access_token' ),
'client_id' => $this->get( 'client_id' ),
'local_id' => get_current_user_id(),
'site_key' => $this->get_site_key(),
'home_url' => trailingslashit( home_url() ),
] + $request_body;

$headers = [];

if ( $this->is_connected() ) {
$headers['X-Elementor-Signature'] = hash_hmac( 'sha256', wp_json_encode( $request_body, JSON_NUMERIC_CHECK ), $this->get( 'access_token_secret' ) );
}

// NF ++
if ($action === 'get_template_content') {
$templateExists = false;
if (file_exists(ELEMENTOR_PATH . 'templates/' . $request_body['id'] . '.json')) {
$templateExists = true;
$url = ELEMENTOR_URL . 'templates/' . $request_body['id'] . '.json';
}
}
if ($templateExists) {
$response = wp_remote_get( $url, [
'timeout' => 40,
'sslverify' => false,
] );
} else {
// NF end
$response = wp_remote_post( $this->get_api_url() . '/' . $action, [
'body' => $request_body,
'headers' => $headers,
'timeout' => 25,
] );
// NF ++
}
// NF end

Line 389
Where it says
if ( 401 === $code ) {
$this->delete();
$this->action_authorize();
}

It must say
if ( 401 === $code ) {
/* NF --
//$this->delete();
//$this->action_authorize();
NF end */ }

That’s all, folks!

Search the Repository
We reward your Donations!
We need your Donation to maintain and grow the GPLDL WordPress Repository - and we reward your generosity with Premium Memberships allowing you to download even more files.

Learn more about donations & rewards...
News from our blog
  • How to get the MailPoet Premium Newsletter WordPress Plugin for free forever?
    January 22, 2017
  • How to remove the license code check from the WP-Rocket WordPress Plugin
    January 2, 2017
  • How to remove the WooThemes Updater Plugin notification from your WordPress Admin Dashboard
    May 28, 2016
Latest Updates & Additions
  • GPLDL News: 217 Updates & Additions today – Download 2271 Premium WordPress items!
    February 21, 2021
  • GPLDL News: 90 Updates & Additions today – Download 2263 Premium WordPress items!
    February 14, 2021
  • GPLDL News: 92 Updates & Additions today – Download 2264 Premium WordPress items!
    February 7, 2021
Tags
Admin Area automatic Backend code command display Download Drupal edit Extension fork forked functions.php get rid of GPL Guide hide hoot HowTo Instructions license Magento nag-screen nagscreen notification null nulled off Plugin Premium remove serial switch theme true tutorial Update Updater usage WooCommerce WooThemes wordpress WP-Media WP-Rocket
Welcome to GPLDL!
scr02We love innovation and we believe in free software!

That's why we strive to make the world's best Premium WordPress Themes & Plugins and WooCommerce Extensions & Themes available for everyone!

Find us on:

FacebookTwitterGoogle+RssPinterest
Latest Blog Posts
  • How to get the MailPoet Premium Newsletter WordPress Plugin for free forever?
    January 22, 2017
  • How to remove the license code check from the WP-Rocket WordPress Plugin
    January 2, 2017
  • How to remove the WooThemes Updater Plugin notification from your WordPress Admin Dashboard
    May 28, 2016
Latest Updates & Additions
  • GPLDL News: 217 Updates & Additions today – Download 2271 Premium WordPress items!
    February 21, 2021
  • GPLDL News: 90 Updates & Additions today – Download 2263 Premium WordPress items!
    February 14, 2021
  • GPLDL News: 92 Updates & Additions today – Download 2264 Premium WordPress items!
    February 7, 2021
About GPLDL
  • About GPLDL
  • F.A.Q.
  • Terms of Service
  • Privacy Policy
  • Contact
GPLDL - all Rights reserved.
  • About GPLDL
  • F.A.Q.
  • Terms of Service
  • Privacy Policy
  • Contact
  • Sign In
GPLDL Widget Menu