[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:58:54 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 deepakrohilla):

 Try below code once and save shortcode once again.
 {{{
 function disable_unsafe_link_target( $init ) {
     $init['allow_unsafe_link_target'] = false;
     return $init;
 }
 add_filter( 'tiny_mce_before_init', 'disable_unsafe_link_target' );
 }}}

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


More information about the wp-trac mailing list