|
@@ -43,6 +43,33 @@ add_action('updated_option', 'uhp24_browsersync_save', 10, 3);
|
|
|
|
|
|
add_filter( 'show_admin_bar', '__return_false' );
|
|
|
|
|
|
+add_action( 'login_enqueue_scripts', 'uhp24_login_logo' );
|
|
|
+function uhp24_login_logo() {
|
|
|
+ $logo_image = wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), 'full' );
|
|
|
+ ?>
|
|
|
+ <style type="text/css">
|
|
|
+ #login h1 a, .login h1 a {
|
|
|
+ background-image: url(<?php echo esc_url( $logo_image[0] ); ?>);
|
|
|
+ background-size:cover;
|
|
|
+ height:110px;
|
|
|
+ width:320px;
|
|
|
+ }
|
|
|
+ body.login {
|
|
|
+ background-color: #0F1B44 !important;
|
|
|
+ }
|
|
|
+ .login #nav a {
|
|
|
+ color: #E9E4DC !important;
|
|
|
+ }
|
|
|
+ .login #backtoblog a {
|
|
|
+ display: none !important;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+<?php }
|
|
|
+
|
|
|
+add_filter( 'login_headerurl', 'uhp24_login_url' );
|
|
|
+function uhp24_login_url() { return home_url(); }
|
|
|
+
|
|
|
+
|
|
|
add_filter('admin_title', 'uhp24_admin_title', 10, 2);
|
|
|
function uhp24_admin_title($admin_title, $title) {
|
|
|
return $title .' - '. get_bloginfo('name');
|
|
@@ -221,6 +248,8 @@ function uhp24_sort_last_login_column( $query ) {
|
|
|
######################## Editor ############################
|
|
|
************************************************************/
|
|
|
|
|
|
+add_filter( 'styles_inline_size_limit', '__return_zero' );
|
|
|
+
|
|
|
add_action( 'enqueue_block_assets', 'uhp24_block_styles', 5 );
|
|
|
function uhp24_block_styles(){
|
|
|
wp_enqueue_style('uhp24-css', get_stylesheet_directory_uri() . '/style.css');
|
|
@@ -236,6 +265,29 @@ function uhp24_disable_remote_patterns() {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+add_action( 'init', 'dwp23_disable_emojis' );
|
|
|
+function dwp23_disable_emojis() {
|
|
|
+ remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
|
|
|
+ remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
|
|
|
+ remove_action( 'wp_print_styles', 'print_emoji_styles' );
|
|
|
+ remove_action( 'admin_print_styles', 'print_emoji_styles' );
|
|
|
+ remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
|
|
|
+ remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
|
|
|
+ remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
|
|
|
+ add_filter( 'emoji_svg_url', '__return_false' );
|
|
|
+}
|
|
|
+
|
|
|
+add_action( 'init', 'uhp24_cleaner_header' );
|
|
|
+function uhp24_cleaner_header() {
|
|
|
+ remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10);
|
|
|
+ remove_action('wp_head', 'wlwmanifest_link');
|
|
|
+ remove_action('wp_head', 'rsd_link');
|
|
|
+ remove_action('wp_head', 'wp_shortlink_wp_head', 10);
|
|
|
+ remove_action('wp_head', 'wp_generator');
|
|
|
+ remove_action('wp_head', 'feed_links_extra', 3 );
|
|
|
+ remove_action('wp_head', 'feed_links', 2 );
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
/***********************************************************
|
|
|
####################### Comments ###########################
|