Skip to:
Content

BuddyPress.org

Changeset 7569 for trunk/bp-loader.php


Ignore:
Timestamp:
11/13/2013 02:47:20 AM (11 years ago)
Author:
boonebgorges
Message:

Sound the knell for the BuddyPress Default theme

bp-default is being sunsetted as of BP 1.9. The theme will continue to receive
security updates and other critical fixes, but will otherwise no longer be
under active development by the core team.

We maintain backward compatibility with sites currently using bp-default by
continuing to register the bp-themes theme directory when bp-default, or a
child theme thereof, is in use on a given site. Those sites will continue to
be able to use the theme. Installations where bp-default is not already in use
will no longer see it listed on Dashboard > Appearance.

Site administrators or developers who want to override this behavior may do so
with the 'bp_do_register_theme_directory' filter. Please note that bp-themes
will be removed altogether from BuddyPress in a future version, likely migrated
to wordpress.org/extend. See #5212.

Now cracks a noble heart. Good-night, sweet prince;
And flights of angels sing thee to thy rest.

Fixes #5223

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-loader.php

    r7551 r7569  
    525525
    526526    /**
    527      * Setup the BuddyPress theme directory
    528      *
    529      * @since BuddyPress (1.5)
    530      * @todo Move bp-default to wordpress.org/extend/themes and remove this
     527     * Set up BuddyPress's legacy theme directory.
     528     *
     529     * Starting with version 1.2, and ending with version 1.8, BuddyPress
     530     * registered a custom theme directory - bp-themes - which contained
     531     * the bp-default theme. Since BuddyPress 1.9, bp-themes is no longer
     532     * registered (and bp-default no longer offered) on new installations.
     533     * Sites using bp-default (or a child theme of bp-default) will
     534     * continue to have bp-themes registered as before.
     535     *
     536     * @since BuddyPress (1.5.0)
     537     *
     538     * @todo Move bp-default to wordpress.org/extend/themes and remove this.
    531539     */
    532540    public function register_theme_directory() {
     541        if ( ! bp_do_register_theme_directory() ) {
     542            return;
     543        }
     544
    533545        register_theme_directory( $this->old_themes_dir );
    534546    }
Note: See TracChangeset for help on using the changeset viewer.