WordPress.org

Making WordPress.org

Opened 5 months ago

Closed 5 months ago

#2953 closed defect (fixed)

Plugin Administration: Convert underscores to hyphens in URLs

Reported by: Ipstenu Owned by: 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 5 months ago.

Download all attachments as: .zip

Change History (4)

#1 @SergeyBiryukov
5 months ago

  • Keywords has-patch added; needs-patch removed

I thought sanitize_title_with_dashes() handles underscores; apparently not.

Anyway, 2953.patch does :)

#2 @SergeyBiryukov
5 months ago

  • Milestone set to Plugin Directory v3.0

#3 @coffee2code
5 months 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.