[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 3 require ( 'admin.php' ); 4 5 if ( !bb_current_user_can( 'manage_tags' ) ) 6 bb_die( __( 'You are not allowed to manage tags.' ) ); 7 8 $tag_id = (int) $_POST['id' ]; 9 10 bb_check_admin_referer( 'destroy-tag_' . $tag_id ); 11 12 if ( !$old_tag = bb_get_tag( $tag_id ) ) 13 bb_die( __( 'Tag not found.' ) ); 14 15 if ( bb_destroy_tag( $tag_id ) ) 16 bb_die( __( 'That tag was successfully destroyed' ) ); 17 else 18 bb_die( printf( __( "Something odd happened when attempting to destroy that tag.<br />\n<a href=\"%s\">Try Again?</a>" ), wp_get_referer() ) ) ; 19 20 ?>
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 |