WordPress.org

Ready to get started?Download WordPress

Forums

Simple Custom Post Order
Bug with wp 3.7 (1 post)

5 stars
  1. GiedriusV
    Member
    Posted 8 months ago #

    After category editing no children are shown in list because "reorder_terms()" method treats $object array elements as objects, but they are only parent ID's.

    This should fix the bug:

    if(is_object($object)){
    if ( !isset( $object->term_id ) ){
    continue;
    }else{
    $term_id = $object->term_id;
    }
    }else{
    $term_id = $key;
    }

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.