Completed
Push — master ( 8f4a49...efac85 )
by
unknown
02:18
created
public/includes/helpers.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 		'public' => true,
244 244
 	), 'objects' );
245 245
 	$post_types = array_combine( array_keys( $post_types ), wp_list_pluck( $post_types, 'label' ) );
246
-    unset( $post_types[ 'attachment' ] );
246
+	unset( $post_types[ 'attachment' ] );
247 247
 
248 248
 	/**
249 249
 	 * Set which post types are allowed
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
 		'public' => true,
272 272
 	), 'names' );
273 273
 	//$post_types = array_combine( array_keys( $post_types ), wp_list_pluck( $post_types, 'label' ) );
274
-    unset( $post_types[ 'attachment' ] );
274
+	unset( $post_types[ 'attachment' ] );
275 275
 
276 276
 	/**
277 277
 	 * Set which post types are allowed
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
  */
375 375
 if ( !function_exists( 'lasso_user_can' ) ):
376 376
 	function lasso_user_can( $action = '', $postid = 0 ) {
377
-        $result = false;
377
+		$result = false;
378 378
 		if ( empty( $action ) )
379 379
 			$action = 'edit_posts';
380 380
 
@@ -389,17 +389,17 @@  discard block
 block discarded – undo
389 389
 				$allowed_post_types = array_diff($allowed_post_types,array('page'));
390 390
 			}
391 391
 			
392
-            if (!empty($allowed_post_types) && !empty($postid)) {
392
+			if (!empty($allowed_post_types) && !empty($postid)) {
393 393
 				$type = get_post_type( $postid );
394
-                $allowed_post_types = apply_filters( 'lasso_allowed_post_types', $allowed_post_types );
394
+				$allowed_post_types = apply_filters( 'lasso_allowed_post_types', $allowed_post_types );
395 395
 				
396
-                if ( in_array( $type, $allowed_post_types ) ) {
396
+				if ( in_array( $type, $allowed_post_types ) ) {
397 397
 				   $result =  true;
398
-			    }
399
-            } else {
400
-                //we are not checking against a post, return true
398
+				}
399
+			} else {
400
+				//we are not checking against a post, return true
401 401
 				$result =  true;
402
-        	}
402
+			}
403 403
 		} else {
404 404
 			$result = false;
405 405
 		}
Please login to merge, or discard this patch.