WP-API / OAuth2

Connect applications to your WordPress site without ever giving away your password.
GNU General Public License v2.0
172 stars 42 forks source link

Fixed capability typos preventing regenration and delete #63

Closed szczys closed 4 years ago

szczys commented 4 years ago

This addresses #62

TimothyBJacobs commented 4 years ago

Thanks for the PR @szczys! This isn't correct though. delete_post, edit_post, edit_user etc... are all valid meta capability checks. AFAIK the issue in #62 is because those meta capability checks aren't being mapped due to how the post type is being registered.

szczys commented 4 years ago

Thanks for the info. I'll look into it and see if I can figure out where my install is going wrong with that mapping.

TimothyBJacobs commented 4 years ago

To clarify, this isn't a problem specific to your install. It is an issue with the plugin, I'm just not 100% sure what the right fix it.

szczys commented 4 years ago

I had certainly noticed some problems here as another plugin that i have installed is throwing warning when parsing these entries:

Notice: Trying to get property 'ID' of non-object in /srv/www/wordpress-one/public_html/wp-content/plugins/edit-flow/modules/custom-status/custom-status.php on line 739

Notice: Trying to get property 'label' of non-object in /srv/www/wordpress-one/public_html/wp-content/plugins/edit-flow/modules/custom-status/custom-status.php on line 741