[buddypress-trac] [BuddyPress Trac] #5652: root_blog_id problem since trunk has been "gruntified" for website using trunk version

buddypress-trac noreply at wordpress.org
Sat May 24 19:35:24 UTC 2014


#5652: root_blog_id problem since trunk has been "gruntified" for website using
trunk version
--------------------------+-----------------------
 Reporter:  imath         |       Owner:  imath
     Type:  defect (bug)  |      Status:  reopened
 Priority:  high          |   Milestone:  2.1
Component:  Core          |     Version:  2.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------

Comment (by r-a-y):

 `ray.patch` is my attempt at streamlining the whole path / URL variables.

 In the stub `bp-loader.php`:
 * `BP_PLUGIN_DIR` and `BP_PLUGIN_URL` are defined so these constants take
 precedence over the ones in the main bp-loader.php file.
 * `BP_PLUGIN_URL` uses a slightly different algorithm to be nice to
 symlinked directories as `plugin_dir_url()` doesn't work properly in these
 instances.
 * A new define - `BP_LOAD_MODE` - is added to determine what type of
 source is being loaded.

 In the main `bp-loader.php` file:
 * `BP_PLUGIN_DIR` and `BP_PLUGIN_URL` are tweaked to take advantage of
 newer fixes in WP core
 * The `file` and `basename` are calculated based off the `BP_PLUGIN_DIR`
 constant
 * `plugin_dir` and `plugin_url` are set to whatever build is running

 This works in both trunk and build modes.  Bonus is BP is now symlink-
 compatible without having to manually define the `BP_PLUGIN_DIR` and
 `BP_PLUGIN_URL` constants.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5652#comment:11>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list