Changes between Initial Version and Version 1 of Ticket #18063
- Timestamp:
- 07/10/2011 06:24:44 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18063 – Description
initial v1 3 3 [Mon Jul 11 00:04:56 2011] [error] [client 127.0.0.1] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in C:\\applications\\nubee\\htdocs\\wp-includes\\query.php on line 2891, referer: http://wordpress_site/?category_name=game-zh-hans&lang=zh-hans&lang=zh-hans 4 4 5 This is the proposed fix 6 ----------------------------------- 5 This is the proposed fix: 7 6 7 {{{ 8 8 if(isset($query['terms'] )){ 9 9 $term = get_term_by( $query['field'], reset( $query['terms'] ), $query['taxonomy'] ); … … 12 12 $term = get_term_by( $query['field'], $query['terms'] , $query['taxonomy'] ); 13 13 } 14 }}}