Add no-index to non-public page templates

This commit is contained in:
Tetrakern 2024-06-09 10:43:12 +02:00
parent 16df0286c7
commit c78448f8f0
5 changed files with 5 additions and 5 deletions

View File

@ -12,7 +12,7 @@
$custom_404 = intval( get_option( 'fictioneer_404_page', -1 ) ?: -1 );
// Header
get_header();
get_header( null, array( 'no_index' => 1 ) );
?>

View File

@ -20,7 +20,7 @@ if ( ! get_option( 'fictioneer_enable_bookmarks' ) ) {
}
// Header
get_header();
get_header( null, array( 'no_index' => 1 ) );
?>

View File

@ -64,7 +64,7 @@ if ( ! array_key_exists( $current_tab, $tabs ) ) {
$tabs[ $current_tab ]['classes'][] = '_current';
// Header
get_header();
get_header( null, array( 'no_index' => 1 ) );
?>

View File

@ -80,7 +80,7 @@ if ( ! array_key_exists( $current_tab, $tabs ) ) {
$tabs[ $current_tab ]['classes'][] = '_current';
// Header
get_header();
get_header( null, array( 'no_index' => 1 ) );
?>

View File

@ -56,7 +56,7 @@ $hook_args = array(
);
// Header
get_header( null, array( 'type' => 'user-profile' ) );
get_header( null, array( 'type' => 'user-profile', 'no_index' => 1 ) );
?>