Inline Related Posts как вывести в rss

С8
На сайте с 23.08.2012
Offline
108
339

Здравствуйте! Яндекс прислал предупреждение, мол Турбо страница не идентична странице на сайте. На Турбо страницах не выводится плагин Inline Related Posts (внутренняя перелинковка в статьях). В связи с этим вопрос - как вывести внутреннюю перелинковку в rss? Лента создана плагином Яндекс.Турбо. Я уже и все файлы плагина Inline Related Posts пересмотрела, на наличие кода, запрещающего вывод в rss, но ничего не нашла. Вот код плагина:

<?php

spl_autoload_register('irp_autoload');
function irp_autoload($class) {
$root=dirname(__FILE__).'/includes/classes/';
irp_autoload_root($root, $class);
}
function irp_autoload_root($root, $class) {
$slash=substr($root, strlen($root)-1);
if($slash!='/' && $slash!='\\') {
$root.='/';
}
$name=str_replace(IRP_PLUGIN_PREFIX, '', $class);
if(strpos($class, IRP_PLUGIN_PREFIX)===FALSE) {
//autoload only plugin classes
return;
}

$h=opendir($root);
while($file=readdir($h)) {
if(is_dir($root.$file) && $file != '.' && $file != '..') {
irp_autoload_root($root.$file, $class);
} elseif(file_exists($root.$name.'.php')) {
include_once($root.$name.'.php');
} elseif(file_exists($root.$class.'.php')) {
include_once($root.$class.'.php');
}
}
}
function irp_include_php($root) {
$h=opendir($root);
$slash=substr($root, strlen($root)-1);
if($slash!='/' && $slash!='\\') {
$root.='/';
}

while($file=readdir($h)) {
if(is_dir($root.$file) && $file != '.' && $file != '..'){
irp_include_php($root.$file);
} elseif(strlen($file)>5) {
$ext='.php';
$length=strlen($ext);
$start=$length*-1; //negative
if(strcasecmp(substr($file, $start), $ext)==0) {
include_once($root.$file);
}
}
}
}

Может кто подскажет, что еще можно сделать?

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий