Fixed buttons not displayed when in a custom block

I have not find the reason why it has been written this way, the `$publishing` variable seems unused. It might be a typo here since the first version.

Can anyone double check please?