Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/19/2016 07:42:24 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Statuses, Types, Visibilities: bbp_get_topic_types() usages were missed in r6026.

See #2954.

File:
1 edited

Legend:

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

    r6026 r6027  
    753753        /** Stickies **********************************************************/
    754754
    755         if ( ! empty( $_POST['bbp_stick_topic'] ) && in_array( $_POST['bbp_stick_topic'], array_keys( bbp_get_topic_types() ) ) ) {
     755        // Get the topic types
     756        $topic_types = bbp_get_topic_types( $topic_id );
     757
     758        // Maybe sticky
     759        if ( ! empty( $_POST['bbp_stick_topic'] ) && in_array( $_POST['bbp_stick_topic'], array_keys( $topic_types ) ) ) {
    756760
    757761            // What's the caps?
Note: See TracChangeset for help on using the changeset viewer.