Skip to content

Commit

Permalink
Update functions.php
Browse files Browse the repository at this point in the history
注释第85-90行代码,修复 WordPress6.4 后台编辑文章一片空白的问题。
  • Loading branch information
asir3q authored Nov 8, 2023
1 parent 0184e62 commit 040bcf2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ function remove_wp_archives(){

//屏蔽渲染到前台显示的wp版本号,不要让别人知道你是什么版本
remove_action('wp_head','wp_generator');
function remove_wp_version_strings($src) {
$parts = explode('?',$src);
return $parts[0];
}
add_filter('script_loader_src','remove_wp_version_strings');
add_filter('style_loader_src','remove_wp_version_strings');
// function remove_wp_version_strings($src) {
// $parts = explode('?',$src);
// return $parts[0];
// }
// add_filter('script_loader_src','remove_wp_version_strings');
// add_filter('style_loader_src','remove_wp_version_strings');

//禁止加载古登堡样式
function remove_block_library_css(){
Expand Down Expand Up @@ -506,4 +506,4 @@ function set_defaults_for_cravatar( $avatar_defaults ) {
return $avatar_defaults;
}
add_filter( 'avatar_defaults', 'set_defaults_for_cravatar', 1 );
}
}

0 comments on commit 040bcf2

Please sign in to comment.