Wrapper for wp_get_post_terms to handle parent sorting. Closes #3762. Closes #3758

@coenjacobs for .15