Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/04/2017 03:54:06 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Queries: Use new object_type over old post_type.

When bbp_get_user_object_ids() was introduced, some helpers did not get updated to use the new argument key. This change fixes that, and fixes failing tests in the process.

Note that these tests are testing new & unused helper functions for 2.6, so it's unlikely any noticable problems occurred from these being broken.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/topics/functions.php

    r6607 r6612  
    18241824    // Filter & return
    18251825    return (array) apply_filters( 'bbp_get_topic_statuses', array(
    1826         bbp_get_public_status_id()  => _x( 'Open',    'Open the topic',        'bbpress' ),
    1827         bbp_get_closed_status_id()  => _x( 'Closed',  'Close the topic',       'bbpress' ),
    1828         bbp_get_spam_status_id()    => _x( 'Spam',    'Spam the topic',        'bbpress' ),
    1829         bbp_get_trash_status_id()   => _x( 'Trash',   'Trash the topic',       'bbpress' ),
    1830         bbp_get_pending_status_id() => _x( 'Pending', 'Mark topic as pending', 'bbpress' ),
     1826        bbp_get_public_status_id()  => _x( 'Open',    'Open the topic',      'bbpress' ),
     1827        bbp_get_closed_status_id()  => _x( 'Closed',  'Close the topic',     'bbpress' ),
     1828        bbp_get_spam_status_id()    => _x( 'Spam',    'Spam the topic',      'bbpress' ),
     1829        bbp_get_trash_status_id()   => _x( 'Trash',   'Trash the topic',     'bbpress' ),
     1830        bbp_get_pending_status_id() => _x( 'Pending', 'Unapprove the topic', 'bbpress' )
    18311831    ), $topic_id );
    18321832}
Note: See TracChangeset for help on using the changeset viewer.