[wp-trac] [WordPress Trac] #35936: Add validation for Custom Structure permalinks
    WordPress Trac 
    noreply at wordpress.org
       
    Thu Mar  3 03:55:21 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:  good-first-bug needs-patch  |     Focuses:  ui
----------------------------------------+-----------------------------
Changes (by johnbillion):
 * keywords:  good-first-bug has-patch => good-first-bug needs-patch
Comment:
 @rockwell15 Thanks for the patch, but enforcing `%post_id%` or
 `%postname%` as the last element in the permalink structure is too
 restrictive. I've seen sites with funky structures that include things
 such as a trailing `/read` element.
 I think testing for the existence of a `%` symbol is enough validation.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35936#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list