Commit 2a496f6b authored by Vadim's avatar Vadim

Version 1.2.3

Еще одна опечатка: types вместо type Наверное вчера был не мой день
parent 67014a04
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Plugin Name: Bg Az-Counter Plugin Name: Bg Az-Counter
Plugin URI: https://bogaiskov.ru Plugin URI: https://bogaiskov.ru
Description: Подсчет количества посещений страниц на базе stat.azbyka.ru Description: Подсчет количества посещений страниц на базе stat.azbyka.ru
Version: 1.2 Version: 1.2.3
Author: VBog Author: VBog
Author URI: https://bogaiskov.ru Author URI: https://bogaiskov.ru
License: GPL2 License: GPL2
...@@ -38,7 +38,7 @@ if ( !defined('ABSPATH') ) { ...@@ -38,7 +38,7 @@ if ( !defined('ABSPATH') ) {
die( 'Sorry, you are not allowed to access this page directly.' ); die( 'Sorry, you are not allowed to access this page directly.' );
} }
define('BG_COUNTER_VERSION', '1.2.2'); define('BG_COUNTER_VERSION', '1.2.3');
define('BG_COUNTER_LOG', dirname(__FILE__ ).'/bg_counter.log'); define('BG_COUNTER_LOG', dirname(__FILE__ ).'/bg_counter.log');
define('BG_COUNTER_STAT_COUNTERS','https://stat.azbyka.ru/counters'); define('BG_COUNTER_STAT_COUNTERS','https://stat.azbyka.ru/counters');
define('BG_COUNTER_STAT_RAITING','https://stat.azbyka.ru/rating'); define('BG_COUNTER_STAT_RAITING','https://stat.azbyka.ru/rating');
......
...@@ -230,7 +230,7 @@ function verify_post ($id) { ...@@ -230,7 +230,7 @@ function verify_post ($id) {
$post_types = get_post_types( [ 'publicly_queryable'=>1 ] ); $post_types = get_post_types( [ 'publicly_queryable'=>1 ] );
$post_types['page'] = 'page'; // встроенный тип не имеет publicly_queryable $post_types['page'] = 'page'; // встроенный тип не имеет publicly_queryable
unset( $post_types['attachment'] ); // удалим attachment unset( $post_types['attachment'] ); // удалим attachment
if (!in_array($types, $post_types)) return $type; if (!in_array($type, $post_types)) return $type;
$status = $post->post_status; $status = $post->post_status;
return $status; return $status;
......
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