Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/12/2012 04:22:28 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Capabilities & Settings:

  • Introduce bbp_admin_show_ui() function to handle fine-grained control of available settings screens and sections.
  • Fixes #1846.
  • See #1826.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbpress.php

    r3928 r3945  
    679679                'show_in_nav_menus'   => true,
    680680                'public'              => true,
    681                 'show_ui'             => true,
     681                'show_ui'             => bbp_admin_show_ui( bbp_get_forum_post_type() ),
    682682                'can_export'          => true,
    683683                'hierarchical'        => true,
     
    736736                'show_in_nav_menus'   => false,
    737737                'public'              => true,
    738                 'show_ui'             => true,
     738                'show_ui'             => bbp_admin_show_ui( bbp_get_topic_post_type() ),
    739739                'can_export'          => true,
    740740                'hierarchical'        => false,
     
    793793                'show_in_nav_menus'   => false,
    794794                'public'              => true,
    795                 'show_ui'             => true,
     795                'show_ui'             => bbp_admin_show_ui( bbp_get_reply_post_type() ),
    796796                'can_export'          => true,
    797797                'hierarchical'        => false,
     
    925925                'hierarchical'          => false,
    926926                'public'                => true,
    927                 'show_ui'               => true
     927                'show_ui'               => bbp_admin_show_ui( bbp_get_topic_tag_tax_id() )
    928928            )
    929929        ) );
Note: See TracChangeset for help on using the changeset viewer.