Skip to content

Commit

Permalink
a custom plugin to disable SSL check in HTTP requests
Browse files Browse the repository at this point in the history
  • Loading branch information
faisal-alvi committed Jun 23, 2022
1 parent 7956d1c commit f7a53a9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/cypress/e2e/internal-connection.test.js
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' );
} );
} );
14 changes: 14 additions & 0 deletions tests/test-plugins/disable-ssl-check.php
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 );

0 comments on commit f7a53a9

Please sign in to comment.