add block-cache-manager.php
This commit is contained in:
@@ -414,13 +414,23 @@
|
||||
function show_post_thumbnail(WP_Post|int $post = null) : bool
|
||||
{
|
||||
|
||||
$post_id = get_the_ID();
|
||||
|
||||
|
||||
$days = get_post_meta(get_the_ID(),'_hide_thumbnail_countdown', true);
|
||||
|
||||
if ($days == 0){ // если ноль - показывать всегда
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
if( hide_thumbnail_by_countdown() ) {
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
if ( is_single() || is_feed() ) {
|
||||
//if ( is_single() || is_feed() ) {
|
||||
|
||||
if ( in_array( get_post_type(), ['anew', 'yellow'] ) && get_the_date("U") < 1719187200 ) {
|
||||
|
||||
@@ -501,7 +511,7 @@
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
//}
|
||||
|
||||
return true;
|
||||
|
||||
@@ -1279,7 +1289,8 @@
|
||||
/**
|
||||
* Сжатие html
|
||||
*/
|
||||
require_once __DIR__ . "/inc/compress-html.php";
|
||||
require_once 'inc/compress-html.php';
|
||||
//require_once __DIR__ . "/inc/compress-html.php";
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user