From 0d6af4394333b6e0723dbd81799b4bd5712ed1db Mon Sep 17 00:00:00 2001 From: Boone B Gorges Date: Fri, 2 Oct 2015 21:35:21 -0500 Subject: [PATCH] Correct notice caused by typo in 8842a6a54d4be8d6452f5a13cf3f9608ec74b6cc. See #5. --- includes/schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/schema.php b/includes/schema.php index edab8e2..468e4f4 100644 --- a/includes/schema.php +++ b/includes/schema.php @@ -181,7 +181,7 @@ function cacsp_map_extra_meta_caps( $caps, $cap, $user_id, $args ) { // allow files to be uploaded via AJAX case 'upload_files' : - if ( defined( 'DOING_AJAX' ) || true === constant( 'DOING_AJAX' ) ) { + if ( defined( 'DOING_AJAX' ) && true === constant( 'DOING_AJAX' ) ) { if ( false === isset( $_REQUEST['post_id'] ) ) { return $caps; }