error when 'orderby' is an array and not a string
-
Line 83 throws an error if
get_query_var('orderby')returns an array instead of string. The following fixes it:if ( ( is_array( get_query_var('orderby') ) && in_array( 'menu_order', array_keys( get_query_var('orderby') ) ) ) || is_string( get_query_var('orderby') ) && 0 === strpos( get_query_var('orderby'), 'menu_order' ) ) {
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘error when 'orderby' is an array and not a string’ is closed to new replies.