You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
On the Pressbooks network with WP_DEBUG set to true, we see an Undefined property: stdClass::$edit_page in /srv/www/integrations.pressbooks.network/releases/20210427183011/web/wp-includes/capabilities.php on line 172 notice whenever we save Custom CSS if this plugin is active.
Steps to Reproduce
Open a book on a Pressbooks network with WP_DEBUG set to true and the Candela Citations plugin active and click Appearance -> Custom Styles
Save a change to the CSS
Observe a white screen briefly displaying the notice indicated above before you're returned to the Pressbooks interface
Description
On the Pressbooks network with WP_DEBUG set to true, we see an
Undefined property: stdClass::$edit_page in /srv/www/integrations.pressbooks.network/releases/20210427183011/web/wp-includes/capabilities.php on line 172notice whenever we save Custom CSS if this plugin is active.Steps to Reproduce
candela_permission_error.mp4
Expected behavior:
No notice is displayed
Actual behavior:
A notice is diplayed.
Notes
Here's the line cited by the notice: https://github.com/WordPress/WordPress/blob/267061c9595fedd321582d14c21ec9e7da2dcf62/wp-includes/capabilities.php#L172
Like #7, this issue is only present when Candela Citations is activated, and disappears when that plugin is deactivated.
More details at pressbooks/pressbooks#2149