Completed
Push — master ( bf1080...d99bb1 )
by Md. Mozahidur
04:04
created
includes/acf/admin/field-group.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -282,13 +282,13 @@  discard block
 block discarded – undo
282 282
 		
283 283
 		
284 284
 		// append
285
-	    $html .= '<div id="acf-append-show-on-screen" class="acf-hidden">';
286
-	    $html .= '<label for="acf-field-key-hide"><input id="acf-field-key-hide" type="checkbox" value="1" name="show_field_keys" ' . $checked . ' /> ' . __('Field Keys','acf') . '</label>';
285
+		$html .= '<div id="acf-append-show-on-screen" class="acf-hidden">';
286
+		$html .= '<label for="acf-field-key-hide"><input id="acf-field-key-hide" type="checkbox" value="1" name="show_field_keys" ' . $checked . ' /> ' . __('Field Keys','acf') . '</label>';
287 287
 		$html .= '</div>';
288 288
 	    
289 289
 	    
290
-	    // return
291
-	    return $html;
290
+		// return
291
+		return $html;
292 292
 	    
293 293
 	}
294 294
 	
@@ -396,9 +396,9 @@  discard block
 block discarded – undo
396 396
 		// only save once! WordPress save's a revision as well.
397 397
 		if( wp_is_post_revision($post_id) ) {
398 398
 		
399
-	    	return $post_id;
399
+			return $post_id;
400 400
 	    	
401
-        }
401
+		}
402 402
         
403 403
         
404 404
 		// verify nonce
@@ -409,11 +409,11 @@  discard block
 block discarded – undo
409 409
 		}
410 410
         
411 411
         
412
-        // disable local to avoid conflicts between DB and local
412
+		// disable local to avoid conflicts between DB and local
413 413
 		acf_disable_local();
414 414
 		
415 415
         
416
-        // save fields
416
+		// save fields
417 417
 		unset( $_POST['acf_fields']['acfcloneindex'] );
418 418
 		
419 419
 		if( !empty($_POST['acf_fields']) ) {
@@ -453,10 +453,10 @@  discard block
 block discarded – undo
453 453
 		
454 454
 		
455 455
 		// delete fields
456
-        if( $_POST['_acf_delete_fields'] ) {
456
+		if( $_POST['_acf_delete_fields'] ) {
457 457
         	
458
-	    	$ids = explode('|', $_POST['_acf_delete_fields']);
459
-	    	$ids = array_map( 'intval', $ids );
458
+			$ids = explode('|', $_POST['_acf_delete_fields']);
459
+			$ids = array_map( 'intval', $ids );
460 460
 	    	
461 461
 			foreach( $ids as $id ) {
462 462
 			
@@ -468,20 +468,20 @@  discard block
 block discarded – undo
468 468
 				
469 469
 			}
470 470
 			
471
-        }
471
+		}
472 472
 		
473 473
 		
474 474
 		// add args
475
-        $_POST['acf_field_group']['ID'] = $post_id;
476
-        $_POST['acf_field_group']['title'] = $_POST['post_title'];
475
+		$_POST['acf_field_group']['ID'] = $post_id;
476
+		$_POST['acf_field_group']['title'] = $_POST['post_title'];
477 477
         
478 478
         
479 479
 		// save field group
480
-        acf_update_field_group( $_POST['acf_field_group'] );
480
+		acf_update_field_group( $_POST['acf_field_group'] );
481 481
 		
482 482
 		
483
-        // return
484
-        return $post_id;
483
+		// return
484
+		return $post_id;
485 485
 	}
486 486
 	
487 487
 	
Please login to merge, or discard this patch.
includes/acf/admin/field-groups.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -568,8 +568,8 @@  discard block
 block discarded – undo
568 568
 				
569 569
 			}
570 570
         
571
-        // status
572
-	    } elseif( $column == 'acf-fg-status' ) {
571
+		// status
572
+		} elseif( $column == 'acf-fg-status' ) {
573 573
 			
574 574
 			if( isset($this->sync[ $field_group['key'] ]) ) {
575 575
 				
@@ -587,12 +587,12 @@  discard block
 block discarded – undo
587 587
 				
588 588
 			}
589 589
 	    
590
-        // fields
591
-	    } elseif( $column == 'acf-fg-count' ) {
590
+		// fields
591
+		} elseif( $column == 'acf-fg-count' ) {
592 592
 			
593 593
 			echo acf_get_field_count( $field_group );
594 594
         
595
-        }
595
+		}
596 596
 		
