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

WordPress Trac noreply at wordpress.org
Sun Jun 19 12:01:14 UTC 2016


#35936: Add validation for Custom Structure permalinks
-------------------------------------------------+-------------------------
 Reporter:  SteveNetRivet                        |       Owner:  swissspidy
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  4.6
Component:  Permalinks                           |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  good-first-bug has-patch has-unit-   |     Focuses:  ui
  tests commit                                   |
-------------------------------------------------+-------------------------
Changes (by swissspidy):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37747"]:
 {{{
 #!CommitTicketReference repository="" revision="37747"
 Permalinks: Validate custom permalink structures.

 Custom permalink structures require at least one valid structure tag, e.g.
 `%postname%`. If none is included, it would leave users with broken
 permalinks.
 Let's make sure this won't happen by validating the permalink structure.

 Adds unit tests.

 Props rockwell15 for initial patch.
 Fixes #35936.
 }}}

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


More information about the wp-trac mailing list