[wp-trac] [WordPress Trac] #30464: kses_allowed_protocols filter not working

WordPress Trac noreply at wordpress.org
Mon Nov 24 18:01:27 UTC 2014


#30464: kses_allowed_protocols filter not working
--------------------------+-------------------------
 Reporter:  hatul         |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:  4.0.1
 Severity:  normal        |  Resolution:  worksforme
 Keywords:  close         |     Focuses:
--------------------------+-------------------------
Changes (by hatul):

 * keywords:   => close


Comment:

 thanks. if I run its in plugins_loaded the code is working.

 {{{
 function wpse_allow_sms_protocol( $protocols ) {
     $protocols = array('sms');
     return $protocols;
 }
 add_action('plugins_loaded',
 function(){add_filter('kses_allowed_protocols', 'wpse_allow_sms_protocol'
 );});
 print_r(wp_allowed_protocols());
 }}}

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


More information about the wp-trac mailing list