$title =
apply_filters( 'widget_title',
$title,
$instance,
$this->id_base
);
$sortby =
empty( $instance['sortby'
] ) ? 'menu_order' :
$instance['sortby'
];
$exclude =
empty( $instance['exclude'
] ) ? '' :
$instance['exclude'
];
if ( 'menu_order' ===
$sortby ) { $sortby = 'menu_order, post_title';
} $output =
wp_list_pages( /**
* Filters the arguments for the Pages widget.
*
* @since 2.8.0
* @since 4.9.0 Added the `$instance` parameter.
*
* @see wp_list_pages()
*
* @param array $args An array of arguments to retrieve the pages list.
* @param array $instance Array of settings for the current widget.
*/