[wp-hackers] 'same category name'-issue

robin niemeyer robin.niemeyer at gmx.net
Sat Apr 11 13:17:33 GMT 2009


Ryan,

many thanks for the fix!

Works great with the current svn version, but with 2.7.1 I unfortunately
get an 'Could not insert term into the database' error when trying to
add a non-uniquely named category from the categories view (first I
replaced the changed functions and snippets only, then all three files,
same outcome on both ways).

But I'll try to figure it out myself, so thanks again!

- Robin


Ryan Boren schrieb:
> On Fri, Apr 10, 2009 at 7:47 AM, robin niemeyer <robin.niemeyer at gmx.net> wrote:
>> Hi all,
>>
>> I know this issue has been posted frequently in the wp support forum,
>> the ticket system etc., but it seems there has been some silence around
>> it since then, although I think it still is a problem to many people
>> (including me).
>>
>> What I mean is the issue that every term has to be unique, and while
>> this makes a lot of sense regarding tags, it has some serious drawbacks
>> when it comes to categories, since this isn't possible right now:
>>
>> -Sheet Music
>> ---Piano
>> ---Violin
>> -Learn to Play
>> ---Piano
>> ---Violin
>>
>> (Example taken from http://wordpress.org/support/topic/177232)
> 
> Fix for trunk here: http://core.trac.wordpress.org/changeset/10905
> 
> This was caused by an over restrictive check added to the ajax handler
> for category adds.  When adding cats, the parent should be taken into
> account when determining if a cat already exists.
> _______________________________________________
> 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