Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#21600 closed defect (bug) (fixed)

Reduce calls to sanitize_title_with_dashes in register_(post_type|taxonomy)

Reported by: ocean90's profile ocean90 Owned by: ryan's profile ryan
Milestone: 3.5 Priority: normal
Severity: normal Version:
Component: Performance Keywords: has-patch needs-unit-tests
Focuses: Cc:

Description (last modified by ocean90)

Follow-up: #21593

If #21593 goes in, the post type/taxonomy name is already sanitized with sanitize_key() and shouldn't go through sanitize_title_with_dashes() again.

Attachments (1)

21600.patch (1.0 KB) - added by ocean90 12 years ago.

Download all attachments as: .zip

Change History (3)

12 years ago

#1 @ocean90
12 years ago

  • Description modified (diff)

#2 @ryan
12 years ago

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

In [21553]:

Reduce calls to sanitize_title_with_dashes in register_(post_type|taxonomy). Props ocean90. fixes #21600

Note: See TracTickets for help on using tickets.