WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18063


Ignore:
Timestamp:
07/10/2011 06:24:44 PM (8 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18063 – Description

    initial v1  
    33[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
    44
    5 This is the proposed fix
    6 -----------------------------------
     5This is the proposed fix:
    76
     7{{{
    88                                if(isset($query['terms'] )){
    99                                        $term = get_term_by( $query['field'], reset( $query['terms'] ), $query['taxonomy'] );
     
    1212                                        $term = get_term_by( $query['field'], $query['terms'] , $query['taxonomy'] );                           
    1313                                }
     14}}}