Yoast SEO Premium - Best Seo Plugin For WP

Yoast SEO Premium - Best Seo Plugin For WP v25.0

No permission to download

masterabrh

Active member
Jun 8, 2018
298
106
43
In "/wordpress-seo-premium/admin/views licenses.php" remove on line 133: <?php

and

/wordpress-seo-premium/inc --> class-my-yoast-api-request.php

$response = $this->do_request( $this->url, $this->args );
$this->response = $this->decode_response( $response );

change into

//$response = $this->do_request( $this->url, $this->args );
//$this->response = $this->decode_response( $response );

and

if ( is_wp_error( $response ) ) {
throw new WPSEO_MyYoast_Bad_Request_Exception( $response->get_error_message() );
}

$response_code = wp_remote_retrieve_response_code( $response );
$response_message = wp_remote_retrieve_response_message( $response );

// Do nothing, response code is okay.
if ( $response_code === 200 || strpos( $response_code, '200' ) !== false ) {
return wp_remote_retrieve_body( $response );
}

// Authentication failed, throw an exception.
if ( strpos( $response_code, '401' ) && $this->has_oauth_support() ) {
throw new WPSEO_MyYoast_Authentication_Exception( esc_html( $response_message ), 401 );
}

throw new WPSEO_MyYoast_Bad_Request_Exception( esc_html( $response_message ), (int) $response_code );
}
change into
$response_code = 200;
$response_message = wp_remote_retrieve_response_message( $response );

// Do nothing, response code is okay.
return wp_remote_retrieve_body( $response );
}
 
  • Like
Reactions: tanierlyons

Latest posts

Forum statistics

Threads
69,405
Messages
909,581
Members
239,197
Latest member
jossshKK

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu