Conversation
|
@msigley many would probably want Perhaps it would be better to just throw in another $minify_action_priority = 10;
add_action( Dependency_Minification::CRON_MINIFY_ACTION, function () {
add_filter( 'https_local_ssl_verify', '__return_false' );
add_filter( 'https_ssl_verify', '__return_false' );
}, $minify_action_priority - 1 );
add_action( Dependency_Minification::CRON_MINIFY_ACTION, function () {
remove_filter( 'https_local_ssl_verify', '__return_false' );
remove_filter( 'https_ssl_verify', '__return_false' );
}, $minify_action_priority + 1 );Too bad that |
|
We could also do an $is_IIS check as well and only disable the sslverify option in the HTTP request if IIS is detected. Let me know the direction you wish to go in and I will revise or revoke my pull request. |
|
@msigley does my plugin above not do the trick to turn off SSL verification on your site? |
|
It does, but this is still a IIS compatibility issue in the plugins implementation. Again virtually anyone running IIS will experience this issue. |
dependency-minification.php
Outdated
There was a problem hiding this comment.
@msigley I think this should be changed to be something like this:
$sslverify = apply_filters( 'depmin_https_ssl_verify', empty( $GLOBALS['is_IIS'] ), $src );
$r = wp_remote_get( $src, compact( 'sslverify' ) );This then turns off SSL verification for IIS only by default, but also allows it to be filtered.
There was a problem hiding this comment.
Looks good to me. Merge and revise in a commit. Nice work @westonruter!
There was a problem hiding this comment.
@msigley are you going to add another commit to your PR with this change?
|
@msigley I was trying to apply your patch to the Also, before doing another plugin release ( |
Fixes issue #57.