Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 16 months ago

#3088 closed enhancement (fixed)

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

Reported by: markjaquith's profile markjaquith Owned by: westi's profile westi
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.1
Component: Administration Keywords: bg|has-patch
Focuses: 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 19 years ago.
Replace wp_dropdown_cats with wp_dropdown_categories

Download all attachments as: .zip

Change History (7)

#1 @westi
19 years ago

  • 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.

#2 @ryan
19 years ago

  • Resolution worksforme deleted
  • Status changed from closed to reopened

wp_dropdown_cats()

#3 @ryan
19 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

#4 @markjaquith
19 years ago

  • Description modified (diff)
  • Milestone set to 2.1
  • Version set to 2.1

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

@westi
19 years ago

Replace wp_dropdown_cats with wp_dropdown_categories

#5 @westi
19 years ago

  • 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.

#6 @ryan
19 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.