597 597
 	}
598 598
 	
Please login to merge, or discard this patch.
includes/acf/admin/settings-addons.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -79,17 +79,17 @@
 block discarded – undo
79 79
 
80 80
 
81 81
 		// load json
82
-        $request = wp_remote_post( 'http://assets.advancedcustomfields.com/add-ons/add-ons.json' );
83
-
84
-        // validate
85
-        if( is_wp_error($request) || wp_remote_retrieve_response_code($request) != 200)
86
-        {
87
-        	acf_add_admin_notice(__('<b>Error</b>. Could not load add-ons list', 'acf'), 'error');
88
-        }
89
-        else
90
-        {
91
-	        $this->view['json'] = json_decode( $request['body'], true );
92
-        }
82
+		$request = wp_remote_post( 'http://assets.advancedcustomfields.com/add-ons/add-ons.json' );
83
+
84
+		// validate
85
+		if( is_wp_error($request) || wp_remote_retrieve_response_code($request) != 200)
86
+		{
87
+			acf_add_admin_notice(__('<b>Error</b>. Could not load add-ons list', 'acf'), 'error');
88
+		}
89
+		else
90
+		{
91
+			$this->view['json'] = json_decode( $request['body'], true );
92
+		}
93 93
 
94 94
 	}
95 95
 
Please login to merge, or discard this patch.
includes/acf/admin/settings-tools.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -222,41 +222,41 @@  discard block
 block discarded – undo
222 222
 		
223 223
 		
224 224
 		// validate json
225
-    	if( empty($json) ) {
225
+		if( empty($json) ) {
226 226
     	
227
-    		acf_add_admin_notice(__('Import file empty', 'acf'), 'error');
228
-	    	return;
227
+			acf_add_admin_notice(__('Import file empty', 'acf'), 'error');
228
+			return;
229 229
     	
230
-    	}
230
+		}
231 231
     	
232 232
     	
233
-    	// if importing an auto-json, wrap field group in array
234
-    	if( isset($json['key']) ) {
233
+		// if importing an auto-json, wrap field group in array
234
+		if( isset($json['key']) ) {
235 235
 	    	
236
-	    	$json = array( $json );
236
+			$json = array( $json );
237 237
 	    	
238
-    	}
238
+		}
239 239
     	
240 240
     	
241
-    	// vars
242
-    	$added = array();
243
-    	$ignored = array();
244
-    	$ref = array();
245
-    	$order = array();
241
+		// vars
242
+		$added = array();
243
+		$ignored = array();
244
+		$ref = array();
245
+		$order = array();
246 246
     	
247
-    	foreach( $json as $field_group ) {
247
+		foreach( $json as $field_group ) {
248 248
     		
249
-	    	// check if field group exists
250
-	    	if( acf_get_field_group($field_group['key'], true) ) {
249
+			// check if field group exists
250
+			if( acf_get_field_group($field_group['key'], true) ) {
251 251
 	    		
252
-	    		// append to ignored
253
-	    		$ignored[] = $field_group['title'];
254
-	    		continue;
252
+				// append to ignored
253
+				$ignored[] = $field_group['title'];
254
+				continue;
255 255
 	    	
256
-	    	}
256
+			}
257 257
 	    	
258 258
 	    	
259
-	    	// remove fields
259
+			// remove fields
260 260
 			$fields = acf_extract_var($field_group, 'fields');
261 261
 			
262 262
 			
@@ -314,27 +314,27 @@  discard block
 block discarded – undo
314 314
 			// append to added
315 315
 			$added[] = '<a href="' . admin_url("post.php?post={$field_group['ID']}&action=edit") . '" target="_blank">' . $field_group['title'] . '</a>';
316 316
 			
317
-    	}
317
+		}
318 318
     	
319 319
     	
320
-    	// messages
321
-    	if( !empty($added) ) {
320
+		// messages
321
+		if( !empty($added) ) {
322 322
     		
323
-    		$message = __('<b>Success</b>. Import tool added %s field groups: %s', 'acf');
324
-    		$message = sprintf( $message, count($added), implode(', ', $added) );
323
+			$message = __('<b>Success</b>. Import tool added %s field groups: %s', 'acf');
324
+			$message = sprintf( $message, count($added), implode(', ', $added) );
325 325
     		
326
-	    	acf_add_admin_notice( $message );
326
+			acf_add_admin_notice( $message );
327 327
     	
328
-    	}
328
+		}
329 329
     	
