Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #24216, comment 5


Ignore:
Timestamp:
06/07/2013 06:49:26 PM (11 years ago)
Author:
Sebastian Klier
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24216, comment 5

    initial v1  
    33$term->term_id
    44}}}
    5 does not work, as $term was originally cast to stdObject from $args and does not have this property. You could look up the ID again, or make more changes so we can pass the ID, but I'm not sure that is necessary as the method to get the numbered slug has worked like that for years now?
     5does not work, as $term was originally cast to stdClass from $args and does not have this property. You could look up the ID again, or make more changes so we can pass the ID, but I'm not sure that is necessary as the method to get the numbered slug has worked like that for years now?
    66
    77As mentioned in the comment above, there are many more things going wrong here, and I'm not sure what the intended behaviour is, else I would look into it further. According to the codex, there should never be duplicate names, not even for terms with different parents. However currently it seems only the first returned name is checked against, and lower/upper case is not taken into account. Duplicate names within other parents seem also possible.