[wp-trac] [WordPress Trac] #30214: Menus: mailto links in menus should be obfuscated

WordPress Trac noreply at wordpress.org
Fri Nov 7 22:36:12 UTC 2014


#30214: Menus: mailto links in menus should be obfuscated
-------------------------+-------------------------------
 Reporter:  ckoerner     |       Owner:  celloexpressions
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  4.1
Component:  Menus        |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+-------------------------------

Comment (by tywayne):

 Sounds good to me. And I agree on not adding it via a filter.

 Though, if we do it in {{{wp_update_nav_menu_item()}}} it will only get
 applied when the menu is initially created or on save. If we wait until
 right before the {{{nav_menu_link_attributes}}} filter in the
 {{{Walker_Nav_Menu}}} class, it would catch and encode any existing
 mailto: links without having to re-save the menu.

 Since it is essentially a formatting issue, I wouldn't think we'd need to
 store the encoded link in the menu item, we just need to encode during
 output.

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


More information about the wp-trac mailing list