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