Completed
Push — master ( 423b35...e79207 )
by Md. Mozahidur
02:17
created
inc/jetpack.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@
 block discarded – undo
33 33
 	while ( have_posts() ) {
34 34
 		the_post();
35 35
 		if ( is_search() ) :
36
-		    get_template_part( 'template-parts/content', 'search' );
36
+			get_template_part( 'template-parts/content', 'search' );
37 37
 		else :
38
-		    get_template_part( 'template-parts/content', get_post_format() );
38
+			get_template_part( 'template-parts/content', get_post_format() );
39 39
 		endif;
40 40
 	}
41 41
 }
Please login to merge, or discard this patch.
single.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 							<?php
69 69
 							 $postslist = get_posts('numberposts=99&order=DESC&orderby=date');
70 70
 							 foreach ($postslist as $post) :
71
-							    setup_postdata($post);
71
+								setup_postdata($post);
72 72
 							 ?>
73 73
 							 <div class="col-xs-12">
74 74
 							 <div class="entry">
Please login to merge, or discard this patch.
includes/acf/api/api-field.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -679,6 +679,9 @@
 block discarded – undo
679 679
 *  @return	$fields (array)
680 680
 */
681 681
 
682
+/**
683
+ * @return boolean
684
+ */
682 685
 function acf_get_fields_by_id( $id = 0 ) {
683 686
 	
684 687
 	// vars
Please login to merge, or discard this patch.
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -1209,69 +1209,69 @@
 block discarded – undo
1209 1209
 	$data = maybe_serialize( $data );
1210 1210
     
1211 1211
     
1212
-    // save
1213
-    $save = array(
1214
-    	'ID'			=> $extract['ID'],
1215
-    	'post_status'	=> 'publish',
1216
-    	'post_type'		=> 'acf-field',
1217
-    	'post_title'	=> $extract['label'],
1218
-    	'post_name'		=> $extract['key'],
1219
-    	'post_excerpt'	=> $extract['name'],
1220
-    	'post_content'	=> $data,
1221
-    	'post_parent'	=> $extract['parent'],
1222
-    	'menu_order'	=> $extract['menu_order'],
1223
-    );
1212
+	// save
1213
+	$save = array(
1214
+		'ID'			=> $extract['ID'],
1215
+		'post_status'	=> 'publish',
1216
+		'post_type'		=> 'acf-field',
1217
+		'post_title'	=> $extract['label'],
1218
+		'post_name'		=> $extract['key'],
1219
+		'post_excerpt'	=> $extract['name'],
1220
+		'post_content'	=> $data,
1221
+		'post_parent'	=> $extract['parent'],
1222
+		'menu_order'	=> $extract['menu_order'],
1223
+	);
1224 1224
     
1225 1225
     
1226
-    // $specific
1227
-    if( !empty($specific) ) {
1226
+	// $specific
1227
+	if( !empty($specific) ) {
1228 1228
 	    
1229
-	    // prepend ID
1230
-    	array_unshift( $specific, 'ID' );
1229
+		// prepend ID
1230
+		array_unshift( $specific, 'ID' );
1231 1231
     	
1232 1232
     	
1233
-	    // vars
1234
-	    $_save = $save;
1233
+		// vars
1234
+		$_save = $save;
1235 1235
 	    
1236 1236
 	    
1237
-	    // reset
1238
-	    $save = array();
1237
+		// reset
1238
+		$save = array();
1239 1239
 	    
1240 1240
     	
1241
-    	// appen data
1242
-    	foreach( $specific as $key ) {
1241
+		// appen data
1242
+		foreach( $specific as $key ) {
1243 1243
 	    	
1244
-	    	$save[ $key ] = $_save[ $key ];
1244
+			$save[ $key ] = $_save[ $key ];
1245 1245
 	    	
1246
-    	}
1246
+		}
1247 1247
     	
1248
-    }
1248
+	}
1249 1249
     
1250 1250
     
1251
-    // allow fields to contain the same name
1251
+	// allow fields to contain the same name
1252 1252
 	add_filter( 'wp_unique_post_slug', 'acf_update_field_wp_unique_post_slug', 100, 6 ); 
1253 1253
 	
1254 1254
 	
1255
-    // update the field and update the ID
1256
-    if( $field['ID'] ) {
1255
+	// update the field and update the ID
1256
+	if( $field['ID'] ) {
1257 1257
 	    
1258
-	    wp_update_post( $save );
1258
+		wp_update_post( $save );
1259 1259
 	    
1260
-    } else  {
1260
+	} else  {
1261 1261
 	    
1262
-	    $field['ID'] = wp_insert_post( $save );
1262
+		$field['ID'] = wp_insert_post( $save );
1263 1263
 	    
1264
-    }
1264
+	}
1265 1265
 	
1266 1266
     
1267
-    // clear cache
1267
+	// clear cache
1268 1268
 	wp_cache_delete( "get_field/ID={$field['ID']}", 'acf' );
1269 1269
 	wp_cache_delete( "get_field/key={$field['key']}", 'acf' );
1270 1270
 	wp_cache_delete( "get_fields/parent={$field['parent']}", 'acf' );
1271 1271
 	
1272 1272
 	
1273
-    // return
1274
-    return $field;
1273
+	// return
1274
+	return $field;
1275 1275
 	
1276 1276
 }
1277 1277
 
Please login to merge, or discard this patch.
includes/acf/api/api-helpers.php 2 patches
Doc Comments   +34 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@  discard block
 block discarded – undo
13 13
 *  @return	(mixed)
14 14
 */
15 15
 
16
+/**
17
+ * @param string $name
18
+ */
16 19
 function acf_get_setting( $name, $default = null ) {
17 20
 	
18 21
 	// vars
@@ -46,6 +49,9 @@  discard block
 block discarded – undo
46 49
 *  @return	(boolean)
47 50
 */
48 51
 
52
+/**
53
+ * @param string $name
54
+ */
49 55
 function acf_get_compatibility( $name ) {
50 56
 	
51 57
 	return apply_filters( "acf/compatibility/{$name}", false );
@@ -67,6 +73,9 @@  discard block
 block discarded – undo
67 73
 *  @return	n/a
68 74
 */
69 75
 
76
+/**
77
+ * @param string $name
78
+ */
70 79
 function acf_update_setting( $name, $value ) {
71 80
 	
72 81
 	acf()->settings[ $name ] = $value;
@@ -88,6 +97,10 @@  discard block
 block discarded – undo
88 97
 *  @return	n/a
89 98
 */
90 99
 
100
+/**
101
+ * @param string $name
102
+ * @param string $value
103
+ */
91 104
 function acf_append_setting( $name, $value ) {
92 105
 	
93 106
 	// createa array if needed
@@ -116,6 +129,9 @@  discard block
 block discarded – undo
116 129
 *  @return	(boolean)
117 130
 */
118 131
 
132
+/**
133
+ * @param string $name
134
+ */
119 135
 function acf_has_done( $name ) {
120 136
 	
121 137
 	// vars
@@ -189,6 +205,9 @@  discard block
 block discarded – undo
189 205
 *  @return	$post_id (int)
190 206
 */
191 207
 
208
+/**
209
+ * @param string $file
210
+ */
192 211
 function acf_include( $file ) {
193 212
 	
194 213
 	$path = acf_get_path( $file );
@@ -523,6 +542,9 @@  discard block
 block discarded – undo
523 542
 *  @return	(mixed)
524 543
 */
525 544
 
545
+/**
546
+ * @param string $default
547
+ */
526 548
 function acf_extract_var( &$array, $key, $default = null ) {
527 549
 	
528 550
 	// check if exists
@@ -560,6 +582,9 @@  discard block
 block discarded – undo
560 582
 *  @return	$post_id (int)
561 583
 */
562 584
 
585
+/**
586
+ * @param string[] $keys
587
+ */
563 588
 function acf_extract_vars( &$array, $keys ) {
564 589
 	
565 590
 	$r = array();
@@ -713,6 +738,9 @@  discard block
 block discarded – undo
713 738
 *  @return	(boolean)
714 739
 */
715 740
 
741
+/**
742
+ * @param string $value
743
+ */
716 744
 function acf_verify_nonce( $value, $post_id = 0 ) {
717 745
 	
718 746
 	// vars
@@ -1903,6 +1931,9 @@  discard block
 block discarded – undo
1903 1931
 *  @return	(boolean)
1904 1932
 */
1905 1933
 
1934
+/**
1935
+ * @param string $needle
1936
+ */
1906 1937
 function acf_str_exists( $needle, $haystack ) {
1907 1938
 	
1908 1939
 	// return true if $haystack contains the $needle
@@ -2376,6 +2407,9 @@  discard block
 block discarded – undo
2376 2407
 *  @return	$post_id (int)
2377 2408
 */
2378 2409
 
2410
+/**
2411
+ * @return string
2412
+ */
2379 2413
 function acf_get_user_setting( $name = '', $default = false ) {
2380 2414
 	
2381 2415
 	// get current user id
Please login to merge, or discard this patch.
Indentation   +63 added lines, -63 removed lines patch added patch discarded remove patch
@@ -1475,7 +1475,7 @@  discard block
 block discarded – undo
1475 1475
 	}
1476 1476
 	
1477 1477
     
1478
-    // get bits
1478
+	// get bits
1479 1479
 	$glue = 'AND';
1480 1480
 	$bits = explode($glue, $sql);
1481 1481
 	
@@ -1496,8 +1496,8 @@  discard block
 block discarded – undo
1496 1496
 	$sql = implode($glue, $bits);
1497 1497
     
1498 1498
     
1499
-    // return
1500
-    return $sql;
1499
+	// return
1500
+	return $sql;
1501 1501
     
1502 1502
 }
1503 1503
 
@@ -1831,60 +1831,60 @@  discard block
 block discarded – undo
1831 1831
 	
1832 1832
 	
1833 1833
 	// http://snipplr.com/view.php?codeview&id=60559
1834
-    $result      = '';
1835
-    $pos         = 0;
1836
-    $strLen      = strlen($json);
1837
-    $indentStr   = "    ";
1838
-    $newLine     = "\n";
1839
-    $prevChar    = '';
1840
-    $outOfQuotes = true;
1841
-
1842
-    for ($i=0; $i<=$strLen; $i++) {
1843
-
1844
-        // Grab the next character in the string.
1845
-        $char = substr($json, $i, 1);
1846
-
1847
-        // Are we inside a quoted string?
1848
-        if ($char == '"' && $prevChar != '\\') {
1849
-            $outOfQuotes = !$outOfQuotes;
1834
+	$result      = '';
1835
+	$pos         = 0;
1836
+	$strLen      = strlen($json);
1837
+	$indentStr   = "    ";
1838
+	$newLine     = "\n";
1839
+	$prevChar    = '';
1840
+	$outOfQuotes = true;
1841
+
1842
+	for ($i=0; $i<=$strLen; $i++) {
1843
+
1844
+		// Grab the next character in the string.
1845
+		$char = substr($json, $i, 1);
1846
+
1847
+		// Are we inside a quoted string?
1848
+		if ($char == '"' && $prevChar != '\\') {
1849
+			$outOfQuotes = !$outOfQuotes;
1850 1850
         
1851
-        // If this character is the end of an element, 
1852
-        // output a new line and indent the next line.
1853
-        } else if(($char == '}' || $char == ']') && $outOfQuotes) {
1854
-            $result .= $newLine;
1855
-            $pos --;
1856
-            for ($j=0; $j<$pos; $j++) {
1857
-                $result .= $indentStr;
1858
-            }
1859
-        }
1851
+		// If this character is the end of an element, 
1852
+		// output a new line and indent the next line.
1853
+		} else if(($char == '}' || $char == ']') && $outOfQuotes) {
1854
+			$result .= $newLine;
1855
+			$pos --;
1856
+			for ($j=0; $j<$pos; $j++) {
1857
+				$result .= $indentStr;
1858
+			}
1859
+		}
1860 1860
         
1861
-        // Add the character to the result string.
1862
-        $result .= $char;
1861
+		// Add the character to the result string.
1862
+		$result .= $char;
1863 1863
 		
1864 1864
 		// If this character is ':' adda space after it
1865
-        if($char == ':' && $outOfQuotes) {
1866
-            $result .= ' ';
1867
-        }
1865
+		if($char == ':' && $outOfQuotes) {
1866
+			$result .= ' ';
1867
+		}
1868 1868
         
1869
-        // If the last character was the beginning of an element, 
1870
-        // output a new line and indent the next line.
1871
-        if (($char == ',' || $char == '{' || $char == '[') && $outOfQuotes) {
1872
-            $result .= $newLine;
1873
-            if ($char == '{' || $char == '[') {
1874
-                $pos ++;
1875
-            }
1869
+		// If the last character was the beginning of an element, 
1870
+		// output a new line and indent the next line.
1871
+		if (($char == ',' || $char == '{' || $char == '[') && $outOfQuotes) {
1872
+			$result .= $newLine;
1873
+			if ($char == '{' || $char == '[') {
1874
+				$pos ++;
1875
+			}
1876 1876
             
1877
-            for ($j = 0; $j < $pos; $j++) {
1878
-                $result .= $indentStr;
1879
-            }
1880
-        }
1877
+			for ($j = 0; $j < $pos; $j++) {
1878
+				$result .= $indentStr;
1879
+			}
1880
+		}
1881 1881
         
1882
-        $prevChar = $char;
1883
-    }
1882
+		$prevChar = $char;
1883
+	}
1884 1884
 	
1885 1885
 	
1886 1886
 	// return
1887
-    return $result;
1887
+	return $result;
1888 1888
 	
1889 1889
 }
1890 1890
 
@@ -2035,21 +2035,21 @@  discard block
 block discarded – undo
2035 2035
 	
2036 2036
 	$dir = opendir( $path );
2037 2037
 
2038
-    while(false !== ( $file = readdir($dir)) ) {
2038
+	while(false !== ( $file = readdir($dir)) ) {
2039 2039
     
2040
-    	// only php files
2041
-    	if( substr($file, -4) !== '.php' ) {
2040
+		// only php files
2041
+		if( substr($file, -4) !== '.php' ) {
2042 2042
     	
2043
-	    	continue;
2043
+			continue;
2044 2044
 	    	
2045
-    	}
2045
+		}
2046 2046
     	
2047 2047
     	
2048
-    	// get version number
2049
-    	$update_version = substr($file, 0, -4);
2048
+		// get version number
2049
+		$update_version = substr($file, 0, -4);
2050 2050
     	
2051 2051
     	
2052
-    	// ignore if update is for a future version. May exist for testing
2052
+		// ignore if update is for a future version. May exist for testing
2053 2053
 		if( version_compare( $update_version, $plugin_version, '>') ) {
2054 2054
 		
2055 2055
 			continue;
@@ -2064,14 +2064,14 @@  discard block
 block discarded – undo
2064 2064
 		}
2065 2065
 		
2066 2066
 		
2067
-    	// append
2068
-        $updates[] = $update_version;
2067
+		// append
2068
+		$updates[] = $update_version;
2069 2069
         
2070
-    }
2070
+	}
2071 2071
     
2072 2072
     
2073
-    // return
2074
-    return $updates;
2073
+	// return
2074
+	return $updates;
2075 2075
 	
2076 2076
 }
2077 2077
 
@@ -2994,7 +2994,7 @@  discard block
 block discarded – undo
2994 2994
 		
2995 2995
 		if( $pos !== false ) {
2996 2996
 			
2997
-		    $url = substr_replace($url, '', $pos, $length);
2997
+			$url = substr_replace($url, '', $pos, $length);
2998 2998
 		    
2999 2999
 		}
3000 3000
 				
@@ -3592,8 +3592,8 @@  discard block
 block discarded – undo
3592 3592
 function _acf_settings_slug( $v ) {
3593 3593
 	
3594 3594
 	$basename = acf_get_setting('basename');
3595
-    $slug = explode('/', $basename);
3596
-    $slug = current($slug);
3595
+	$slug = explode('/', $basename);
3596
+	$slug = current($slug);
3597 3597
 	
3598 3598
 	return $slug;
3599 3599
 }
Please login to merge, or discard this patch.
includes/acf/api/api-template.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@  discard block
 block discarded – undo
15 15
 *  @return	$reference (string)	a string containing the field_key
16 16
 */
17 17
 
18
+/**
19
+ * @return string
20
+ */
18 21
 function acf_get_field_reference( $field_name, $post_id ) {
19 22
 	
20 23
 	// try cache
@@ -857,6 +860,9 @@  discard block
 block discarded – undo
857 860
 *  @return	(array)	
858 861
 */
859 862
 
863
+/**
864
+ * @param string $selector
865
+ */
860 866
 function get_sub_field_object( $selector, $format_value = true, $load_value = true ) {
861 867
 	
862 868
 	// vars
Please login to merge, or discard this patch.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -994,23 +994,23 @@
 block discarded – undo
994 994
 	if( acf_verify_nonce('acf_form') ) {
995 995
 		
996 996
 		// validate data
997
-	    if( acf_validate_save_post(true) ) {
997
+		if( acf_validate_save_post(true) ) {
998 998
 	    	
999
-	    	// form
1000
-	    	$GLOBALS['acf_form'] = acf_extract_var($_POST, '_acf_form');
1001
-	    	$GLOBALS['acf_form'] = @json_decode(base64_decode($GLOBALS['acf_form']), true);
999
+			// form
1000
+			$GLOBALS['acf_form'] = acf_extract_var($_POST, '_acf_form');
1001
+			$GLOBALS['acf_form'] = @json_decode(base64_decode($GLOBALS['acf_form']), true);
1002 1002
 	    	
1003 1003
 	    	
1004
-	    	// validate
1005
-	    	if( empty($GLOBALS['acf_form']) ) {
1004
+			// validate
1005
+			if( empty($GLOBALS['acf_form']) ) {
1006 1006
 		    	
1007
-		    	return;
1007
+				return;
1008 1008
 		    	
1009
-	    	}
1009
+			}
1010 1010
 	    	
1011 1011
 	    	
1012
-	    	// vars
1013
-	    	$post_id = acf_maybe_get( $GLOBALS['acf_form'], 'post_id', 0 );
1012
+			// vars
1013
+			$post_id = acf_maybe_get( $GLOBALS['acf_form'], 'post_id', 0 );
1014 1014
 			
1015 1015
 			
1016 1016
 			// allow for custom save
Please login to merge, or discard this patch.
includes/acf/forms/user.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -207,6 +207,9 @@
 block discarded – undo
207 207
 	*  @return	n/a
208 208
 	*/
209 209
 	
210
+	/**
211
+	 * @param string $user_form
212
+	 */
210 213
 	function render( $user_id, $user_form, $el = 'tr' ) {
211 214
 		
212 215
 		// vars
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -382,8 +382,8 @@
 block discarded – undo
382 382
 		}
383 383
 		
384 384
 	    
385
-	    // save data
386
-	    if( acf_validate_save_post(true) ) {
385
+		// save data
386
+		if( acf_validate_save_post(true) ) {
387 387
 	    	
388 388
 			acf_save_post( "user_{$user_id}" );
389 389
 		
Please login to merge, or discard this patch.
includes/acf/pro/api/api-pro.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -72,6 +72,9 @@
 block discarded – undo
72 72
 *  @return	$post_id (int)
73 73
 */
74 74
 
75
+/**
76
+ * @return string
77
+ */
75 78
 function acf_pro_get_remote_response( $action = '', $post = array() ) {
76 79
 	
77 80
 	// vars
Please login to merge, or discard this patch.
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -85,15 +85,15 @@  discard block
 block discarded – undo
85 85
 	
86 86
 	
87 87
 	// return body
88
-    if( !is_wp_error($request) || wp_remote_retrieve_response_code($request) === 200) {
88
+	if( !is_wp_error($request) || wp_remote_retrieve_response_code($request) === 200) {
89 89
     	
90
-        return $request['body'];
90
+		return $request['body'];
91 91
     
92
-    }
92
+	}
93 93
     
94 94
     
95
-    // return
96
-    return 0;
95
+	// return
96
+	return 0;
97 97
     
98 98
 }
99 99
 
@@ -126,12 +126,12 @@  discard block
 block discarded – undo
126 126
 	}
127 127
 	
128 128
     
129
-    // return false if the external version is '<=' the current version
129
+	// return false if the external version is '<=' the current version
130 130
 	if( version_compare($info['version'], $version, '<=') ) {
131 131
 		
132
-    	return false;
132
+		return false;
133 133
     
134
-    }
134
+	}
135 135
     
136 136
 	
137 137
 	// return
@@ -187,20 +187,20 @@  discard block
 block discarded – undo
187 187
 	$timeout = 12 * HOUR_IN_SECONDS;
188 188
 	
189 189
 	
190
-    // decode
191
-    if( !empty($info) ) {
190
+	// decode
191
+	if( !empty($info) ) {
192 192
     	
193 193
 		$info = json_decode($info, true);
194 194
 		
195 195
 		// fake info version
196
-        //$info['version'] = '6.0.0';
196
+		//$info['version'] = '6.0.0';
197 197
         
198
-    } else {
198
+	} else {
199 199
 	    
200
-	    $info = 0; // allow transient to be returned, but empty to validate
201
-	    $timeout = 2 * HOUR_IN_SECONDS;
200
+		$info = 0; // allow transient to be returned, but empty to validate
201
+		$timeout = 2 * HOUR_IN_SECONDS;
202 202
 	    
203
-    }
203
+	}
204 204
         
205 205
         
206 206
 	// update transient
Please login to merge, or discard this patch.
includes/acf-settings.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@  discard block
 block discarded – undo
8 8
  
9 9
 function my_acf_settings_path( $path ) {
10 10
  
11
-    // update path
12
-    $path = get_stylesheet_directory() . '/includes/acf/';
11
+	// update path
12
+	$path = get_stylesheet_directory() . '/includes/acf/';
13 13
     
14
-    // return
15
-    return $path;
14
+	// return
15
+	return $path;
16 16
 }
17 17
 
18 18
 // Customize ACF dir
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
  
21 21
 function my_acf_settings_dir( $dir ) {
22 22
  
23
-    // update path
24
-    $dir = get_stylesheet_directory_uri() . '/includes/acf/';
23
+	// update path
24
+	$dir = get_stylesheet_directory_uri() . '/includes/acf/';
25 25
     
26
-    // return
27
-    return $dir;
26
+	// return
27
+	return $dir;
28 28
 }
29 29
 
30 30
 // Save ACF field as JSON
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
  
33 33
 function my_acf_json_save_point( $path ) {
34 34
     
35
-    // update path
36
-    $path = get_stylesheet_directory() . '/includes/acf-json';
35
+	// update path
36
+	$path = get_stylesheet_directory() . '/includes/acf-json';
37 37
     
38
-    // return
39
-    return $path; 
38
+	// return
39
+	return $path; 
40 40
 }
41 41
 
42 42
 // Load ACF field from JSON
@@ -44,14 +44,14 @@  discard block
 block discarded – undo
44 44
 
45 45
 function my_acf_json_load_point( $paths ) {
46 46
     
47
-    // remove original path (optional)
48
-    unset($paths[0]);
47
+	// remove original path (optional)
48
+	unset($paths[0]);
49 49
     
50
-    // append path
51
-    $paths[] = get_stylesheet_directory() . '/includes/acf-json';
50
+	// append path
51
+	$paths[] = get_stylesheet_directory() . '/includes/acf-json';
52 52
     
53
-    // return
54
-    return $paths;
53
+	// return
54
+	return $paths;
55 55
 }
56 56
 
57 57
 
Please login to merge, or discard this patch.
includes/acf/acf.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -263,16 +263,16 @@  discard block
 block discarded – undo
263 263
 		// register post type 'acf-field-group'
264 264
 		register_post_type('acf-field-group', array(
265 265
 			'labels'			=> array(
266
-			    'name'					=> __( 'Field Groups', 'acf' ),
266
+				'name'					=> __( 'Field Groups', 'acf' ),
267 267
 				'singular_name'			=> __( 'Field Group', 'acf' ),
268
-			    'add_new'				=> __( 'Add New' , 'acf' ),
269
-			    'add_new_item'			=> __( 'Add New Field Group' , 'acf' ),
270
-			    'edit_item'				=> __( 'Edit Field Group' , 'acf' ),
271
-			    'new_item'				=> __( 'New Field Group' , 'acf' ),
272
-			    'view_item'				=> __( 'View Field Group', 'acf' ),
273
-			    'search_items'			=> __( 'Search Field Groups', 'acf' ),
274
-			    'not_found'				=> __( 'No Field Groups found', 'acf' ),
275
-			    'not_found_in_trash'	=> __( 'No Field Groups found in Trash', 'acf' ), 
268
+				'add_new'				=> __( 'Add New' , 'acf' ),
269
+				'add_new_item'			=> __( 'Add New Field Group' , 'acf' ),
270
+				'edit_item'				=> __( 'Edit Field Group' , 'acf' ),
271
+				'new_item'				=> __( 'New Field Group' , 'acf' ),
272
+				'view_item'				=> __( 'View Field Group', 'acf' ),
273
+				'search_items'			=> __( 'Search Field Groups', 'acf' ),
274
+				'not_found'				=> __( 'No Field Groups found', 'acf' ),
275
+				'not_found_in_trash'	=> __( 'No Field Groups found in Trash', 'acf' ), 
276 276
 			),
277 277
 			'public'			=> false,
278 278
 			'show_ui'			=> true,
@@ -295,16 +295,16 @@  discard block
 block discarded – undo
295 295
 		// register post type 'acf-field'
296 296
 		register_post_type('acf-field', array(
297 297
 			'labels'			=> array(
298
-			    'name'					=> __( 'Fields', 'acf' ),
298
+				'name'					=> __( 'Fields', 'acf' ),
299 299
 				'singular_name'			=> __( 'Field', 'acf' ),
300
-			    'add_new'				=> __( 'Add New' , 'acf' ),
301
-			    'add_new_item'			=> __( 'Add New Field' , 'acf' ),
302
-			    'edit_item'				=> __( 'Edit Field' , 'acf' ),
303
-			    'new_item'				=> __( 'New Field' , 'acf' ),
304
-			    'view_item'				=> __( 'View Field', 'acf' ),
305
-			    'search_items'			=> __( 'Search Fields', 'acf' ),
306
-			    'not_found'				=> __( 'No Fields found', 'acf' ),
307
-			    'not_found_in_trash'	=> __( 'No Fields found in Trash', 'acf' ), 
300
+				'add_new'				=> __( 'Add New' , 'acf' ),
301
+				'add_new_item'			=> __( 'Add New Field' , 'acf' ),
302
+				'edit_item'				=> __( 'Edit Field' , 'acf' ),
303
+				'new_item'				=> __( 'New Field' , 'acf' ),
304
+				'view_item'				=> __( 'View Field', 'acf' ),
305
+				'search_items'			=> __( 'Search Fields', 'acf' ),
306
+				'not_found'				=> __( 'No Fields found', 'acf' ),
307
+				'not_found_in_trash'	=> __( 'No Fields found in Trash', 'acf' ), 
308 308
 			),
309 309
 			'public'			=> false,
310 310
 			'show_ui'			=> false,
@@ -413,27 +413,27 @@  discard block
 block discarded – undo
413 413
 		
414 414
 			$where .= $wpdb->prepare(" AND {$wpdb->posts}.post_name = %s", $field_key );
415 415
 			
416
-	    }
416
+		}
417 417
 	    
418 418
 	    
419
-	    // acf_field_name
420
-	    if( $field_name = $wp_query->get('acf_field_name') ) {
419
+		// acf_field_name
420
+		if( $field_name = $wp_query->get('acf_field_name') ) {
421 421
 	    
422 422
 			$where .= $wpdb->prepare(" AND {$wpdb->posts}.post_excerpt = %s", $field_name );
423 423
 			
424
-	    }
424
+		}
425 425
 	    
426 426
 	    
427
-	    // acf_group_key
427
+		// acf_group_key
428 428
 		if( $group_key = $wp_query->get('acf_group_key') ) {
429 429
 		
430 430
 			$where .= $wpdb->prepare(" AND {$wpdb->posts}.post_name = %s", $group_key );
431 431
 			
432
-	    }
432
+		}
433 433
 	    
434 434
 	    
435
-	    // return
436
-	    return $where;
435
+		// return
436
+		return $where;
437 437
 	    
438 438
 	}
439 439
 	
Please login to merge, or discard this patch.