filter_ssl [ WordPress Function ]
filter_ssl ( $url )
| Defined at: |
|
Formats an String URL to use HTTPS if HTTP is found.
Useful as a filter.
Source
<?php
function filter_SSL( $url ) {
if ( !is_string( $url ) )
return get_bloginfo( 'url' ); //return home blog url with proper scheme
$arrURL = parse_url( $url );
if ( force_ssl_content() && is_ssl() ) {
if ( 'http' === $arrURL['scheme'] )
$url = str_replace( $arrURL['scheme'], 'https', $url );
}
return $url;
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- #19899 (Redundant logic in filter_SSL() function) – WordPress Trac
Redundant logic in filter_SSL() function ... Remove redundant logic from filter_SSL(). Props deltafactory. Fixes #19899. Note: See TracTickets for help on using ...
core.trac.wordpress.org - SSL - The Wireshark Wiki
Capture Filter. You cannot directly filter SSL protocols while capturing. However, if you know the TCP port used (see above), you can filter on that one.
wiki.wireshark.org - POE::Filter::SSL - search.cpan.org
POE::Filter::SSL can be added, switched and removed during runtime, for example if you want to initiate SSL (see the SSL on an established connection ...
search.cpan.org - security - How do proxy servers filter https websites? - Server Fault
Jun 2, 2011 ... If you really need to filter SSL, you almost certainly need to do it as a whitelist, and not a blacklist. So you permit sites you trust, and block bad ...
serverfault.com