Changeset 3505 for branches/plugin/bbp-admin/bbp-forums.php
- Timestamp:
- 09/10/2011 10:27:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-admin/bbp-forums.php
r3376 r3505 242 242 // Category? 243 243 if ( !empty( $_POST['bbp_forum_type'] ) && in_array( $_POST['bbp_forum_type'], array( 'forum', 'category' ) ) ) { 244 if ( 'category' == $_POST['bbp_forum_type'] && !bbp_is_forum_category( $forum_id ) ) 244 if ( 'category' == $_POST['bbp_forum_type'] && !bbp_is_forum_category( $forum_id ) ) { 245 245 bbp_categorize_forum( $forum_id ); 246 elseif ( 'forum' == $_POST['bbp_forum_type'] && bbp_is_forum_category( $forum_id ) )246 } elseif ( 'forum' == $_POST['bbp_forum_type'] && bbp_is_forum_category( $forum_id ) ) { 247 247 bbp_normalize_forum( $forum_id ); 248 } 248 249 } 249 250 250 251 // Visibility 251 if ( !empty( $_POST['bbp_forum_visibility'] ) && in_array( $_POST['bbp_forum_visibility'], array( 'publish', 'private', 'hidden') ) ) {252 if ( !empty( $_POST['bbp_forum_visibility'] ) && in_array( $_POST['bbp_forum_visibility'], array( bbp_get_public_status_id(), bbp_get_private_status_id(), bbp_get_hidden_status_id() ) ) ) { 252 253 253 254 // Get forums current visibility … … 261 262 262 263 // Hidden 263 case 'hidden':264 case bbp_get_hidden_status_id() : 264 265 bbp_hide_forum( $forum_id, $visibility ); 265 266 break; 266 267 267 268 // Private 268 case 'private':269 case bbp_get_private_status_id() : 269 270 bbp_privatize_forum( $forum_id, $visibility ); 270 271 break; 271 272 272 273 // Publish (default) 273 case 'publish':274 case bbp_get_public_status_id() : 274 275 default : 275 276 bbp_publicize_forum( $forum_id, $visibility ); … … 553 554 global $bbp; 554 555 556 // Bail if bbPress is not loaded 557 if ( 'bbPress' !== get_class( $bbp ) ) return; 558 555 559 $bbp->admin->forums = new BBP_Forums_Admin(); 556 560 }
Note: See TracChangeset
for help on using the changeset viewer.