Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/10/2011 06:24:38 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Remove unused bbp_new_forum_admin_handler() function, and move $parent_id check into metabox_save(). Fixes #1555. Props DJPaul for original catch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-admin/bbp-forums.php

    r3309 r3310  
    226226     */
    227227    function attributes_metabox_save( $forum_id ) {
    228         global $bbp;
    229228
    230229        // Bail if doing an autosave
     
    290289            }
    291290        }
     291
     292        // Parent ID
     293        $parent_id = ( !empty( $_POST['parent_id'] ) && is_numeric( $_POST['parent_id'] ) ) ? $_POST['parent_id'] : 0;
     294
     295        // Update the forum meta bidness
     296        bbp_update_forum( array(
     297            'forum_id'    => $forum_id,
     298            'post_parent' => (int) $parent_id
     299        ) );
    292300
    293301        do_action( 'bbp_forum_attributes_metabox_save', $forum_id );
Note: See TracChangeset for help on using the changeset viewer.