Making WordPress.org

Opened 8 years ago

Closed 7 years ago

#2953 closed defect (bug) (fixed)

Plugin Administration: Convert underscores to hyphens in URLs

Reported by: ipstenu's profile Ipstenu Owned by: coffee2code's profile coffee2code
Milestone: Plugin Directory v3.0 Priority: normal
Component: Plugin Directory Keywords: has-patch
Cc:

Description

If someone submits a plugin with the display name of "My_Cool_Plugin" the slug will be set to "my_cool_plugin"

This needs to be "my-cool-plugin"

The only character accepted should be a hyphen.

Attachments (1)

2953.patch (847 bytes) - added by SergeyBiryukov 7 years ago.

Download all attachments as: .zip

Change History (4)

@SergeyBiryukov
7 years ago

#1 @SergeyBiryukov
7 years ago

  • Keywords has-patch added; needs-patch removed

I thought sanitize_title_with_dashes() handles underscores; apparently not.

Anyway, 2953.patch does :)

#2 @SergeyBiryukov
7 years ago

  • Milestone set to Plugin Directory v3.0

#3 @coffee2code
7 years ago

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

In 5708:

Plugin Directory: Convert underscores to dashes in plugin slugs.

Props SergeyBiryukov.
Fixes #2953.

Note: See TracTickets for help on using tickets.