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
<?php | |
/** | |
* Add Last-Modified and Cache-Control Headers to WP Responses | |
*/ | |
function wp_cloudfront_filter_headers( $headers ) { | |
/* | |
* WP already sets Cache-Control headers to avoid caching in the admin. | |
*/ | |
if ( is_admin() ) { |
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
<?php | |
/** | |
* Validate URLs | |
* | |
* @param string $url | |
* @param boolean $strict | |
* @return string|boolean | |
*/ | |
function kbso_validate_url( $url, $strict = false ) { |
NewerOlder