Guest User

Untitled

a guest
Sep 9th, 2016
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. /*CHRISTOPHER's CUSTOM MODS - slim version */
  2.  
  3. remove_action( 'wp_head', 'wp_generator' ) ;
  4. remove_action( 'wp_head', 'wlwmanifest_link' ) ;
  5. remove_action( 'wp_head', 'rsd_link' ) ;
  6. remove_action( 'wp_head', 'feed_links', 2 );
  7. remove_action( 'wp_head', 'feed_links_extra', 3 );
  8.  
  9. function no_errors_please(){
  10. return 'You appear to be up to no good. Please stop now!';}
  11. add_filter( 'login_errors', 'no_errors_please' );
  12.  
  13. function remove_cssjs_ver( $src ) {
  14. if( strpos( $src, '?ver=' ) )
  15. $src = remove_query_arg( 'ver', $src );
  16. return $src;
  17. }
  18. add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
  19. add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );
  20.  
  21. add_filter( 'jpeg_quality', create_function( '', 'return 50;' ) )
Add Comment
Please, Sign In to add comment