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
| /* reset styles */ | |
| html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
| a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, | |
| small, strike, strong, sub, sup, tt, var, b, u, i, center, | |
| dl, dt, dd, ol, ul, li, fieldset, form, label, legend, | |
| table, caption, tbody, tfoot, thead, tr, th, td { | |
| margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; | |
| vertical-align: baseline; background: transparent; | |
| } | |
| body { line-height: 1; } |
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
| //Enable HTML Compression | |
| class WP_HTML_Compression | |
| { | |
| // Settings | |
| protected $compress_css = true; | |
| protected $compress_js = true; | |
| protected $info_comment = true; | |
| protected $remove_comments = true; | |
| // Variables |
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
| function _remove_script_version( $src ){ | |
| $parts = explode( '?ver', $src ); | |
| return $parts[0]; | |
| } | |
| add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); | |
| add_filter( 'style_loader_src', '_remove_script_version', 15, 1 ); |
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
| //Disable PingBack | |
| add_filter( 'xmlrpc_methods', 'so_remove_ping' ); | |
| function so_remove_ping( $methods ) { | |
| unset( $methods['pingback.ping'] ); | |
| unset( $methods['pingback.extensions.getPingbacks'] ); | |
| return $methods; | |
| } | |
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
| // Disable use XML-RPC | |
| add_filter( 'xmlrpc_enabled', '__return_false' ); | |
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
| //Hiding WP Version | |
| function so_remove_version() { | |
| return ''; | |
| } | |
| add_filter('the_generator', 'so_remove_version'); |
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 Unused Meta Tag Header | |
| remove_action ('wp_head', 'wp_generator'); | |
| remove_action ('wp_head', 'wlwmanifest_link'); | |
| remove_action ('wp_head', 'rsd_link'); |
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 Unused RSS FEEDS | |
| remove_action ('wp_head', 'feed_links', 2); | |
| remove_action ('wp_head', 'feed_links_extra', 3); |
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
| //Disable HTML Comments | |
| add_filter ('pre_comment_content', 'esc_html'); |
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
| <!DOCTYPE html> | |
| <html class="no-js" <?php language_attributes(); ?>> | |
| <head> | |
| <meta name="googlebot" content="noindex" /> | |
| <title></title> | |
| </head> | |
| <body></body> | |
| </html> |