[wp-trac] [WordPress Trac] #61482: WordPress is adding rel="noopener" to code in normal texteditor
WordPress Trac
noreply at wordpress.org
Wed Jun 26 13:14:02 UTC 2024
#61482: WordPress is adding rel="noopener" to code in normal texteditor
--------------------------+------------------------------
Reporter: neo2k23 | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by neo2k23):
Replying to [comment:12 kushyourdevexpert]:
> Add this filter in Function.php and rel="noopener remove automatically
>
}}}
That does not resolve my issue at all as shortcodes are generated before
the content filter runs and are already wrecked after saving the content
in the admin area (as decribed in one of my comments).
The only working solution hae been provided by @khokansardar a couple of
days ago. (Thanks for that).
Bu I already fixed my issue anothert way by using a kind macro language
in the shortcode itself to avoid the auto formatting taking place at all.
the macro is replaced at execution of the shortcode.
In which case it does not matter any longer if and when WordPress removes
the wp_targeted_link_rel() function.
thank you
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61482#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list