Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/05/2014 07:08:27 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Allow topic-tag descriptions to be edited theme-side. Props netweb. Fixes #1613.

File:
1 edited

Legend:

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

    r5223 r5310  
    18351835
    18361836            // Attempt to update the tag
    1837             $slug = !empty( $_POST['tag-slug'] ) ? $_POST['tag-slug'] : '';
    1838             $tag  = wp_update_term( $tag_id, bbp_get_topic_tag_tax_id(), array( 'name' => $name, 'slug' => $slug ) );
     1837            $slug        = !empty( $_POST['tag-slug']        ) ? $_POST['tag-slug']        : '';
     1838            $description = !empty( $_POST['tag-description'] ) ? $_POST['tag-description'] : '';
     1839            $tag         = wp_update_term( $tag_id, bbp_get_topic_tag_tax_id(), array( 'name' => $name, 'slug' => $slug, 'description' => $description ) );
    18391840
    18401841            // Cannot update tag
     
    18481849
    18491850            // Update counts, etc...
    1850             do_action( 'bbp_update_topic_tag', $tag_id, $tag, $name, $slug );
     1851            do_action( 'bbp_update_topic_tag', $tag_id, $tag, $name, $slug, $description );
    18511852
    18521853            break;
Note: See TracChangeset for help on using the changeset viewer.