block-lab icon indicating copy to clipboard operation
block-lab copied to clipboard

Filter block_lab_icons broken block with wp 5.3

Open gfazioli opened this issue 6 years ago • 2 comments

with wordpress 5.3 my filter

add_filter('block_lab_icons', function ($icons) {
    $myicon = [
        "myicon" => '<svg xmlns="http:\\www.w3.org\2000\svg" width="24" height="24" viewBox="0 0 24 24">....</path></svg>',
    ];

    $icons = array_merge($icons, $myicon);

    return $icons;
});

still works fine, I can see my icon in the BlockLab editor but I cannot see the block when I edit a page. Just remove my icon and all work fine. Any clue?

image

gfazioli avatar Nov 14 '19 11:11 gfazioli

Hi @gfazioli, Thanks for bringing this up.

'Your site doesn't include support...'

Is there a JS console error or warning when that message appears?

kienstra avatar Nov 16 '19 20:11 kienstra

Hi @gfazioli, Hope you're doing great.

Is there still an issue when adding that filter? I hope it's working alright, but I'd like to fix it if there's still an issue.

kienstra avatar Feb 17 '20 22:02 kienstra