[wp-trac] [WordPress Trac] #42288: Validation of custom menu link

WordPress Trac noreply at wordpress.org
Thu Jun 14 13:40:20 UTC 2018


#42288: Validation of custom menu link
---------------------------------------+------------------------------
 Reporter:  dvirhazout                 |       Owner:  (none)
     Type:  defect (bug)               |      Status:  new
 Priority:  normal                     |   Milestone:  Awaiting Review
Component:  Menus                      |     Version:  4.8.2
 Severity:  normal                     |  Resolution:
 Keywords:  needs-patch needs-testing  |     Focuses:  javascript
---------------------------------------+------------------------------
Changes (by jukkarau):

 * keywords:  needs-patch => needs-patch needs-testing


Comment:

 Attached a diff, which adds validation for the custom link URLs in the
 Customizer menus. Using the exact same regex, which is used on the
 frontend code. The validation now checks the URL format for the submitted
 strings, and if the URL is empty it invalidates that too.
 (https://github.com/jukra/wordpress-develop/pull/1)

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


More information about the wp-trac mailing list