[wp-trac] [WordPress Trac] #35936: Add validation for Custom Structure permalinks

WordPress Trac noreply at wordpress.org
Wed Feb 24 16:56:05 UTC 2016


#35936: Add validation for Custom Structure permalinks
----------------------------------------+-----------------------------
 Reporter:  SteveNetRivet               |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  Permalinks                  |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:  ui
----------------------------------------+-----------------------------
Changes (by swissspidy):

 * keywords:   => needs-patch good-first-bug
 * version:  4.4.2 =>
 * milestone:  Awaiting Review => Future Release


Comment:

 > Please add to this settings box some level of validation so that users
 cannot save changes if their permalink structure contains no structure
 tags in the Custom Structure box.

 Such a validation is pretty easily doable. We could check for existence of
 the `%` sign alone or even the available tags themselves (`%postname%` et
 al).

 At least the documentation could be improved, perhaps warning users that
 they could easily render their site unusable with a bad setting.

 See also: #29872

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35936#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list