Commit 830e6278 authored by Vadim's avatar Vadim

Version: 2.9.1

* Если рейтинг отключен, не отображать его в инфостроке
parent b9547732
......@@ -3,7 +3,7 @@
Plugin Name: Bg Az-Counter
Plugin URI: https://bogaiskov.ru
Description: Подсчет количества посещений страниц на базе stat.azbyka.ru
Version: 2.9.0
Version: 2.9.1
Author: VBog
Author URI: https://bogaiskov.ru
License: GPL2
......@@ -38,7 +38,7 @@
if ( !defined('ABSPATH') ) {
die( 'Sorry, you are not allowed to access this page directly.' );
}
define('BG_COUNTER_VERSION', '2.9.0');
define('BG_COUNTER_VERSION', '2.9.1');
define('BG_COUNTER_LOG', dirname(__FILE__ ).'/bg_counter.log');
define('BG_COUNTER_STAT_COUNTERS','https://stat.azbyka.ru/counters');
......
......@@ -239,6 +239,7 @@ function bg_az_counter_views ($type=null, $id=null, $now=null, $rate=null, $view
$rate = $option['rate'];
}
if ($type != 'post') $rate = null;
if (get_post_meta($id, 'не_отображать_рейтинг',true)) $rate = null;
if ($id) {
$link = get_permalink($id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment