Completed
Push — master ( e528e5...1c19be )
by
unknown
01:47
created
admin/includes/menus/settings.php 1 patch
Braces   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,8 +45,9 @@  discard block
 block discarded – undo
45 45
 	function process_settings() {
46 46
 
47 47
 		// bail out if current user isn't and administrator and they are not logged in
48
-		if ( !current_user_can( 'manage_options' ) || !is_user_logged_in() )
49
-			return;
48
+		if ( !current_user_can( 'manage_options' ) || !is_user_logged_in() ) {
49
+					return;
50
+		}
50 51
 
51 52
 		if ( isset( $_POST['action'] ) && 'lasso-editor-settings' == $_POST['action'] && check_admin_referer( 'nonce', 'lasso_editor_settings' ) ) {
52 53
 
@@ -86,8 +87,9 @@  discard block
 block discarded – undo
86 87
 	 */
87 88
 	function lasso_editor_settings_form() {
88 89
 
89
-		if ( !is_user_logged_in() )
90
-			return;
90
+		if ( !is_user_logged_in() ) {
91
+					return;
92
+		}
91 93
 
92 94
 		$article_object   = lasso_editor_get_option( 'article_class', 'lasso_editor' );
93 95
 		$featImgClass    = lasso_editor_get_option( 'featimg_class', 'lasso_editor' );
@@ -137,7 +139,9 @@  discard block
 block discarded – undo
137 139
 						$post_types = get_post_types( $args, 'objects' );
138 140
 						 
139 141
 						foreach ( $post_types  as $post_type ) {
140
-						   if ($post_type->name == 'attachment') continue;
142
+						   if ($post_type->name == 'attachment') {
143
+						   	continue;
144
+						   }
141 145
 						   $checked ="";
142 146
 						   if (  in_array( $post_type->name, $allowed_post_types )  ) {
143 147
 								$checked = 'checked="checked"';
Please login to merge, or discard this patch.
public/includes/editor-modules.php 1 patch
Braces   +35 added lines, -21 removed lines patch added patch discarded remove patch
@@ -109,8 +109,9 @@  discard block
 block discarded – undo
109 109
 
110 110
 	ob_start();
111 111
 
112
-	if ( !lasso_user_can() )
113
-		return;
112
+	if ( !lasso_user_can() ) {
113
+			return;
114
+	}
114 115
 
115 116
 	// let users add custom css classes
116 117
 	$custom_classes = apply_filters( 'lasso_sidebar_classes', '' );
@@ -133,8 +134,9 @@  discard block
 block discarded – undo
133 134
 
134 135
 	ob_start();
135 136
 
136
-	if ( !lasso_user_can() )
137
-		return;
137
+	if ( !lasso_user_can() ) {
138
+			return;
139
+	}
138 140
 	
139 141
 	$is_mobile = wp_is_mobile();
140 142
 
@@ -205,8 +207,11 @@  discard block
 block discarded – undo
205 207
 						<?php if ( class_exists ('Aesop_GalleryPop') ) { ?>
206 208
 						     <li data-type="gallery" title="<?php esc_attr_e( 'Gallery Pop', 'lasso' );?>"  class="lasso-toolbar--component__gallerypop"></li>
207 209
 						<?php }?>
208
-					<?php else: ?>
209
-						<li data-type="wpimg" title="<?php esc_attr_e( 'WordPress Image', 'lasso' );?>" class="image lasso-toolbar--component__image"></li>
210
+					<?php else {
211
+	: ?>
212
+						<li data-type="wpimg" title="<?php esc_attr_e( 'WordPress Image', 'lasso' );
213
+}
214
+?>" class="image lasso-toolbar--component__image"></li>
210 215
 						<li data-type="wpquote" title="<?php esc_attr_e( 'WordPress Quote', 'lasso' );?>" class="quote lasso-toolbar--component__quote"></li>
211 216
 						<!--li data-type="wpvideo" title="<?php esc_attr_e( 'WordPress Video', 'lasso' );?>" class="video lasso-toolbar--component__video"></li-->
212 217
 					<?php endif; ?>
@@ -274,8 +279,9 @@  discard block
 block discarded – undo
274 279
 
275 280
 	ob_start();
276 281
 
277
-	if ( !lasso_user_can() )
278
-		return;
282
+	if ( !lasso_user_can() ) {
283
+			return;
284
+	}
279 285
 
280 286
 	// let users add custom css classes
281 287
 	$custom_classes = apply_filters( 'lasso_component_classes', '' );
@@ -301,8 +307,9 @@  discard block
 block discarded – undo
301 307
 
302 308
 	ob_start();
303 309
 
304
-	if ( !lasso_user_can() )
305
-		return;
310
+	if ( !lasso_user_can() ) {
311
+			return;
312
+	}
306 313
 
307 314
 	// has post thumbnail
308 315
 	$has_thumbnail = has_post_thumbnail( get_the_ID() ) ? 'class="lasso--featImg--has-thumb"' : false;
@@ -330,8 +337,9 @@  discard block
 block discarded – undo
330 337
 
331 338
 	ob_start();
332 339
 
333
-	if ( !lasso_user_can() )
334
-		return;
340
+	if ( !lasso_user_can() ) {
341
+			return;
342
+	}
335 343
 
336 344
 	global $post;
337 345
 
@@ -428,7 +436,9 @@  discard block
 block discarded – undo
428 436
 							$allcats = explode(",",lasso_get_objects('category'));
429 437
 							$currcats = explode(",",$categories);
430 438
 							foreach ( $allcats  as $category ) {
431
-								if (empty($category)) continue;
439
+								if (empty($category)) {
440
+									continue;
441
+								}
432 442
 							   $checked ="";
433 443
 							   if (  in_array( $category, $currcats ) ) {
434 444
 									$checked = 'checked="checked"';
@@ -476,8 +486,9 @@  discard block
 block discarded – undo
476 486
 
477 487
 	ob_start();
478 488
 
479
-	if ( !lasso_user_can('edit_posts') )
480
-		return;
489
+	if ( !lasso_user_can('edit_posts') ) {
490
+			return;
491
+	}
481 492
 
482 493
 	$status = get_post_status( get_the_ID() );
483 494
 
@@ -608,8 +619,9 @@  discard block
 block discarded – undo
608 619
 
609 620
 	ob_start();
610 621
 
611
-	if ( !lasso_user_can() )
612
-		return;
622
+	if ( !lasso_user_can() ) {
623
+			return;
624
+	}
613 625
 
614 626
 	// let users add custom css classes
615 627
 	$custom_classes = apply_filters( 'lasso_wpimg_classes', '' );
@@ -629,8 +641,9 @@  discard block
 block discarded – undo
629 641
 
630 642
 	ob_start();
631 643
 
632
-	if ( !lasso_user_can() )
633
-		return;
644
+	if ( !lasso_user_can() ) {
645
+			return;
646
+	}
634 647
 
635 648
 	// let users add custom css classes
636 649
 	$custom_classes = apply_filters( 'lasso_wpimg_classes', '' );
@@ -701,8 +714,9 @@  discard block
 block discarded – undo
701 714
 
702 715
 	$blob = array();
703 716
 
704
-	if ( empty( $codes ) )
705
-		return;
717
+	if ( empty( $codes ) ) {
718
+			return;
719
+	}
706 720
 
707 721
 	foreach ( $codes as $slug => $shortcode ) {
708 722
 		$return = '';
Please login to merge, or discard this patch.