Skip to content

Commit

Permalink
Correct notice caused by typo in 8842a6a.
Browse files Browse the repository at this point in the history
See #5.
  • Loading branch information
boonebgorges committed Oct 3, 2015
1 parent 914ef3d commit 0d6af43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0d6af43

Please sign in to comment.