podlove / podlove-publisher

Podlove Podcast Publisher for WordPress
https://wordpress.org/plugins/podlove-podcasting-plugin-for-wordpress/
MIT License
299 stars 84 forks source link

do not assumes all default roles exist #1517

Closed eteubert closed 1 month ago

eteubert commented 1 month ago

podlove_add_capability_to_roles assumes all default roles like 'administrator', 'editor', 'author' exist. However they may have been renamed or deleted. The code needs to check that a role exists before working with it.

See https://community.podlove.org/t/fatal-error-when-activating/3375