|
@@ -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( 'script_loader_src', 'dw_remove_wp_ver_css_js', 9999 );
|
|
|
|
|
|
-// Disable use XML-RPC
|
|
|
add_filter( 'xmlrpc_enabled', '__return_false' );
|
|
|
-// Disable X-Pingback to header
|
|
|
add_filter( 'wp_headers', 'disable_x_pingback' );
|
|
|
function disable_x_pingback( $headers ) {
|
|
|
unset( $headers['X-Pingback'] );
|
|
|
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 ) {
|
|
|
if ( is_array( $plugins ) ) {
|
|
|
return array_diff( $plugins, array( 'wpemoji' ) );
|