Making WordPress.org

Opened 5 years ago

Closed 5 years ago

#2103 closed defect (fixed)

Codexify strips spaces in titles

Reported by: ocean90 Owned by: jmdodd
Milestone: Priority: normal
Component: Support Forums Keywords: has-patch commit


Report: https://wordpress.org/support/topic/forum-bugs-and-broken-things/#post-8240018

It appears the forum’s double bracket Codex link shortcut is stripping spaces instead of replacing with underscores. When I do [[Hardening WordPress]] the link becomes codex.wordpress.org/HardeningWordPress which is missing the underscore that used to be inserted for the space.

Input: [[Hardening WordPress]]
Actual output: <a href="https://codex.wordpress.org/HardeningWordPress" rel="nofollow">HardeningWordPress</a>
Expected output: <a href="https://codex.wordpress.org/Hardening_WordPress" rel="nofollow">Hardening WordPress</a>

Plugin: https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-codexify

Attachments (1)

meta-2103.patch (1.3 KB) - added by SergeyBiryukov 5 years ago.

Download all attachments as: .zip

Change History (3)

#1 @SergeyBiryukov
5 years ago

  • Keywords has-patch commit added; needs-patch removed

#2 @jmdodd
5 years ago

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

In 4175:

Support Forums: Replace spaces with underscores in Codex link shortcut.

Codex link shortcuts were incorrectly stripping spaces from the link and title rather than replacing them with an underscore.

Props SergeyBiryukov.
Fixes #2103.

Note: See TracTickets for help on using tickets.