Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/18/2012 08:51:20 PM (12 years ago)
Author:
boonebgorges
Message:

In wizard, generate asset URLs using $bp->file rather than '/buddypress/'

By passing $bp->file into the plugins_url() function, we're able to make it
easier to change the buddypress plugin directory name.

See #2945

Props cnorris23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-update.php

    r6108 r6113  
    252252
    253253        if ( !function_exists( 'bp_core_admin_components_options' ) )
    254             require ( WP_PLUGIN_DIR . '/buddypress/bp-core/admin/bp-core-components.php' ); ?>
     254            require ( BP_PLUGIN_DIR . 'bp-core/admin/bp-core-components.php' ); ?>
    255255
    256256        <p><?php _e( "BuddyPress bundles several individual social components together, each one adding a distinct feature. This first step decides which features are enabled on your site; all features are enabled by default. Don't worry, you can change your mind at any point in the future.", 'buddypress' ); ?></p>
     
    514514
    515515    function step_theme() {
     516        global $bp;
    516517
    517518        $installed_plugins = get_plugins();
     
    557558                <th>
    558559                    <h5><?php _e( 'Use BuddyPress Default', 'buddypress' ); ?></h5>
    559                     <img src="<?php echo plugins_url( '/buddypress/bp-themes/bp-default/screenshot.png' ); ?>" alt="<?php _e( 'BuddyPress Default', 'buddypress' ); ?>" />
     560                    <img src="<?php echo plugins_url( 'bp-themes/bp-default/screenshot.png', $bp->file ); ?>" alt="<?php _e( 'BuddyPress Default', 'buddypress' ); ?>" />
    560561                </th>
    561562                <td>
     
    571572                    <th>
    572573                        <h5><?php _e( 'Other themes', 'buddypress' ); ?></h5>
    573                         <img src="<?php echo plugins_url( '/buddypress/bp-core/admin/images/find.png' ); ?>" alt="<?php _e( 'A BuddyPress theme', 'buddypress' ); ?>" />
     574                        <img src="<?php echo plugins_url( 'bp-core/admin/images/find.png', $bp->file ); ?>" alt="<?php _e( 'A BuddyPress theme', 'buddypress' ); ?>" />
    574575                    </th>
    575576                    <td>
Note: See TracChangeset for help on using the changeset viewer.