Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter vincentguigui

    (@vincentguigui)

    Thanks for your very fast response,
    However, after looking at the source code of the plugin, it removes pipes only in content and excerpt, not in title.
    If you replace pipe by \\| in the final linkedincomment var, it will work for all elements including share_message template:

    ~755: $linkedinComment = str_replace('|', '\\|', $linkedinComment)

    Regarding the line breaks (which are disappearing), you don’t need to nl2br or strip those. Just use sanitize_textarea_field instead of sanitize_text_field in the wp_linkedin_autopublish_update_meta_on_post function:

    1633: $updatedShareMessage = sanitize_textarea_field($_POST['updatedShareMessage']);

    Thanks

Viewing 1 replies (of 1 total)