抓取社交媒体分享时的函数报错,删除。

This commit is contained in:
laoyang
2022-07-13 17:50:35 +08:00
parent 316661e595
commit 9fd59758f2
2 changed files with 2 additions and 2 deletions
-1
View File
@@ -17,7 +17,6 @@
<meta name="keywords" content="<?php echo keywords(); ?>">
<meta name="description" itemprop="description" content="<?php echo description(); ?>">
<meta name="theme-color" content="<?php echo kratos_option('g_chrome', '#282a2c'); ?>">
<meta itemprop="image" content="<?php echo share_thumbnail_url(); ?>"/>
<link rel="shortcut icon" href="<?php echo kratos_option('g_icon'); ?>">
<?php wp_head(); wp_print_scripts('jquery'); mourning(); ?>
</head>
+2 -1
View File
@@ -101,6 +101,7 @@ function mourning()
}
// 抓取图片链接(搜索引擎或者社交工具分享时抓取图片的链接)
/*
function share_thumbnail_url()
{
global $post;
@@ -119,7 +120,7 @@ function share_thumbnail_url()
}
return $img;
}
*/
// 支持上传 svg
add_filter('upload_mimes', 'upload_svg');
function upload_svg($existing_mimes = array())