Changeset 5310
- Timestamp:
- 03/05/2014 07:08:27 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 4 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; -
trunk/src/templates/default/bbpress/content-archive-topic.php
r4971 r5310 24 24 <?php bbp_breadcrumb(); ?> 25 25 26 <?php if ( bbp_is_topic_tag() ) bbp_topic_tag_description(); ?> 26 <?php do_action( 'bbp_template_before_topic_tag_description' ); ?> 27 28 <?php if ( bbp_is_topic_tag() ) : ?> 29 30 <?php bbp_topic_tag_description( array( 'before' => '<div class="bbp-template-notice info"><p>', 'after' => '</p></div>' ) ); ?> 31 32 <?php endif; ?> 33 34 <?php do_action( 'bbp_template_after_topic_tag_description' ); ?> 27 35 28 36 <?php do_action( 'bbp_template_before_topics_index' ); ?> -
trunk/src/templates/default/bbpress/content-topic-tag-edit.php
r4733 r5310 14 14 <?php bbp_breadcrumb(); ?> 15 15 16 <?php bbp_topic_tag_description(); ?> 16 <?php do_action( 'bbp_template_before_topic_tag_description' ); ?> 17 18 <?php bbp_topic_tag_description( array( 'before' => '<div class="bbp-template-notice info"><p>', 'after' => '</p></div>' ) ); ?> 19 20 <?php do_action( 'bbp_template_after_topic_tag_description' ); ?> 17 21 18 22 <?php do_action( 'bbp_template_before_topic_tag_edit' ); ?> -
trunk/src/templates/default/bbpress/form-topic-tag.php
r4733 r5310 40 40 <label for="tag-slug"><?php _e( 'Slug:', 'bbpress' ); ?></label> 41 41 <input type="text" id="tag-slug" name="tag-slug" size="20" maxlength="40" tabindex="<?php bbp_tab_index(); ?>" value="<?php echo esc_attr( apply_filters( 'editable_slug', bbp_get_topic_tag_slug() ) ); ?>" /> 42 </div> 43 44 <div> 45 <label for="tag-description"><?php _e( 'Description:', 'bbpress' ); ?></label> 46 <input type="text" id="tag-description" name="tag-description" size="20" tabindex="<?php bbp_tab_index(); ?>" value="<?php echo esc_attr( bbp_get_topic_tag_description( array( 'before' => '', 'after' => '' ) ) ); ?>" /> 42 47 </div> 43 48
Note: See TracChangeset
for help on using the changeset viewer.