caseproof / members

Members WordPress plugin.
GNU General Public License v2.0
81 stars 35 forks source link

Fix PHP warning for undefined global variable $wp_embed #122

Closed mlipe-nxs closed 8 months ago

mlipe-nxs commented 8 months ago

I started noticing the following PHP warning in the logs and again in reports when running static analysis.

PHP Warning: Undefined global variable $wp_embed in members\inc\functions-private-site.php on line 25

This warning is easily fixed by checking for the existence of type of the global variable before using it.

cartpauj commented 8 months ago

Thanks @mlipe-nxs !