Support » Plugin: SEO Ultimate » Please, switch from _usort_terms_by_ID to wp_list_sort()

  • _usort_terms_by_ID has been deprecated. Please, switch to wp_list_sort.
    Here I propose a fix, based on work done by woocommerce to fix similar issue.

    			if ( function_exists( 'wp_list_sort' ) ) {
    				$categories = wp_list_sort( $categories, 'term_id', 'ASC' );
    			} else {
    				usort( $categories, '_usort_terms_by_ID' );
    			}

    Where can I make a PR for this to be reviewed and approved?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Please, switch from _usort_terms_by_ID to wp_list_sort()’ is closed to new replies.