Skip to content

Commit

Permalink
Fix filter to disable site link HTTPS check
Browse files Browse the repository at this point in the history
  • Loading branch information
corsacca committed Dec 3, 2024
1 parent 03a6fd4 commit 94e5f16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dt-core/admin/site-link-post-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public static function verify_transfer_token( $transfer_token ): bool
*/
// challenge https connection
if ( WP_DEBUG !== true ) {
$disable_site_link_https_check = add_filter( 'dt_disable_site_link_https_check', false );
$disable_site_link_https_check = apply_filters( 'dt_disable_site_link_https_check', false );
if ( empty( $disable_site_link_https_check ) ){
if ( !isset( $_SERVER['HTTPS'] ) ){
dt_write_log( __METHOD__ . ': Server does not have the HTTPS parameter set.' );
Expand Down

0 comments on commit 94e5f16

Please sign in to comment.