View Wordpress RSS 2.0 featured image enclosure.php
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 | |
/** | |
* Wordpress RSS 2.0 image enclosure. | |
* | |
* @param WP_Query $query The current WP_Query instance. | |
* @return WP_Query | |
*/ | |
add_filter( 'pre_get_posts', 'feed_filter' ); | |
function feed_filter( $query ) { | |
if ( $query->is_feed ) { |
View preserve-pixelation.scss
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
@mixin pixelated { | |
-ms-interpolation-mode: nearest-neighbor; // IE 7+ (non-standard property) | |
image-rendering: -webkit-crisp-edges; // Safari 6 - 9 | |
image-rendering: -moz-crisp-edges; // Firefox 3.6 - 64 | |
image-rendering: crisp-edges; // Firefox 65+ | |
image-rendering: pixelated; // Chrome 41+, Edge 76+, Safari 10+ | |
} |