[wp-hackers] WPMU Category ID Updating

Tim Schoffelman tim at blendinteractive.com
Thu Jan 28 22:26:36 UTC 2010

@Brian - thanks for your reply & yeah, that is the question I asked a month
or so ago & yeah, I don't remember reading your response, but I thought the
thread in the list just died out.

I think we'll take a hard look at using the remove_filter() functions you
stated earlier, but we'll also have to consider how bad that will break any
other functionality we may have related to the category ID.

Do you know if there's any conversation going on on with the WordPress MU
developers on addressing this issue? I can't imagine we're the only ones
running into this issue where changing the term_id impacts functionality in
your theme.

Tim Schoffelman

On Thu, Jan 28, 2010 at 10:58 AM, Brian Layman <Brian at thecodecave.com>wrote:

> (If Tim Schoffelman is around, this also answers his December question of "
> [wp-hackers] WordPress MU Category Slugs: Was/is there a reason why
> WordPress MU doesn't allow category slugs to be edited?")
> There is code in WPmu that is there to further some non-standard features
> (re: the whole site-category table). When importing all of the b5media
> sites
> into MU, I had to disable all of that because it has some fundamental
> flaws.
> Mark Jaquith and I spent hours going over the code and decided that
> disabling it was the ideal solution. It does exactly what you have been
> describing.
> In short, there is an attempt to keep all slugs matching the category name
> and to have all categories use the same IDs across the board. However, the
> matching of slug and category conflicts with pre-existing imports and you
> will very quickly find your Google 404s cranking up as your permalinks
> change.  Additionally, because tags and cats both get term IDs and only
> category ids are synchronized between blogs, collisions between
> site-categories and individual blog term tables are quite likely. At that
> point, you get key violations that aren't handled well by the editor
> displayed only as "Cannot edit" or something along those lines.
> I've disable both of these mu customizations with a plugin that has these
> lines:
> remove_filter ( 'term_id_filter', 'global_terms', 10, 2 );
> remove_filter( 'get_term', 'sync_category_tag_slugs', 10, 2 );
> YMMV, but I think this is what you are seeing.
> This is the exact text I'd sent to reply to the thread "WordPress MU
> Category Slugs" from back in December, but that post never made it to the
> list.
> - Brian Layman
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list