Plugin Author
scribu
(@scribu)
I’d wager the Members plugin hooks into ‘save_post’ or ‘wp_insert_post’ with the assumption that the post will always be edited using the normal edit screen.
A simple if ( defined( 'DOING_AJAX' ) ) return;
check should do the trick.
Yes, Members is missing a check in the current public version if using the “Content Permissions” option. This is fixed in my dev copy, which I hope to release soon.
If you add this at the top of the members_content_permissions_save_meta()
function in the members/components/content-permissions/meta-box.php
file, it should fix it:
if ( !isset( $_POST['content_permissions_meta_nonce'] ) || !wp_verify_nonce( $_POST['content_permissions_meta_nonce'], basename( __FILE__ ) ) )
return false;
Note that I haven’t tested this with previous versions though.
Thread Starter
TPH31
(@tph31)
Awesome. Thanks allot gents. works perfectly.
14 hours after I posted it, amazing!
Thread Starter
TPH31
(@tph31)
Greenshady, well I think I spoke too soon. Yes, fee does not wipe/alter the Content Permission settings anymore, but I also can’t change the settings when creating or editing a page anymore.
Thread Starter
TPH31
(@tph31)
Greenshady, well I think I spoke too soon. Yes, fee does not wipe/alter the Content Permission settings anymore, but I also can’t change the settings when creating or editing a page anymore.
Plugin Author
scribu
(@scribu)
TPH31: Please don’t bump threads like that.
Try the check I proposed instead or try upgrading to the development version of the Members plugin.
Thread Starter
TPH31
(@tph31)
Scribu, my appologies. I was not sure how to change the thread from Resolved.