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-includes/bbp-core-shortcodes.php

    r3395 r3505  
    757757     * @since bbPress (r3302)
    758758     *
    759      * @global bbPress $bbp
    760      *
    761759     * @return string
    762760     */
    763761    public function display_login() {
    764         global $bbp;
    765762
    766763        // Unset globals
     
    785782     * @since bbPress (r3302)
    786783     *
    787      * @global bbPress $bbp
    788      *
    789784     * @return string
    790785     */
    791786    public function display_register() {
    792         global $bbp;
    793787
    794788        // Unset globals
     
    813807     * @since bbPress (r3302)
    814808     *
    815      * @global bbPress $bbp
    816      *
    817809     * @return string
    818810     */
    819811    public function display_lost_pass() {
    820         global $bbp;
    821812
    822813        // Unset globals
     
    842833     *
    843834     * @since bbPress (r3302)
    844      *
    845      * @global bbPress $bbp
    846835     *
    847836     * @return string
     
    875864    global $bbp;
    876865
     866    // Bail if bbPress is not loaded
     867    if ( 'bbPress' !== get_class( $bbp ) ) return;
     868
    877869    $bbp->shortcodes = new BBP_Shortcodes();
    878870}
Note: See TracChangeset for help on using the changeset viewer.