Browse Source

clean up tweaks.php

windhamdavid 4 years ago
parent
commit
7a506594db
1 changed files with 0 additions and 21 deletions
  1. 0 21
      inc/tweaks.php

+ 0 - 21
inc/tweaks.php

@@ -22,34 +22,13 @@ function dw_remove_wp_ver_css_js( $src ) {
 add_filter( 'style_loader_src', 'dw_remove_wp_ver_css_js', 9999 );
 add_filter( 'style_loader_src', 'dw_remove_wp_ver_css_js', 9999 );
 add_filter( 'script_loader_src', 'dw_remove_wp_ver_css_js', 9999 );
 add_filter( 'script_loader_src', 'dw_remove_wp_ver_css_js', 9999 );
 
 
-// Disable use XML-RPC
 add_filter( 'xmlrpc_enabled', '__return_false' );
 add_filter( 'xmlrpc_enabled', '__return_false' );
-// Disable X-Pingback to header
 add_filter( 'wp_headers', 'disable_x_pingback' );
 add_filter( 'wp_headers', 'disable_x_pingback' );
 function disable_x_pingback( $headers ) {
 function disable_x_pingback( $headers ) {
   unset( $headers['X-Pingback'] );
   unset( $headers['X-Pingback'] );
 return $headers;
 return $headers;
 }
 }
 
 
-/*
-add_action( 'admin_head', 'dw_hide' );
-function dw_hide() {
-    ?>
-    <style type="text/css" media="screen">
-    #footer {display:none;}
-	#contextual-help-link-wrap {display: none;}
-	#wpadminbar {display: none;}
-	.edit-post-header {margin-top:-30px;}
-	.edit-post-sidebar {margin-top:-30px;}
-	body.admin-bar #wpcontent, body.admin-bar #adminmenu {padding-top:0;}
-	#wp-content-editor-tools{top:0 !important;position:relative!important;}
-	#ed_toolbar{top:0px !important;}
-	html.wp-toolbar{padding-top:0;}
-	#postexcerpt p {display: none;}
-    </style>
-<?php }
-*/
-
 function disable_emojis_tinymce( $plugins ) {
 function disable_emojis_tinymce( $plugins ) {
   if ( is_array( $plugins ) ) {
   if ( is_array( $plugins ) ) {
     return array_diff( $plugins, array( 'wpemoji' ) );
     return array_diff( $plugins, array( 'wpemoji' ) );