Illegal string offset 'orderby'
-
This plugin throws this error because of a check against an argument that may not be set – this fix should overcome that:
// By default, the array is sorted ASC; sort DESC if needed if ( ( isset( $args['order'] ) && isset( $args['orderby'] ) && $args['orderby'] == $this->orderby_parameter && $args['order'] == 'DESC' ) || ( isset( $args['orderby'] ) && $args['orderby'] != $this->orderby_parameter && $this->get_sort_order() == 'DESC' ) ) { krsort( $ordered_terms ); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Illegal string offset 'orderby'’ is closed to new replies.