[wp-trac] [WordPress Trac] #32816: No or inadequate Custom Link URL validation

WordPress Trac noreply at wordpress.org
Mon Jul 13 00:57:00 UTC 2015


#32816: No or inadequate Custom Link URL validation
-------------------------+-----------------------------
 Reporter:  JanR         |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Customize    |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  ui, javascript
-------------------------+-----------------------------
Changes (by celloexpressions):

 * milestone:  Awaiting Review => Future Release


Comment:

 In a patch for this, I'd like to see the allowed protocols be available in
 JS and checked when items are added using the links section in the
 available items panel (currently it just checks for empty strings or
 `http://`, the default value, and prevents adding the item and adds a
 visual indicator that the option is invalid).

 Not sure whether we could/should add validation for when links are changed
 in existing items, since the other fields there also get validated only
 when savee/previewed/on the server side, but adding better validation on
 the add-item field would be a nice improvement.

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


More information about the wp-trac mailing list