mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-19 01:43:44 +03:00
Pledge: Temporarily disable capability checks to enable development.
This commit is contained in:
parent
cc5303fa11
commit
fff279aa34
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue