Opened 7 years ago

Closed 7 years ago

#3088 closed enhancement (fixed)

Use wp_dropdown_categories() instead of deprecated wp_dropdown_cats() in the WP backend

Reported by: markjaquith Owned by: westi
Priority: normal Milestone: 2.1
Component: Administration Version: 2.1
Severity: normal Keywords: bg|has-patch
Cc:

Description (last modified by markjaquith)

We need to replace all instances of wp_dropdown_cats() with wp_dropdown_categories()

Attachments (1)

3088.diff (1.4 KB) - added by westi 7 years ago.
Replace wp_dropdown_cats with wp_dropdown_categories

Download all attachments as: .zip

Change History (7)

  • Resolution set to worksforme
  • Status changed from new to closed

Erm. we don't use dropdown_cats at all in the backend as far as I can see.

Or anywhere else for that matter.

comment:2   ryan7 years ago

  • Resolution worksforme deleted
  • Status changed from closed to reopened

wp_dropdown_cats()

comment:3   ryan7 years ago

  • Summary changed from Use wp_dropdown_categories() instead of deprecated dropdown_cats() in the WP backend to Use wp_dropdown_categories() instead of deprecated wp_dropdown_cats() in the WP backend
  • Description modified (diff)
  • Milestone set to 2.1
  • Version set to 2.1

Oops, yeah, meant wp_dropdown_cats()... too many similar functions :-\

westi7 years ago

Replace wp_dropdown_cats with wp_dropdown_categories

  • Keywords bg|has-patch added
  • Owner changed from anonymous to westi
  • Status changed from reopened to new

Ok now I see what you meant.

Only occurance I can see is in edit-category-form.php.

Fixed in attached patch which also fixes category walker buglet - padding was not included.

comment:6   ryan7 years ago

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

(In [4156]) Use wp_dropdown_categories(). Fix padding. Don't allow a cat to be it's own parent. Props westi. fixes #3088

Note: See TracTickets for help on using tickets.