privacy
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user