Skip to content

Instantly share code, notes, and snippets.

View chaselivingston's full-sized avatar

Chase Livingston chaselivingston

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Webhosting zdarma pro každého">
<meta name="keywords" content="webhosting, freehosting, zdarma, multihosting">
<meta name="author" content="Endora.cz - info@endora.cz">
<meta name="robots" content="index, follow">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:image" content="http://www.endora.cz/images/freehosting-endora-facebook.png">
https://gist.github.com/242398e792e61ed31e38
HTTP/1.1 302 Found
Server: nginx/1.7.6
Date: Fri, 22 Jan 2016 14:58:40 GMT
Content-Type: text/html; charset=iso-8859-1
Content-Length: 319
Connection: keep-alive
Keep-Alive: timeout=10
Location: http://sweb.ru/insecure
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
HTTP/1.1 400 Bad Behavior
X-Powered-By: PHP/5.5.22
Content-Type: text/html
Server: Managed WordPress Hosting by Lightning Base
X-Cacheable: NO: beresp.status
X-Cacheable-status: 400
Content-Length: 1050
Accept-Ranges: bytes
Date: Tue, 26 Jan 2016 18:46:24 GMT
X-Varnish: 2195628763
<?php endwhile; // end of the loop. ?>
https://wpml.org/documentation/support/creating-multilingual-wordpress-themes/language-dependent-ids/
add_filter( 'pre_option_job_manager_alerts_page_id', 'wpml_pre_option_job_manager_alerts_page_id' );
function wpml_pre_option_job_manager_alerts_page_id( $id ) {
return icl_object_id( $id, 'post', true );
}
## EXPIRES CACHING ##
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
function jetpackme_exclude_related_post( $exclude_post_ids, $post_id ) {
// $post_id is the post we are currently getting related posts for
$exclude_post_ids[] = 871;
return $exclude_post_ids;
}
add_filter( 'jetpack_relatedposts_filter_exclude_post_ids', 'jetpackme_exclude_related_post', 20, 2 );
if ( ! isset( $content_width ) ) {
$content_width = 730;
}