Fix warning notice when ['selected_post_ids'] is empty
Move show_on_front_checkbox() call inside widget() method
Change posts_per_page to all posts in #get_posts_for_post_type()