Skip to content

Commit

Permalink
Merge pull request #219 from xDehy/develop
Browse files Browse the repository at this point in the history
Undefined array key error when viewing pages in admin panel
  • Loading branch information
peterwilsoncc authored Aug 15, 2024
2 parents 29b5d13 + 642c02a commit 4b8dbc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class-simple-page-ordering.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public static function page_row_actions( $actions, $post ) {
if ( 0 === $post->post_parent ) {
$siblings = $top_level_pages;
} else {
$siblings = $children_pages[ $post->post_parent ];
$siblings = $children_pages[ $post->post_parent ] ?? [];
}

// Assume no sibling.
Expand Down

0 comments on commit 4b8dbc3

Please sign in to comment.