[wp-trac] [WordPress Trac] #32421: The default list of protocols should be documented in wp_allowed_protocols()

WordPress Trac noreply at wordpress.org
Sun May 17 02:33:53 UTC 2015


#32421: The default list of protocols should be documented in
wp_allowed_protocols()
--------------------------+----------------------------------------
 Reporter:  DrewAPicture  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.3
Component:  General       |    Version:
 Severity:  normal        |   Keywords:  needs-patch good-first-bug
  Focuses:  docs          |
--------------------------+----------------------------------------
 As suggested by @emiluzelac in #meta1029, we should include the full list
 of protocols in the documentation for `esc_url()`.

 I think the best approach would be to simply document the default list in
 the DocBlock for `wp_allowed_protocols()` and cross-reference to the
 DocBlocks for `esc_url()` and the `kses_allowed_protocols` filter.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32421>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list