We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 19a86f1 + 57dc206 commit e4a4d98Copy full SHA for e4a4d98
inc/class-page.php
@@ -118,7 +118,7 @@ public function get_subpages() : array {
118
$order_b = $b->get_meta( 'order' ) ?? 0;
119
120
if ( $order_a === $order_b ) {
121
- return strnatcasecmp( $a->get_meta( 'title' ), $b->get_meta( 'title' ) );
+ return strnatcasecmp( $a->get_meta( 'title' ) ?? '', $b->get_meta( 'title' ) ?? '' );
122
}
123
124
return $order_a <=> $order_b;
0 commit comments