Skip to:
Content

bbPress.org


Ignore:
Timestamp:
09/10/2011 10:27:19 PM (13 years ago)
Author:
johnjamesjacoby
Message:

API adjustments:

  • Refactor _status_ vars into callable functions.
  • Audit usage of $bbp global.
  • Perform get_class() checks on extensions to avoid errors if global $bbp is overloaded.
  • Bump DB version to 175.
File:
1 edited

Legend:

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

    r3468 r3505  
    278278
    279279    $forum['visibility']  = array(
    280         'publish' => __( 'Public',  'bbpress' ),
    281         'private' => __( 'Private', 'bbpress' ),
    282         'hidden'  => __( 'Hidden',  'bbpress' )
     280        bbp_get_public_status_id() => __( 'Public',  'bbpress' ),
     281        bbp_get_private_status_id() => __( 'Private', 'bbpress' ),
     282        bbp_get_hidden_status_id()  => __( 'Hidden',  'bbpress' )
    283283    );
    284284    $visibility_output = '<select name="bbp_forum_visibility" id="bbp_forum_visibility_select">' . "\n";
Note: See TracChangeset for help on using the changeset viewer.