Changeset 23332
- Timestamp:
- 01/22/2013 10:38:46 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.5/wp-includes/comment.php
r23330 r23332 291 291 ); 292 292 if ( ! empty( $this->query_vars['meta_key'] ) ) { 293 $allowed_keys[] = $ q['meta_key'];293 $allowed_keys[] = $this->query_vars['meta_key']; 294 294 $allowed_keys[] = 'meta_value'; 295 295 $allowed_keys[] = 'meta_value_num'; … … 297 297 $ordersby = array_intersect( $ordersby, $allowed_keys ); 298 298 foreach ( $ordersby as $key => $value ) { 299 if ( $value == $ q['meta_key'] || $value == 'meta_value' ) {299 if ( $value == $this->query_vars['meta_key'] || $value == 'meta_value' ) { 300 300 $ordersby[ $key ] = "$wpdb->commentmeta.meta_value"; 301 301 } elseif ( $value == 'meta_value_num' ) {
Note: See TracChangeset
for help on using the changeset viewer.