1、找到\wp-content\themes\Avada\includes\lib\inc\class-fusion-envato-api.php文件,注释掉如下两行代码
1 2 |
$response_code = wp_remote_retrieve_response_code( $response ); $response_message = wp_remote_retrieve_response_message( $response ); |
2、找到\wp-content\themes\Avada\includes\lib\inc\class-fusion-product-registration.php
第一处:
1 2 3 4 5 6 7 |
if ( is_wp_error( $products ) ) { // 401 ( unauthorized ) and 403 ( forbidden ) mean the token is invalid, apart from that Envato API is down. if ( 401 !== $products->get_error_code() && 403 !== $products->get_error_code() && '' !== $products->get_error_message() ) { set_site_transient( 'fusion_envato_api_down', true, <span style="color: #ff0000;"><strong>600</strong></span> ); //将600修改成0即可 } return false; } |
第二处:
1 2 3 4 5 6 7 8 9 10 11 12 |
public function is_registered() { // Is the product registered? if ( isset( $this->registered[ $this->product_id ] ) && true === $this->registered[ $this->product_id ] ) { return true; } // Is the Envato API down? if ( get_site_transient( 'fusion_envato_api_down' ) ) { return true; } // Fallback to false.//将return值返回为true return <strong><span style="color: #ff0000;">true</span></strong>; } |
ok,完成之后,你会惊喜的发现,已经成功了,绕过了验证。
注意:本机环境下使用phpstudy集成环境的不用试了,请一定要开启WP远程获取、WP 远程发布,对此我们推荐您使用wamp集成环
境。只有当Avada的系统状态监测,WP远程获取、WP 远程发布打钩才能正确的执行
未经允许不得转载:Windy's Blog » Avada v5.4.X 版破解教程