Skip to content

Commit

Permalink
Developer theme: predefine $adj_index for when it's not found in the …
Browse files Browse the repository at this point in the history
…pages list.
  • Loading branch information
dd32 authored Jan 9, 2025
1 parent c6369f8 commit 1db3a56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/wp-content/themes/wporg-developer-2023/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,8 @@ function get_adjacent_handbook_post_link( $output, $format, $link, $post, $adjac
'post_type' => get_post_type( $post_id ),
)
);

$adj_index = 0;
$is_previous = 'previous' === $adjacent;

foreach ( $pages as $i => $page ) {
Expand Down

0 comments on commit 1db3a56

Please sign in to comment.