[wp-trac] [WordPress Trac] #47357: $allowedentitynames could be null

WordPress Trac noreply at wordpress.org
Tue Jun 18 23:54:52 UTC 2019


#47357: $allowedentitynames could be null
-------------------------------+------------------------------
 Reporter:  doctorlai          |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Formatting         |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by doctorlai):

 Hello,
 I add these to my template, which causes the problem


 {{{
 function add_scriptfilter( $string ) {
   global $allowedtags;
   $allowedtags['script'] = array( 'src' => array () );
   return $string;
 }
 add_filter( 'pre_kses', 'add_scriptfilter' );
 }}}

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


More information about the wp-trac mailing list