[wp-trac] [WordPress Trac] #61482: WordPress is adding rel="noopener" to code in normal texteditor

WordPress Trac noreply at wordpress.org
Sun Jun 23 11:49:30 UTC 2024


#61482: WordPress is adding rel="noopener" to code in normal texteditor
--------------------------+------------------------------
 Reporter:  neo2k23       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by neo2k23):

 Adding this code does also not work.  It keeps adding rel="noopener" but i
 need in this case rel='noopener' to be added as we are parsing text within
 a shortcode.


 {{{
 add_filter( 'teeny_mce_before_init',
 'theme_smartwp_allow_unsafe_link_target' );
 add_filter( 'tiny_mce_before_init',
 'theme_smartwp_allow_unsafe_link_target' );
 function theme_smartwp_allow_unsafe_link_target( $mceInit ) {
  $mceInit['allow_unsafe_link_target'] = true;
  return $mceInit;
 }
 }}}

 Do you have a better solution for me?

 Thank you

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


More information about the wp-trac mailing list