Skip to content

Instantly share code, notes, and snippets.

View raulghm's full-sized avatar
🏠
Working from home

Raúl raulghm

🏠
Working from home
View GitHub Profile
@raulghm
raulghm / gist:50c6769ecc74cb1ffbe2
Created August 12, 2014 15:23
[Wordpress] Remove extra head tags
// Remove extra head tags
remove_action( 'wp_head', 'feed_links_extra', 3 ); //Extra feeds such as category feeds
remove_action( 'wp_head', 'feed_links', 2 ); // General feeds: Post and Comment Feed
remove_action ('wp_head', 'rsd_link');
remove_action( 'wp_head', 'wlwmanifest_link');
remove_action( 'wp_head', 'wp_shortlink_wp_head');
remove_action('wp_head', 'wp_generator');
<link rel="shortcut icon" href="/img/favicons/favicon.ico">
<link rel="icon" sizes="16x16 32x32 64x64" href="/img/favicons/favicon.ico">
<link rel="icon" type="image/png" sizes="196x196" href="/img/favicons/favicon-196.png">
<link rel="icon" type="image/png" sizes="160x160" href="/img/favicons/favicon-160.png">
<link rel="icon" type="image/png" sizes="96x96" href="/img/favicons/favicon-96.png">
<link rel="icon" type="image/png" sizes="64x64" href="/img/favicons/favicon-64.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicons/favicon-32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicons/favicon-16.png">
<link rel="apple-touch-icon" sizes="152x152" href="/img/favicons/favicon-152.png">
<link rel="apple-touch-icon" sizes="144x144" href="/img/favicons/favicon-144.png">
function hasFileUploadSupport(){
var hasSupport = true;
try{
var testFileInput = document.createElement('input');
testFileInput.type = 'file';
testFileInput.style.display = 'none';
document.getElementsByTagName('body')[0].appendChild(testFileInput);
if(testFileInput.disabled){
hasSupport = false;
}
{
"require": {
"slim/slim": "2.*",
"illuminate/database": "*",
"dhorrigan/capsule": "*"
}
}