• Resolved developmentvict

    (@developmentvict)


    To resolve a (temporary) bug in Litespeed Cache ESI I’ve been instructed to add the following code:

    function buffer_output_after( $content ) {
    $content = str_replace(‘& #038;’, ‘&’, $content); [space between & and # added on purpose]
    return $content;
    }
    add_filter( ‘litespeed_buffer_after’, ‘buffer_output_after’, 0);

    But in Code Snippets plugin editor (after saving) this is automatically replaced by:

    function buffer_output_after( $content ) {
    $content = str_replace(‘&’, ‘&’, $content);
    return $content;
    }

    This replacement actually renders the entire function ineffective. Is there any way to achieve it within Code Snippets?

Viewing 1 replies (of 1 total)
  • Plugin Author Atif Riaz

    (@lightbulbman)

    Hello @developmentvict

    Thanks for raising your query,

    Can you kindly share more details or perhaps send a screen recording to our support email as I have copied your code into a new php snippet using single quotes and I had no issues to do this.

    Many thanks

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.