sprucely-designed / mainwp-discord-notifications

GNU General Public License v3.0
4 stars 1 forks source link

Jos klever patch plugin constant #9

Closed JosKlever closed 2 months ago

JosKlever commented 2 months ago

After version 1.0 the new constant for the plugin webhook was added in the check, but only the old one was used to send notifications. So if the new one isn't defined, it's now being set to the value of the old one. To send the notification the new constant is used.

Please check the code for correctness and efficiency, as I'm not an experienced developer. I've tested it on my own site and it worked there.

I've also fixed a typo in the readme.