Support » Plugin: Customize Posts » WP 5.0 compatibility problem

  • Hi @westonruter,
    When customizing post or page content that include html links having target attribute, the publish action doesn’t work. It looks like it worked, but the customize_changeset has not been published.

    It is very simple to reproduce, simply customize any post and add a link with a target=”_blank” to the post content. Then try to publish.

    But this is not a bug due to your plugin. It has been introduced in WordPress 5.0 when filtering the content_save_pre with a new callback named wp_targeted_link_rel.
    It can actually occur in any scenario where a customizer setting can create a customized value with an html link having a target attribute.

    I have already created a ticket, but with no answer yet.

    It also impacts one plugin of mine, and for the moment the only solution is to add a compatibility code to disable a content_save_pre default filter.

    if ( false !== has_filter( 'content_save_pre', 'wp_targeted_link_rel' ) ) {
    remove_filter( 'content_save_pre', 'wp_targeted_link_rel' );

    I wanted to check if you are aware of it, and have your opinion about it.


    • This topic was modified 2 years, 8 months ago by Nicolas.
    • This topic was modified 2 years, 8 months ago by Nicolas.
  • The topic ‘WP 5.0 compatibility problem’ is closed to new replies.