-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a custom plugin to disable SSL check in HTTP requests
- Loading branch information
1 parent
7956d1c
commit f7a53a9
Showing
2 changed files
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +0,0 @@ | ||
describe( 'Admin can login and make sure plugin is activated', () => { | ||
before( () => { | ||
cy.login(); | ||
} ); | ||
|
||
it( 'Can deactivate and activate plugin ', () => { | ||
cy.deactivatePlugin( 'classifai' ); | ||
cy.activatePlugin( 'classifai' ); | ||
} ); | ||
} ); | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
/** | ||
* Plugin Name: Disable HTTP SSL check | ||
* Version: 1.0.0 | ||
* Author: 10up Inc. | ||
* License: GPLv2 or later | ||
*/ | ||
|
||
// To make connection between local sites in Distributor. | ||
add_filter( 'http_request_args', function ( $params, $url ) { | ||
$params['sslverify'] = false; | ||
|
||
return $params; | ||
}, 10, 2 ); |