Skip to content

Commit

Permalink
Handle view transitions nicely for header.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixarntz committed Feb 20, 2025
1 parent 1c6592f commit 0d7b15e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wp-includes/theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -2938,7 +2938,9 @@ function add_theme_support( $feature, ...$args ) {
case 'view-transitions':
$defaults = array(
'post-selector' => '.wp-block-post.post, article.post, body.single main',
'global-transition-names' => array(),
'global-transition-names' => array(
'header' => 'header',
),
'post-transition-names' => array(
'post-title' => '.wp-block-post-title, .entry-title',
'post-thumbnail' => '.wp-post-image',
Expand Down

0 comments on commit 0d7b15e

Please sign in to comment.