Changeset 6434
- Timestamp:
- 05/26/2017 10:14:20 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/functions.php
r6432 r6434 1500 1500 'post_status' => $post_status, 1501 1501 'post_type' => $post_type, 1502 'orderby' => array( 1503 'post_date' => 'DESC', 1504 'ID' => 'DESC' 1505 ), 1502 1506 1503 1507 // Maybe change these later -
trunk/src/includes/forums/functions.php
r6430 r6434 2166 2166 $types['meta_query'] = array( 2167 2167 'key' => '_bbp_forum_id', 2168 'value' => $ forum_ids,2168 'value' => $types['string'], 2169 2169 'type' => 'NUMERIC', 2170 2170 'compare' => $compare … … 2358 2358 'post_status' => bbp_get_public_status_id(), 2359 2359 'post_type' => bbp_get_reply_post_type(), 2360 'orderby' => array( 2361 'post_date' => 'DESC', 2362 'ID' => 'DESC' 2363 ), 2360 2364 2361 2365 // Maybe change these later -
trunk/tests/phpunit/testcases/topics/functions/status.php
r5931 r6434 148 148 149 149 $topic_meta_pre_spammed_replies = get_post_meta( $t, '_bbp_pre_spammed_replies', true ); 150 $this->assertEqual s( array( $r[1], $r[0] ), $topic_meta_pre_spammed_replies );150 $this->assertEqualSets( array( $r[1], $r[0] ), $topic_meta_pre_spammed_replies ); 151 151 152 152 $topic_spam_meta_status = get_post_meta( $t, '_bbp_spam_meta_status', true ); … … 215 215 216 216 $topic_meta_pre_spammed_replies = get_post_meta( $t, '_bbp_pre_spammed_replies', true ); 217 $this->assertEqual s( array( $r[1], $r[0] ), $topic_meta_pre_spammed_replies );217 $this->assertEqualSets( array( $r[1], $r[0] ), $topic_meta_pre_spammed_replies ); 218 218 219 219 foreach ( $r as $reply ) {
Note: See TracChangeset
for help on using the changeset viewer.