[wp-hackers] WPMU Category ID Updating
Tim Schoffelman
tim at blendinteractive.com
Wed Jan 27 22:21:58 UTC 2010
@Jeremy
> Is it possible you're looking at the term_id and not the
term_taxonomy_id...
I wish I was mistaken. Here are some screenshot links
- Before update in WPMU admin -
http://skitch.com/schoffelman/n1xe3/wpmu-catid-shota
- After update in WPMU admin -
http://skitch.com/schoffelman/n1xjk/wpmu-catid-shotb
- Select statement after update for original term_id -
http://skitch.com/schoffelman/n1xmt/wpmu-catid-shotc
SELECT * FROM wp_17_terms WHERE term_id = 36363
- Select statement after update for new term_id -
http://skitch.com/schoffelman/n1xck/wpmu-catid-shotd
SELECT * FROM wp_17_terms WHERE term_id = 5322
I did run another test, where the cat_id / term_id stayed the same, but have
been pretty successful on reproducing the issue.
I'm also running WordPress MU 2.8.4
Thanks!
Tim Schoffelman
DEVELOPER
-----------------------------------------
Blend Interactive | 605.334.7077
http://www.blendinteractive.com
On Wed, Jan 27, 2010 at 3:36 PM, Brad Williams <bradw at illiams.com> wrote:
> I had the same thing happen when I changed the name of a category in WPMU
> 2.9.1 today. The ID changed when I updated the name
>
> -Brad
>
> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com
> [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Jeremy
> Clarke
> Sent: Wednesday, January 27, 2010 4:20 PM
> To: wp-hackers at lists.automattic.com
> Subject: Re: [wp-hackers] WPMU Category ID Updating
>
> On Wed, Jan 27, 2010 at 3:52 PM, Tim Schoffelman
> <tim at blendinteractive.com> wrote:
> > Does anyone know why the category (term) ID updates when you first modify
> > the category description?
>
> Haven't done any testing but this DEFINITELY should not be happening.
> That would be a horrible bug in WP.
>
> Is it possible you're looking at the term_id and not the
> term_taxonomy_id? AFAIK term_id is the one you should depend on, and
> the one that matches the old 'category_id' field, whereas the
> term_taxonomy_id is just used to match each particular use of a term
> with a taxonomy. I might be wrong in assuming that term_id is the more
> dependable of the two, but either way confusing them could be the
> cause of your problems.
>
>
> --
> Jeremy Clarke | http://jeremyclarke.org
> Code and Design | http://globalvoicesonline.org
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
> _______________________________________________
> 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