From a3b66fd9b570b9d6911d39f99f5a4e95a579a85e Mon Sep 17 00:00:00 2001 From: Mashiro Date: Wed, 13 Jun 2018 09:52:11 +0800 Subject: [PATCH] PHP 7.2 supported Fixed according to http://php.net/manual/zh/migration72.deprecated.php --- functions.php | 4 ++-- tpl/content-image.php | 2 +- tpl/content-single.php | 2 +- tpl/content-status.php | 2 +- tpl/content-thumb.php | 2 +- tpl/content.php | 2 +- tpl/single-image.php | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/functions.php b/functions.php index 847310c..5073228 100644 --- a/functions.php +++ b/functions.php @@ -468,7 +468,7 @@ function get_post_views($post_id) { * return restyle_text($views); * } */ - return wp_statistics_pages(total,uri,$post_id); + return wp_statistics_pages('total','uri',$post_id); } @@ -1230,7 +1230,7 @@ function memory_archives_list() { $mon = $mon_tmp; $output .= '
  • '.$mon.'月 (篇文章)
  • '; diff --git a/tpl/content-image.php b/tpl/content-image.php index c242aec..8b677f6 100644 --- a/tpl/content-image.php +++ b/tpl/content-image.php @@ -35,7 +35,7 @@
    - 热度 + 热度
    diff --git a/tpl/content-single.php b/tpl/content-single.php index 3bf8a92..2d78927 100644 --- a/tpl/content-single.php +++ b/tpl/content-single.php @@ -13,7 +13,7 @@

    -

    post_date)); ?>   次阅读

    +

    post_date)); ?>   次阅读


    diff --git a/tpl/content-status.php b/tpl/content-status.php index 8efbd03..f89559c 100644 --- a/tpl/content-status.php +++ b/tpl/content-status.php @@ -31,7 +31,7 @@
    - 热度 + 热度
    diff --git a/tpl/content-thumb.php b/tpl/content-thumb.php index c6a209f..50ff715 100644 --- a/tpl/content-thumb.php +++ b/tpl/content-thumb.php @@ -37,7 +37,7 @@ $the_cat = get_the_category();

    - 热度 + 热度 cat_name; ?> diff --git a/tpl/content.php b/tpl/content.php index 7af4b1b..f659a50 100644 --- a/tpl/content.php +++ b/tpl/content.php @@ -34,7 +34,7 @@
    - 热度 + 热度
    diff --git a/tpl/single-image.php b/tpl/single-image.php index 0e8509a..7e7a434 100644 --- a/tpl/single-image.php +++ b/tpl/single-image.php @@ -15,7 +15,7 @@

    -

    post_date)); ?>   次阅读

    +

    post_date)); ?>   次阅读