Skip to:
Content

bbPress.org


Ignore:
Timestamp:
01/09/2011 10:06:53 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Introduce views API into plugin. Allows for creating specific topic views with code rather than with templates. The 'no-replies' view is included as default. Props GautamGupta via Google Code-in

File:
1 edited

Legend:

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

    r2787 r2789  
    224224        add_settings_field( '_bbp_user_slug',       __( 'User base',     'bbpress' ), 'bbp_admin_setting_callback_user_slug',       'bbpress', 'bbp_slugs' );
    225225        register_setting  ( 'bbpress',              '_bbp_user_slug',                 'sanitize_title'                                                     );
     226
     227        // View slug setting
     228        add_settings_field( '_bbp_view_slug',       __( 'View base',     'bbpress' ), 'bbp_admin_setting_callback_view_slug',       'bbpress', 'bbp_slugs' );
     229        register_setting  ( 'bbpress',              '_bbp_view_slug',                 'sanitize_title'                                                     );
    226230
    227231        // Forum slug setting
Note: See TracChangeset for help on using the changeset viewer.