[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 3 require ( './bb-load.php' ); 4 5 bb_auth( 'logged_in' ); 6 7 if ( !bb_is_user_logged_in() ) 8 bb_die( __( 'You need to be logged in to add a tag.' ) ); 9 10 $topic_id = (int) @$_POST['id' ]; 11 $page = (int) @$_POST['page']; 12 $tag = @$_POST['tag']; 13 $tag = stripslashes( $tag ); 14 15 bb_check_admin_referer( 'add-tag_' . $topic_id ); 16 17 if ( !$topic = get_topic ( $topic_id ) ) 18 bb_die( __( 'Topic not found.' ) ); 19 20 if ( bb_add_topic_tags( $topic_id, $tag ) ) 21 wp_redirect( get_topic_link( $topic_id, $page ) ); 22 else 23 bb_die( __( 'The tag was not added. Either the tag name was invalid or the topic is closed.' ) ); 24 25 exit; 26 27 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Dec 7 01:01:35 2017 | Cross-referenced by PHPXref 0.7.1 |