REST API authentication does not persist between upgrades
-
Hello world!
I am managing some 15-ish WP installations and recently we got a notification that by going to the wp-json/wp/v2/users URL the authors could be displayed. I managed to get that fixed by following https://developer.ww.wp.xz.cn/rest-api/frequently-asked-questions/#require-authentication-for-all-requests and adding the snippet of code to the appropriate file, but after upgrading my wordpress I can see that the endpoint is once again accessible to everyone.
Is there a way to keep the authentication requirement from disabling/removing itself between WP upgrades? Preferably something that doesn’t require a plugin to be installed for something that IMHO should be toggleable in the admin panel.
Warm regards,
The topic ‘REST API authentication does not persist between upgrades’ is closed to new replies.