Here’s the PHP that wouldn’t save. I didn’t need the last section so I was able to make it save by just using the first IF statement.
if ( function_exists( 'sharing_display' ) ) {
sharing_display( '', true );
}
if ( class_exists( 'Jetpack_Likes' ) ) {
$custom_likes = new Jetpack_Likes;
echo $custom_likes->post_likes( '' );
}
I’ve just learned that I have this issue as well. Were you able to solve it?
I got it to work by just using the first part of the code.
if ( function_exists( 'sharing_display' ) ) {
sharing_display( '', true );
}
That’s all I needed anyway. I don’t use Jetpack Likes.
I can’t get anything with PHP code to save. It’s actually happening on multiple sites.
I also switched plugins to “PHP Code Widget”
Ah…
My issue is different.
I can’t save any thing with <script>