Fix bug with disabled buttons in WP editor