Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#10644 closed enhancement (fixed)

Category can be itself parent

Reported by: F J Kaiser Owned by: scribu
Milestone: 2.9 Priority: low
Severity: normal Version: 2.9
Component: Administration Keywords: has-patch commit
Focuses: Cc:



when i´m on admin-screen > posts > categories and edit an existing category. the drop-down offers, when selecting a parent-category, the category itself as it´s own parent.

if you try to take itself as it´s own parent-category, nothing happens and it falls back to "no-parent". so i decided the priority is "low". but maybe someone stumbles upon it and makes wp a little bit smarter :)

Attachments (1)

edit-category-form.patch (1.1 KB) - added by scribu 6 years ago.

Download all attachments as: .zip

Change History (7)

#1 @scribu
6 years ago

  • Component changed from Optimization to Administration
  • Keywords needs-patch added
  • Milestone changed from Unassigned to 2.9
  • Version set to 2.9


#2 @scribu
6 years ago

  • Keywords has-patch commit added; needs-patch removed
  • Owner set to scribu
  • Status changed from new to accepted

#3 @F J Kaiser
6 years ago

pretty kool! :)

#4 @F J Kaiser
6 years ago

i tried a minor change and added 'echo' => 0, as an $arg and saved it as $var. then i echoed the $var. so you can easily get and use the function as a template-tag. in my case i try to use it to enchance my search with a drop-down to search only specific categories.

i added the function straight to my template and haven´t finished the search yet. but maybe it would be a nice addition.

what do you think?

#5 @F J Kaiser
6 years ago

em... sry. didn´t know that this is already avaible.

#6 @westi
6 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

(In [11854]) Don't offer to make a category its own parent - that just wouldn't work. Fixes #10644 props scribu.

Note: See TracTickets for help on using tickets.