Many Eyes, Bugs Being Shallow, All That

WordPress 2.5.1 added a really powerful feature to register_taxonomy(): automatic registration of permalinks and query vars to match the taxonomy. Well, theoretically it added that feature. It wasn’t working in practice. After some searching yesterday and today, I finally found the bug and worked up a fix. I made a diff and set off to open a ticket in Trac.

On the one hand I’m glad I searched first, because it turns out that a ticket on the very same issue was opened on May 16th and it already has a fix. On the other hand, it’s kind of a kicker to have lost my chance at reporting the bug and submitting a fix by only a few days.

The fix is committed for WordPress 2.6, but I’ve done a workaround for 2.5.1 (workarounds are easier to manage than core code changes). I’d say I wish I searched Trac first, but I wouldn’t have known what to search for if I didn’t figure out how to fix the bug first. And I guess I really can’t complain about a community that quickly finds and fixes bugs.

Related:

3 Comments

  1. Comment by Jason DeVelvis on May 21, 2008 4:00 pm

    So, what’s the workaround? :) Or did you just access the db directly?

  2. Comment by Casey on May 23, 2008 9:15 pm

    @Jason DeVelvis:

    Sorry, I should have included that.

    In addition to $taxonomy and $object_type, register_taxonomy() now also accepts an array of args. The defaults are as follows:

    array('hierarchical' => false, 'update_count_callback' => '', 'rewrite' => true, 'query_var' => true)

    The bug only shows itself if you use the defaults and don’t submit your own args. My work around was to call register_taxonomy() with an array that included 'query_var' => MyTaxonomyName

  3. Comment by Chris on July 3, 2008 2:36 am

    Hello - this is really the only page I have found about using this function. With this are you able to create a new taxonomy such as MyTags and have that apply to posts? I.e. so you can have the normal tags as one taxonomy and then MyTags as another?

    Obvioulsy I would need to edit the form for adding etc. but I have not been able to find out if this is the right function for doing this. Any advice would be much appreciated!

    Chris.

Comments RSS TrackBack Identifier URI

Leave a comment

 

User contributed tags for this post:

www.sex.com (28) - www.sex farmer.com (16) - register_taxonomy (9) - sex farmer.com (9) - sex farmer (7) - wordpress (7) - zack treadwell (6) - bugs eyes (5) - wordpress register_taxonomy (4) - سكس95 (4) - register_taxonomy() (3) - the sex farmer.com (3) - masala sex.com (3) - sex.farmer.com (3) - www.sex.farmer.com (3) - gorom masala (3) - video sex xxlarab (2) - internet eyes sex.com (2) - www.sex girls 18.com (2) - bugs with more than 6 eyes (2) - eyes bugs (2) - WWW SEX FARMER.COM (2) - masal sex (2) - site:maisonbisson.com www 89 com sex (2) - www.arab.porno (2) - dreams mövies.com sex (1) - many eyes find many bugs (1) - .sex farmer.com (1) - bangla masala movies (1) - what bugs with more than two eyes (1) - www.sex farmers .com photos (1) - register_taxonomy plugin wordpress (1) - more than 4 min sex video in 89.com (1) - dream bugs in eyes (1) - www---sex farmer-com (1) - shallow all (1) - girl sex with bugs (1) - www.private note sex.com (1) - eyes bugs. (1) - sexgirls18 (1) - www.private video sex.com (1) - private.com sex video filme (1) - www.sexbabes.biz (1) - what bugs eye is made up of a bunch of other eyes (1) - million eyes every bug is shallow (1) - bugs in eyes (1) - sex with bugs (1) - three eyed bugs (1) - www.sexbabes.biz video (1) - eyes-sex.com (1) - bugs in eyelids (1) - 6 eyed bugs (1) - many eyes few bugs (1) - Jason develvis (1) - Www.waptrick.com (1) - bugs are shallow many eyes (1) - many eyes (1) - many-eyes (1) - www.sex top.com (1) - the sexfarmer (1) - the sex farmer (1) - bangladeshi sex.com (1) - www.sex farmer (1) - bangla sex.com (1) - www,sex.com (1) - www.sex video (1) - sex.com (1) - All about bugs (1) - hand gorom masala (1) - many sex.com (1) - dreams bugs in eyes (1) - dreams about bugs in eyes (1) - www.sex private.com (1) - bug sex.com (1) - www.18 girl sex.com (1) - wordpress 2.5 register_taxonomy (1) - being shallow (1) - bugs found in eye videos (1) - www.sex.animal. (1) - Zack Treadwell Film (1) - many eyes google (1) - wordpress register_taxonomy() (1) - bugs in eyes dream (1) - many eyes bugs (1) - www.18.com (1) -