Skip to content

Commit

Permalink
Merge pull request #82 from mashirozx/20190607-01
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
mashirozx authored Jun 7, 2019
2 parents 8fcd256 + 1b75eab commit 5679530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ function 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));
Expand Down

0 comments on commit 5679530

Please sign in to comment.