Skip to:
Content

bbPress.org

Ticket #1791: patch.diff

File patch.diff, 691 bytes (added by jaredatch, 13 years ago)
  • bbp-topic-template.php

     
    32093209         * @return string Value of topic tags field
    32103210         */
    32113211        function bbp_get_form_topic_tags() {
    3212 
     3212                global $post;
     3213               
    32133214                // Get _POST data
    32143215                if ( 'post' == strtolower( $_SERVER['REQUEST_METHOD'] ) && isset( $_POST['bbp_topic_tags'] ) ) {
    32153216                        $topic_tags = $_POST['bbp_topic_tags'];
    32163217
    32173218                // Get edit data
    3218                 } elseif ( bbp_is_topic_edit() || bbp_is_reply_edit() ) {
     3219                } elseif ( !empty( $post ) ) {
    32193220
    32203221                        // Determine the topic id based on the post type
    32213222                        switch ( get_post_type() ) {