抓取社交媒体分享时的函数报错,删除。
This commit is contained in:
@@ -17,7 +17,6 @@
|
|||||||
<meta name="keywords" content="<?php echo keywords(); ?>">
|
<meta name="keywords" content="<?php echo keywords(); ?>">
|
||||||
<meta name="description" itemprop="description" content="<?php echo description(); ?>">
|
<meta name="description" itemprop="description" content="<?php echo description(); ?>">
|
||||||
<meta name="theme-color" content="<?php echo kratos_option('g_chrome', '#282a2c'); ?>">
|
<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'); ?>">
|
<link rel="shortcut icon" href="<?php echo kratos_option('g_icon'); ?>">
|
||||||
<?php wp_head(); wp_print_scripts('jquery'); mourning(); ?>
|
<?php wp_head(); wp_print_scripts('jquery'); mourning(); ?>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ function mourning()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 抓取图片链接(搜索引擎或者社交工具分享时抓取图片的链接)
|
// 抓取图片链接(搜索引擎或者社交工具分享时抓取图片的链接)
|
||||||
|
/*
|
||||||
function share_thumbnail_url()
|
function share_thumbnail_url()
|
||||||
{
|
{
|
||||||
global $post;
|
global $post;
|
||||||
@@ -119,7 +120,7 @@ function share_thumbnail_url()
|
|||||||
}
|
}
|
||||||
return $img;
|
return $img;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
// 支持上传 svg
|
// 支持上传 svg
|
||||||
add_filter('upload_mimes', 'upload_svg');
|
add_filter('upload_mimes', 'upload_svg');
|
||||||
function upload_svg($existing_mimes = array())
|
function upload_svg($existing_mimes = array())
|
||||||
|
|||||||
Reference in New Issue
Block a user