Changeset 5310 for trunk/src/includes/topics/functions.php
- Timestamp:
- 03/05/2014 07:08:27 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/functions.php
r5223 r5310 1835 1835 1836 1836 // 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 ) ); 1839 1840 1840 1841 // Cannot update tag … … 1848 1849 1849 1850 // 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 ); 1851 1852 1852 1853 break;
Note: See TracChangeset
for help on using the changeset viewer.