diff --git a/class-simple-page-ordering.php b/class-simple-page-ordering.php index 81dcc9a..8098e2d 100644 --- a/class-simple-page-ordering.php +++ b/class-simple-page-ordering.php @@ -435,14 +435,10 @@ public static function page_row_actions( $actions, $post ) { // Get the relevant siblings. if ( 0 === $post->post_parent ) { - $siblings = $top_level_pages; - } else { - if (isset($children_pages[$post->post_parent])) { - $siblings = $children_pages[$post->post_parent]; - } else { - $siblings = []; - } - } + $siblings = $top_level_pages; + } else { + $siblings = $children_pages[ $post->post_parent ] ?? []; + } // Assume no sibling. $sibling = 0;