Merge pull request #82 from mashirozx/20190607-01

fix
This commit is contained in:
Mashiro 2019-06-07 17:54:03 +08:00 committed by GitHub
commit 5679530453
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@ add_action('get_header', 'set_post_views');
function get_post_views($post_id) {
if (akina_option('statistics_api')=='wp_statistics'){
if (!function_exists(wp_statistics_pages)) {
if (!function_exists('wp_statistics_pages')) {
return '请安装 <a href="https://wordpress.org/plugins/wp-statistics/" target="_blank">WP-Statistics 插件</a>';
} else {
return restyle_text(wp_statistics_pages('total','uri',$post_id));