WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #30415, comment 6


Ignore:
Timestamp:
11/20/2014 10:40:01 AM (7 years ago)
Author:
ChriCo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30415, comment 6

    initial v1  
    44> @return string|WP_Error A list of category parents on success, WP_Error on failure.
    55
    6 why then `return false;` ? :-)
     6why then `return false;` ? :-) Wheres the `new WP_Error` ?
    77
    88L1421
     
    1111shouldn't you call `get_term_parents()` ?
    1212
    13 and a note from my side: Wouldn't it better to implement a function which returns the a tree (array) with parent => child ?
     13and a note from my side: Wouldn't it better to implement a function ( `get_term_parent_tree()`) which returns the a tree (array) with parent => child ? Instead we should implement a function called `get_term_parent_list_html()`.