pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.07k stars 264 forks source link

Improve REST authentication method when registering fields #7341

Closed JoryHogeveen closed 2 months ago

JoryHogeveen commented 2 months ago

Instead of checking if the user is logged in it also checks if the user a basic auth for applications is used.

Description

Fixes #7340

@sc0ttkclark I'm not 100% sure this will be the best method. You could also already set the current WP user so WP core doesn't revalidate using the same method. I'll leave this up to your judgement.

Testing instructions

See #7340

Try the same with this patch and see it now works!

PR checklist

what-the-diff[bot] commented 2 months ago

PR Summary