Skip to content

Instantly share code, notes, and snippets.

View david-binda's full-sized avatar

David Biňovec david-binda

View GitHub Profile
[
{
"level": "warning",
"description": "Antivirus Scan",
"lines": [
"ClamAV is not present on this system - as such, no antivirus scanning was performed on this theme."
],
"file": ""
},
{
@david-binda
david-binda / gist:8471299
Last active January 3, 2016 13:39
Fix for a SSL update of Twitter oembed API for WordPress by Parade dev team ( http://www.parade.com ). Quick fix till we get an core update. See: https://core.trac.wordpress.org/changeset/26967 . Might require you to resave post in which oembed request failed previously as oembeds are being cached ( see: https://github.com/WordPress/WordPress/bl…
add_filter( 'oembed_providers', 'oembed_fix_twitter', 10, 1 );
function oembed_fix_twitter( $providers = array() ){
$providers[ '#https?://(www\.)?twitter\.com/.+?/status(es)?/.*#i' ] = array( 'https://api.twitter.com/1/statuses/oembed.{format}', true );
return $providers;
}