From fff279aa342ef00b84a5dd8aff4780f943cd4ccc Mon Sep 17 00:00:00 2001 From: Ian Dunn Date: Mon, 21 Oct 2019 12:31:31 -0700 Subject: [PATCH] Pledge: Temporarily disable capability checks to enable development. --- plugins/wporg-5ftf/includes/pledge-meta.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/wporg-5ftf/includes/pledge-meta.php b/plugins/wporg-5ftf/includes/pledge-meta.php index a0c6194..5706c54 100755 --- a/plugins/wporg-5ftf/includes/pledge-meta.php +++ b/plugins/wporg-5ftf/includes/pledge-meta.php @@ -193,7 +193,8 @@ function save_pledge( $pledge_id, $pledge ) { } if ( ! current_user_can( 'edit_pledge', $pledge_id ) ) { - return; + // todo re-enable once setup cap mapping or whatever + //return; } if ( ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) || 'auto-draft' === $pledge->post_status ) {