This commit is contained in:
2026-07-05 14:32:53 +03:00
parent 42f8a380a0
commit 0ed4f599fd
3 changed files with 2 additions and 14 deletions

View File

@@ -83,12 +83,6 @@ function sev_tort_meta_tags() {
$robots = ! empty( $page['indexable'] ) ? 'index, follow' : 'noindex, nofollow';
printf( '<meta name="robots" content="%s">' . "\n", esc_attr( $robots ) );
if ( 'politika-konfidencialnosti' === $page['slug'] ) {
printf( '<meta name="description" content="%s">' . "\n", esc_attr( 'Политика в отношении обработки персональных данных посетителей сайта sevastopol-tort.ru.' ) );
printf( '<link rel="canonical" href="%s">' . "\n", esc_url( home_url( '/' . $page['slug'] . '/' ) ) );
return;
}
if ( ! empty( $page['description'] ) ) {
$description = ! empty( $page['seo_description'] ) ? $page['seo_description'] : $page['description'];
printf( '<meta name="description" content="%s">' . "\n", esc_attr( $description ) );
@@ -117,12 +111,6 @@ function sev_tort_wp_robots( $robots ) {
return $robots;
}
if ( $page && 'politika-konfidencialnosti' === $page['slug'] ) {
unset( $robots['index'], $robots['follow'] );
$robots['noindex'] = true;
$robots['nofollow'] = true;
}
if ( ! $page && is_front_page() ) {
unset( $robots['noindex'], $robots['nofollow'] );
$robots['index'] = true;