This file contains hidden or 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
    
  
  
    
  | add_filter('jpeg_quality', function($arg){return 100;}); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | in functions.php: | |
| function wp_opengraph_for_posts() { | |
| if ( is_singular() ) { | |
| global $post; | |
| setup_postdata( $post ); | |
| $output = '<meta property="og:type" content="article" />' . "\n"; | |
| $output .= '<meta property="og:title" content="' . esc_attr( get_the_title() ) . '" />' . "\n"; | |
| $output .= '<meta property="og:url" content="' . get_permalink() . '" />' . "\n"; | |
| $output .= '<meta property="og:description" content="' . esc_attr( get_the_excerpt() ) . '" />' . "\n"; | |
| if ( has_post_thumbnail() ) { | 
  
    
      This file contains hidden or 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
    
  
  
    
  | RewriteEngine On | |
| RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC] | |
| RewriteCond %{HTTP_REFERER} !^$ | |
| RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpg [L] | 
  
    
      This file contains hidden or 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
    
  
  
    
  | remove_action( 'wp_head', 'wp_generator' ); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | if (!is_admin()) add_action( 'wp_enqueue_scripts', 'my_jquery_enqueue', 11 ); | |
| function my_jquery_enqueue() { | |
| wp_deregister_script( 'jquery' ); | |
| wp_register_script( 'jquery', get_template_directory_uri() . '/js/jquery.js', false, null ); | |
| wp_enqueue_script( 'jquery' ); | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"> | 
  
    
      This file contains hidden or 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
    
  
  
    
  | wp_embed_register_handler( 'github-gist', '#https?://gist\.github\.com/([0-9]+)#', 'gist_embed_handler' ); | |
| add_shortcode( 'gist', 'gist_shortcode' ); | |
| function gist_embed_handler( $matches, $attr, $url, $rawattr ) { | |
| return gist_shortcode( $attr, $url ); | |
| } | |
| function gist_shortcode( $atts, $content = '' ) { | |
| if ( empty( $atts[0] ) && empty( $content ) ) | |
| return '<!-- Missing Gist ID -->'; | |
| $id = ( ! empty( $content ) ) ? $content : $atts[0]; | |
| if ( ! is_numeric( $id ) ) |