[ 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 $tag = stripslashes( $_POST['tag'] ); 10 11 bb_check_admin_referer( 'rename-tag_' . $tag_id ); 12 13 if ( !$old_tag = bb_get_tag( $tag_id ) ) 14 bb_die( __( 'Tag not found.' ) ); 15 16 if ( $tag = bb_rename_tag( $tag_id, $tag ) ) 17 wp_redirect( bb_get_tag_link() ); 18 else 19 bb_die( printf( __( 'There already exists a tag by that name or the name is invalid. <a href="%s">Try Again</a>'), wp_get_referer() ) ); 20 21 exit; 22 23 ?>
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 |