WP Directives Plugin: Require Gutenberg plugin to avoid a fatal error#119
Conversation
SantosGuillamot
left a comment
There was a problem hiding this comment.
LGTM! A minor detail, it seems there are some different formatting in the functions.
Btw, not sure what is the status of the Plugin Dependencies Feature Project, but in the future we should use that I guess.
It seems that it is a plugin. You need to have it installed, so I guess having not won't prevent the fatal error.
I installed and applied WordPress PHP format so it's the same as standards. Also applied to the PHP files we had. |
Yes, I think right now it is a plugin. But if I am not mistaken, they are planning to include in core. That's why I said that in the future, we could do this using that feature. It was just an informative comment, nothing to change 🙂
Oh, I thought we already had that, sorry 😄 Thanks a lot for adding it! |
Why
Right now, in the weird case that somebody installs the directives plugin without Gutenberg, they will get a fatal error, as we are using

WP_HTML_Tag_Processor, which is declared in that plugin.How
With GPT-3, of course

Testing
Screen.Recording.2022-12-14.at.16.31.44.mov