Support

Account

Home Forums ACF PRO Warning: stripslashes() expects parameter 1 to be string,

Unread

Warning: stripslashes() expects parameter 1 to be string,

  • Hi! I have Warning: stripslashes() expects parameter 1 to be string, array given in /public_html/wp-content/plugins/advanced-custom-fields-pro/pro/blocks.php on line 708

    On this line present:
    function acf_parse_save_blocks( $text = ” ) {

    // Search text for dynamic blocks and modify attrs.
    return addslashes(
    preg_replace_callback(
    ‘/<!–\s+wp:(?P<name>[\S]+)\s+(?P<attrs>{[\S\s]+?})\s+(?P<void>\/)?–>/’,
    ‘acf_parse_save_blocks_callback’,

    stripslashes( $text ) !!! warning !!!
    )
    );
    }
    What to do?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.