330
-    	if( !empty($ignored) ) {
330
+		if( !empty($ignored) ) {
331 331
     		
332
-    		$message = __('<b>Warning</b>. Import tool detected %s field groups already exist and have been ignored: %s', 'acf');
333
-    		$message = sprintf( $message, count($ignored), implode(', ', $ignored) );
332
+			$message = __('<b>Warning</b>. Import tool detected %s field groups already exist and have been ignored: %s', 'acf');
333
+			$message = sprintf( $message, count($ignored), implode(', ', $ignored) );
334 334
     		
335
-	    	acf_add_admin_notice( $message, 'error' );
335
+			acf_add_admin_notice( $message, 'error' );
336 336
     	
337
-    	}
337
+		}
338 338
     	
339 339
 		
340 340
 	}
Please login to merge, or discard this patch.
includes/acf/admin/views/settings-addons.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
16 16
 				
17 17
 				$addon = acf_parse_args($addon, array(
18 18
 					"title"			=> "",
19
-			        "slug"			=> "",
20
-			        "description"	=> "",
21
-			        "thumbnail"		=> "",
22
-			        "url"			=> "",
23
-			        "btn"			=> __("Download & Install",'acf'),
24
-			        "btn_color"		=> ""
19
+					"slug"			=> "",
20
+					"description"	=> "",
21
+					"thumbnail"		=> "",
22
+					"url"			=> "",
23
+					"btn"			=> __("Download & Install",'acf'),
24
+					"btn_color"		=> ""
25 25
 				));
26 26
 				
27 27
 				?>
Please login to merge, or discard this patch.
includes/acf/api/api-field-group.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -475,36 +475,36 @@  discard block
 block discarded – undo
475 475
 	
476 476
 	// vars
477 477
 	$data = maybe_serialize( $data );
478
-    $post_status = $extract['active'] ? 'publish' : 'acf-disabled';
478
+	$post_status = $extract['active'] ? 'publish' : 'acf-disabled';
479 479
     
480 480
     
481
-    // save
482
-    $save = array(
483
-    	'ID'			=> $extract['ID'],
484
-    	'post_status'	=> $post_status,
485
-    	'post_type'		=> 'acf-field-group',
486
-    	'post_title'	=> $extract['title'],
487
-    	'post_name'		=> $extract['key'],
488
-    	'post_excerpt'	=> sanitize_title($extract['title']),
489
-    	'post_content'	=> $data,
490
-    	'menu_order'	=> $extract['menu_order'],
491
-    );
481
+	// save
482
+	$save = array(
483
+		'ID'			=> $extract['ID'],
484
+		'post_status'	=> $post_status,
485
+		'post_type'		=> 'acf-field-group',
486
+		'post_title'	=> $extract['title'],
487
+		'post_name'		=> $extract['key'],
488
+		'post_excerpt'	=> sanitize_title($extract['title']),
489
+		'post_content'	=> $data,
490
+		'menu_order'	=> $extract['menu_order'],
491
+	);
492 492
     
493 493
     
494
-    // allow field groups to contain the same name
494
+	// allow field groups to contain the same name
495 495
 	add_filter( 'wp_unique_post_slug', 'acf_update_field_group_wp_unique_post_slug', 100, 6 ); 
496 496
 	
497 497
     
498
-    // update the field group and update the ID
499
-    if( $field_group['ID'] ) {
498
+	// update the field group and update the ID
499
+	if( $field_group['ID'] ) {
500 500
 	    
501
-	    wp_update_post( $save );
501
+		wp_update_post( $save );
502 502
 	    
503
-    } else {
503
+	} else {
504 504
 	    
505
-	    $field_group['ID'] = wp_insert_post( $save );
505
+		$field_group['ID'] = wp_insert_post( $save );
506 506
 	    
507
-    }
507
+	}
508 508
 	
509 509
 	
510 510
 	// action for 3rd party customization
@@ -517,8 +517,8 @@  discard block
 block discarded – undo
517 517
 	wp_cache_delete("get_field_groups", 'acf');
518 518
 	
519 519
 	
520
-    // return
521
-    return $field_group;
520
+	// return
521
+	return $field_group;
522 522
 	
523 523
 }
524 524
 
Please login to merge, or discard this patch.
includes/acf/api/api-field.php 1 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 1 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 1 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.