Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/20/2011 09:39:16 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Add topic sticky dropdown to wp-admin metabox. Fixes #1625. Props GautamGupta.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-topic-template.php

    r3621 r3624  
    26202620 *  - topic_id: Topic id
    26212621 * @uses bbp_get_topic_id() To get the topic id
     2622 * @uses bbp_is_single_topic() To check if we're viewing a single topic
    26222623 * @uses bbp_is_topic_edit() To check if it is the topic edit page
    26232624 * @uses bbp_is_topic_super_sticky() To check if the topic is a super sticky
     
    26382639    extract( $r );
    26392640
    2640     // Get current topic id
    2641     $topic_id = bbp_get_topic_id( $topic_id );
    2642 
    26432641    // Edit topic
    2644     if ( bbp_is_topic_edit() ) {
     2642    if ( bbp_is_single_topic() || bbp_is_topic_edit() ) {
     2643
     2644        // Get current topic id
     2645        $topic_id = bbp_get_topic_id( $topic_id );
    26452646
    26462647        // Post value is passed
Note: See TracChangeset for help on using the changeset viewer.