Make WordPress Core

Opened 3 weeks ago

Last modified 7 hours ago

#42042 new defect (bug)

Permalink structure tags are sometimes added to the front the of the structure

Reported by: ocean90 Owned by:
Milestone: 4.9 Priority: normal
Severity: normal Version: trunk
Component: Permalinks Keywords: has-patch reporter-feedback
Focuses: ui, administration Cc:


Related: #29872

In some circumstances the tags are not added to the end of the structure.

Steps to reproduce:

  • Set structure to "post name"
  • Save settings
  • Set structure to "custom structure" by clicking into the input field
  • Click the button for a tag
  • Click another button for a tag

Actual: The second tag gets added as the first tag.
Expected: The second tag gets added after the last tag

Attachments (3)

42042.gif (1.3 MB) - added by ocean90 3 weeks ago.
42042.diff (469 bytes) - added by felipeelia 8 days ago.
42042.2.diff (713 bytes) - added by felipeelia 8 days ago.

Download all attachments as: .zip

Change History (5)

3 weeks ago

8 days ago

8 days ago

#1 @felipeelia
8 days ago

  • Keywords has-patch reporter-feedback added; needs-patch removed

As the first patch just sets permalinkStructureFocused to false, this second one gives focus back to input field, so if the user keeps clicking on buttons the slugs are appended where the cursor was, not just at the end of it. I think that makes more sense. Am I right, @ocean90?

This ticket was mentioned in Slack in #core by felipeelia. View the logs.

7 hours ago

Note: See TracTickets for help on using tickets.