Multiple blogs update

In my last post I described how I use a single WP installation for multiple blogs.

In this support forum topic MarsChelios suggests a more elegant looking capabilities.php fix:

if (defined ('CUSTOM_CAPABILITIES_PREFIX')) {
  $this->cap_key = CUSTOM_CAPABILITIES_PREFIX . 'capabilities';
}
else {
  $this->cap_key = $wpdb->prefix . 'capabilities';
}

which lets you configure which capabilities table you want to use in your wp-config.php. Of course this still means hacking the WP source, so really making it configurable is just a matter of aesthetics and not maintainability.

The same forum thread points out that this is ‘broken’ on purpose, as these trac tickets make clear. You’re supposed to be able to have different capabilities for each blog, even if the user tables are shared. This actually makes sense. I need to look into this more.

One Response to “Multiple blogs update”

  1. [...] Engine Life with WordPress and friends « Multiple blogs update [...]