Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/19/2012 05:58:33 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Forums:

  • Do not disable categories on forum parent drop downs in wp-admin.
  • Disable forum parents in topic and reply edits if user cannot edit forums.
  • This is to prevent innocent users from accidentally putting content in a forum category.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/admin/metaboxes.php

    r4417 r4438  
    315315            'show_none'          => __( '— No parent —', 'bbpress' ),
    316316            'none_found'         => false,
    317             'disable_categories' => true,
     317            'disable_categories' => false,
    318318            'disabled'           => ''
    319319        ) ); ?>
     
    373373            'show_none'          => __( '— No parent —', 'bbpress' ),
    374374            'none_found'         => false,
    375             'disable_categories' => true,
     375            'disable_categories' => current_user_can( 'edit_forums' ),
    376376            'disabled'           => ''
    377377        ) ); ?>
     
    426426                'show_none'          => __( '— No parent —', 'bbpress' ),
    427427                'none_found'         => false,
    428                 'disable_categories' => true,
     428                'disable_categories' => current_user_can( 'edit_forums' ),
    429429                'disabled'           => ''
    430430            ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.