Completed
Push — master ( bf1080...d99bb1 )
by Md. Mozahidur
04:04
created
includes/acf/admin/views/field-group-locations.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -2,52 +2,52 @@  discard block
 block discarded – undo
2 2
 
3 3
 // vars
4 4
 $rule_types = apply_filters('acf/location/rule_types', array(
5
-	__("Post",'acf') => array(
6
-		'post_type'		=>	__("Post Type",'acf'),
7
-		'post_status'	=>	__("Post Status",'acf'),
8
-		'post_format'	=>	__("Post Format",'acf'),
9
-		'post_category'	=>	__("Post Category",'acf'),
10
-		'post_taxonomy'	=>	__("Post Taxonomy",'acf'),
11
-		'post'			=>	__("Post",'acf')
5
+	__("Post", 'acf') => array(
6
+		'post_type'		=>	__("Post Type", 'acf'),
7
+		'post_status'	=>	__("Post Status", 'acf'),
8
+		'post_format'	=>	__("Post Format", 'acf'),
9
+		'post_category'	=>	__("Post Category", 'acf'),
10
+		'post_taxonomy'	=>	__("Post Taxonomy", 'acf'),
11
+		'post'			=>	__("Post", 'acf')
12 12
 	),
13
-	__("Page",'acf') => array(
14
-		'page_template'	=>	__("Page Template",'acf'),
15
-		'page_type'		=>	__("Page Type",'acf'),
16
-		'page_parent'	=>	__("Page Parent",'acf'),
17
-		'page'			=>	__("Page",'acf')
13
+	__("Page", 'acf') => array(
14
+		'page_template'	=>	__("Page Template", 'acf'),
15
+		'page_type'		=>	__("Page Type", 'acf'),
16
+		'page_parent'	=>	__("Page Parent", 'acf'),
17
+		'page'			=>	__("Page", 'acf')
18 18
 	),
19
-	__("User",'acf') => array(
20
-		'current_user'		=>	__("Current User",'acf'),
21
-		'current_user_role'	=>	__("Current User Role",'acf'),
22
-		'user_form'			=>	__("User Form",'acf'),
23
-		'user_role'			=>	__("User Role",'acf')
19
+	__("User", 'acf') => array(
20
+		'current_user'		=>	__("Current User", 'acf'),
21
+		'current_user_role'	=>	__("Current User Role", 'acf'),
22
+		'user_form'			=>	__("User Form", 'acf'),
23
+		'user_role'			=>	__("User Role", 'acf')
24 24
 	),
25
-	__("Forms",'acf') => array(
26
-		'attachment'	=>	__("Attachment",'acf'),
27
-		'taxonomy'		=>	__("Taxonomy Term",'acf'),
28
-		'comment'		=>	__("Comment",'acf'),
29
-		'widget'		=>	__("Widget",'acf')
25
+	__("Forms", 'acf') => array(
26
+		'attachment'	=>	__("Attachment", 'acf'),
27
+		'taxonomy'		=>	__("Taxonomy Term", 'acf'),
28
+		'comment'		=>	__("Comment", 'acf'),
29
+		'widget'		=>	__("Widget", 'acf')
30 30
 	)
31 31
 ));
32 32
 
33
-$rule_operators = apply_filters( 'acf/location/rule_operators', array(
34
-	'=='	=>	__("is equal to",'acf'),
35
-	'!='	=>	__("is not equal to",'acf'),
33
+$rule_operators = apply_filters('acf/location/rule_operators', array(
34
+	'=='	=>	__("is equal to", 'acf'),
35
+	'!='	=>	__("is not equal to", 'acf'),
36 36
 ));
37 37
 						
38 38
 ?>
39 39
 <div class="acf-field">
40 40
 	<div class="acf-label">
41
-		<label><?php _e("Rules",'acf'); ?></label>
42
-		<p><?php _e("Create a set of rules to determine which edit screens will use these advanced custom fields",'acf'); ?></p>
41
+		<label><?php _e("Rules", 'acf'); ?></label>
42
+		<p><?php _e("Create a set of rules to determine which edit screens will use these advanced custom fields", 'acf'); ?></p>
43 43
 	</div>
44 44
 	<div class="acf-input">
45 45
 		<div class="rule-groups">
46 46
 			
47
-			<?php foreach( $field_group['location'] as $group_id => $group ): 
47
+			<?php foreach ($field_group['location'] as $group_id => $group): 
48 48
 				
49 49
 				// validate
50
-				if( empty($group) ) {
50
+				if (empty($group)) {
51 51
 				
52 52
 					continue;
53 53
 					
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 				
57 57
 				// $group_id must be completely different to $rule_id to avoid JS issues
58 58
 				$group_id = "group_{$group_id}";
59
-				$h4 = ($group_id == "group_0") ? __("Show this field group if",'acf') : __("or",'acf');
59
+				$h4 = ($group_id == "group_0") ? __("Show this field group if", 'acf') : __("or", 'acf');
60 60
 				
61 61
 				?>
62 62
 			
@@ -66,10 +66,10 @@  discard block
 block discarded – undo
66 66
 					
67 67
 					<table class="acf-table -clear">
68 68
 						<tbody>
69
-							<?php foreach( $group as $rule_id => $rule ): 
69
+							<?php foreach ($group as $rule_id => $rule): 
70 70
 								
71 71
 								// valid rule
72
-								$rule = wp_parse_args( $rule, array(
72
+								$rule = wp_parse_args($rule, array(
73 73
 									'field'		=>	'',
74 74
 									'operator'	=>	'==',
75 75
 									'value'		=>	'',
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 									
120 120
 								?></td>
121 121
 								<td class="add">
122
-									<a href="#" class="acf-button add-location-rule"><?php _e("and",'acf'); ?></a>
122
+									<a href="#" class="acf-button add-location-rule"><?php _e("and", 'acf'); ?></a>
123 123
 								</td>
124 124
 								<td class="remove">
125 125
 									<a href="#" class="acf-icon -minus remove-location-rule"></a>
@@ -132,9 +132,9 @@  discard block
 block discarded – undo
132 132
 				</div>
133 133
 			<?php endforeach; ?>
134 134
 			
135
-			<h4><?php _e("or",'acf'); ?></h4>
135
+			<h4><?php _e("or", 'acf'); ?></h4>
136 136
 			
137
-			<a href="#" class="acf-button add-location-group"><?php _e("Add rule group",'acf'); ?></a>
137
+			<a href="#" class="acf-button add-location-group"><?php _e("Add rule group", 'acf'); ?></a>
138 138
 			
139 139
 		</div>
140 140
 	</div>
Please login to merge, or discard this patch.
includes/acf/admin/views/field-group-options.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -2,46 +2,46 @@  discard block
 block discarded – undo
2 2
 
3 3
 // active
4 4
 acf_render_field_wrap(array(
5
-	'label'			=> __('Status','acf'),
5
+	'label'			=> __('Status', 'acf'),
6 6
 	'instructions'	=> '',
7 7
 	'type'			=> 'select',
8 8
 	'name'			=> 'active',
9 9
 	'prefix'		=> 'acf_field_group',
10 10
 	'value'			=> $field_group['active'],
11 11
 	'choices' 		=> array(
12
-		1				=>	__("Active",'acf'),
13
-		0				=>	__("Disabled",'acf'),
12
+		1				=>	__("Active", 'acf'),
13
+		0				=>	__("Disabled", 'acf'),
14 14
 	)
15 15
 ));
16 16
 
17 17
 
18 18
 // style
19 19
 acf_render_field_wrap(array(
20
-	'label'			=> __('Style','acf'),
20
+	'label'			=> __('Style', 'acf'),
21 21
 	'instructions'	=> '',
22 22
 	'type'			=> 'select',
23 23
 	'name'			=> 'style',
24 24
 	'prefix'		=> 'acf_field_group',
25 25
 	'value'			=> $field_group['style'],
26 26
 	'choices' 		=> array(
27
-		'default'			=>	__("Standard (WP metabox)",'acf'),
28
-		'seamless'			=>	__("Seamless (no metabox)",'acf'),
27
+		'default'			=>	__("Standard (WP metabox)", 'acf'),
28
+		'seamless'			=>	__("Seamless (no metabox)", 'acf'),
29 29
 	)
30 30
 ));
31 31
 
32 32
 
33 33
 // position
34 34
 acf_render_field_wrap(array(
35
-	'label'			=> __('Position','acf'),
35
+	'label'			=> __('Position', 'acf'),
36 36
 	'instructions'	=> '',
37 37
 	'type'			=> 'select',
38 38
 	'name'			=> 'position',
39 39
 	'prefix'		=> 'acf_field_group',
40 40
 	'value'			=> $field_group['position'],
41 41
 	'choices' 		=> array(
42
-		'acf_after_title'	=> __("High (after title)",'acf'),
43
-		'normal'			=> __("Normal (after content)",'acf'),
44
-		'side' 				=> __("Side",'acf'),
42
+		'acf_after_title'	=> __("High (after title)", 'acf'),
43
+		'normal'			=> __("Normal (after content)", 'acf'),
44
+		'side' 				=> __("Side", 'acf'),
45 45
 	),
46 46
 	'default_value'	=> 'normal'
47 47
 ));
@@ -49,38 +49,38 @@  discard block
 block discarded – undo
49 49
 
50 50
 // label_placement
51 51
 acf_render_field_wrap(array(
52
-	'label'			=> __('Label placement','acf'),
52
+	'label'			=> __('Label placement', 'acf'),
53 53
 	'instructions'	=> '',
54 54
 	'type'			=> 'select',
55 55
 	'name'			=> 'label_placement',
56 56
 	'prefix'		=> 'acf_field_group',
57 57
 	'value'			=> $field_group['label_placement'],
58 58
 	'choices' 		=> array(
59
-		'top'			=>	__("Top aligned",'acf'),
60
-		'left'			=>	__("Left Aligned",'acf'),
59
+		'top'			=>	__("Top aligned", 'acf'),
60
+		'left'			=>	__("Left Aligned", 'acf'),
61 61
 	)
62 62
 ));
63 63
 
64 64
 
65 65
 // instruction_placement
66 66
 acf_render_field_wrap(array(
67
-	'label'			=> __('Instruction placement','acf'),
67
+	'label'			=> __('Instruction placement', 'acf'),
68 68
 	'instructions'	=> '',
69 69
 	'type'			=> 'select',
70 70
 	'name'			=> 'instruction_placement',
71 71
 	'prefix'		=> 'acf_field_group',
72 72
 	'value'			=> $field_group['instruction_placement'],
73 73
 	'choices' 		=> array(
74
-		'label'		=>	__("Below labels",'acf'),
75
-		'field'		=>	__("Below fields",'acf'),
74
+		'label'		=>	__("Below labels", 'acf'),
75
+		'field'		=>	__("Below fields", 'acf'),
76 76
 	)
77 77
 ));
78 78
 
79 79
 
80 80
 // menu_order
81 81
 acf_render_field_wrap(array(
82
-	'label'			=> __('Order No.','acf'),
83
-	'instructions'	=> __('Field groups with a lower order will appear first','acf'),
82
+	'label'			=> __('Order No.', 'acf'),
83
+	'instructions'	=> __('Field groups with a lower order will appear first', 'acf'),
84 84
 	'type'			=> 'number',
85 85
 	'name'			=> 'menu_order',
86 86
 	'prefix'		=> 'acf_field_group',
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
 
91 91
 // description
92 92
 acf_render_field_wrap(array(
93
-	'label'			=> __('Description','acf'),
94
-	'instructions'	=> __('Shown in field group list','acf'),
93
+	'label'			=> __('Description', 'acf'),
94
+	'instructions'	=> __('Shown in field group list', 'acf'),
95 95
 	'type'			=> 'text',
96 96
 	'name'			=> 'description',
97 97
 	'prefix'		=> 'acf_field_group',
@@ -101,8 +101,8 @@  discard block
 block discarded – undo
101 101
 
102 102
 // hide on screen
103 103
 acf_render_field_wrap(array(
104
-	'label'			=> __('Hide on screen','acf'),
105
-	'instructions'	=> __('<b>Select</b> items to <b>hide</b> them from the edit screen.','acf') . '<br /><br />' . __("If multiple field groups appear on an edit screen, the first field group's options will be used (the one with the lowest order number)",'acf'),
104
+	'label'			=> __('Hide on screen', 'acf'),
105
+	'instructions'	=> __('<b>Select</b> items to <b>hide</b> them from the edit screen.', 'acf').'<br /><br />'.__("If multiple field groups appear on an edit screen, the first field group's options will be used (the one with the lowest order number)", 'acf'),
106 106
 	'type'			=> 'checkbox',
107 107
 	'name'			=> 'hide_on_screen',
108 108
 	'prefix'		=> 'acf_field_group',
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 	'toggle'		=> true,
111 111
 	'choices' => array(
112 112
 		'permalink'			=>	__("Permalink", 'acf'),
113
-		'the_content'		=>	__("Content Editor",'acf'),
113
+		'the_content'		=>	__("Content Editor", 'acf'),
114 114
 		'excerpt'			=>	__("Excerpt", 'acf'),
115 115
 		'custom_fields'		=>	__("Custom Fields", 'acf'),
116 116
 		'discussion'		=>	__("Discussion", 'acf'),
Please login to merge, or discard this patch.
includes/acf/admin/views/settings-addons.php 3 patches
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.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,18 +1,18 @@  discard block
 block discarded – undo
1 1
 <?php 
2 2
 
3 3
 // vars
4
-$json = acf_extract_var( $args, 'json');
4
+$json = acf_extract_var($args, 'json');
5 5
 
6 6
 ?>
7 7
 <div class="wrap acf-settings-wrap">
8 8
 	
9
-	<h1><?php _e("Add-ons",'acf'); ?></h1>
9
+	<h1><?php _e("Add-ons", 'acf'); ?></h1>
10 10
 	
11 11
 	<div class="add-ons-list acf-cf">
12 12
 		
13
-		<?php if( !empty($json) ): ?>
13
+		<?php if ( ! empty($json)): ?>
14 14
 			
15
-			<?php foreach( $json as $addon ): 
15
+			<?php foreach ($json as $addon): 
16 16
 				
17 17
 				$addon = acf_parse_args($addon, array(
18 18
 					"title"			=> "",
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 			        "description"	=> "",
21 21
 			        "thumbnail"		=> "",
22 22
 			        "url"			=> "",
23
-			        "btn"			=> __("Download & Install",'acf'),
23
+			        "btn"			=> __("Download & Install", 'acf'),
24 24
 			        "btn_color"		=> ""
25 25
 				));
26 26
 				
@@ -38,13 +38,13 @@  discard block
 block discarded – undo
38 38
 						<p><?php echo $addon['description']; ?></p>
39 39
 					</div>
40 40
 					<div class="footer">
41
-						<?php if( apply_filters("acf/is_add_on_active/slug={$addon['slug']}", false ) ): ?>
42
-							<a class="acf-button" disabled="disabled"><?php _e("Installed",'acf'); ?></a>
41
+						<?php if (apply_filters("acf/is_add_on_active/slug={$addon['slug']}", false)): ?>
42
+							<a class="acf-button" disabled="disabled"><?php _e("Installed", 'acf'); ?></a>
43 43
 						<?php else: ?>
44 44
 							<a class="acf-button <?php echo $addon['btn_color']; ?>" target="_blank" href="<?php echo $addon['url']; ?>" ><?php _e($addon['btn']); ?></a>
45 45
 						<?php endif; ?>
46 46
 						
47
-						<?php if( !empty($addon['footer']) ): ?>
47
+						<?php if ( ! empty($addon['footer'])): ?>
48 48
 							<p><?php echo $addon['footer']; ?></p>
49 49
 						<?php endif; ?>
50 50
 					</div>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,11 @@
 block discarded – undo
40 40
 					<div class="footer">
41 41
 						<?php if( apply_filters("acf/is_add_on_active/slug={$addon['slug']}", false ) ): ?>
42 42
 							<a class="acf-button" disabled="disabled"><?php _e("Installed",'acf'); ?></a>
43
-						<?php else: ?>
44
-							<a class="acf-button <?php echo $addon['btn_color']; ?>" target="_blank" href="<?php echo $addon['url']; ?>" ><?php _e($addon['btn']); ?></a>
43
+						<?php else {
44
+	: ?>
45
+							<a class="acf-button <?php echo $addon['btn_color'];
46
+}
47
+?>" target="_blank" href="<?php echo $addon['url']; ?>" ><?php _e($addon['btn']); ?></a>
45 48
 						<?php endif; ?>
46 49
 						
47 50
 						<?php if( !empty($addon['footer']) ): ?>
Please login to merge, or discard this patch.
includes/acf/admin/views/settings-info.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,24 +1,24 @@  discard block
 block discarded – undo
1 1
 <?php 
2 2
 
3 3
 // extract args
4
-extract( $args );
4
+extract($args);
5 5
 
6 6
 ?>
7 7
 <div class="wrap about-wrap acf-wrap">
8 8
 	
9
-	<h1><?php _e("Welcome to Advanced Custom Fields",'acf'); ?> <?php echo $version; ?></h1>
9
+	<h1><?php _e("Welcome to Advanced Custom Fields", 'acf'); ?> <?php echo $version; ?></h1>
10 10
 	<div class="about-text"><?php printf(__("Thank you for updating! ACF %s is bigger and better than ever before. We hope you like it.", 'acf'), $version); ?></div>
11 11
 	<div class="acf-icon logo">
12 12
 		<i class="acf-sprite-logo"></i>
13 13
 	</div>
14 14
 	
15 15
 	<h2 class="nav-tab-wrapper">
16
-		<?php foreach( $tabs as $tab_slug => $tab_title ): ?>
17
-			<a class="nav-tab<?php if( $active == $tab_slug ): ?> nav-tab-active<?php endif; ?>" href="<?php echo admin_url("edit.php?post_type=acf-field-group&page=acf-settings-info&tab={$tab_slug}"); ?>"><?php echo $tab_title; ?></a>
16
+		<?php foreach ($tabs as $tab_slug => $tab_title): ?>
17
+			<a class="nav-tab<?php if ($active == $tab_slug): ?> nav-tab-active<?php endif; ?>" href="<?php echo admin_url("edit.php?post_type=acf-field-group&page=acf-settings-info&tab={$tab_slug}"); ?>"><?php echo $tab_title; ?></a>
18 18
 		<?php endforeach; ?>
19 19
 	</h2>
20 20
 	
21
-<?php if( $active == 'new' ): ?>
21
+<?php if ($active == 'new'): ?>
22 22
 	
23 23
 	<h2 class="about-headline-callout"><?php _e("A smoother custom field experience", 'acf'); ?></h2>
24 24
 	
@@ -160,27 +160,27 @@  discard block
 block discarded – undo
160 160
 		
161 161
 	
162 162
 	
163
-<?php elseif( $active == 'changelog' ): ?>
163
+<?php elseif ($active == 'changelog'): ?>
164 164
 	
165 165
 	<p class="about-description"><?php printf(__("We think you'll love the changes in %s.", 'acf'), $version); ?></p>
166 166
 	
167 167
 	<?php
168 168
 		
169
-	$items = file_get_contents( acf_get_path('readme.txt') );
170
-	$items = explode('= ' . $version . ' =', $items);
169
+	$items = file_get_contents(acf_get_path('readme.txt'));
170
+	$items = explode('= '.$version.' =', $items);
171 171
 	
172
-	$items = end( $items );
173
-	$items = current( explode("\n\n", $items) );
174
-	$items = array_filter( array_map('trim', explode("*", $items)) );
172
+	$items = end($items);
173
+	$items = current(explode("\n\n", $items));
174
+	$items = array_filter(array_map('trim', explode("*", $items)));
175 175
 	
176 176
 	?>
177 177
 	<ul class="changelog">
178
-	<?php foreach( $items as $item ): 
178
+	<?php foreach ($items as $item): 
179 179
 		
180 180
 		$item = explode('http', $item);
181 181
 			
182 182
 		?>
183
-		<li><?php echo $item[0]; ?><?php if( isset($item[1]) ): ?><a href="http<?php echo $item[1]; ?>" target="_blank">[...]</a><?php endif; ?></li>
183
+		<li><?php echo $item[0]; ?><?php if (isset($item[1])): ?><a href="http<?php echo $item[1]; ?>" target="_blank">[...]</a><?php endif; ?></li>
184 184
 	<?php endforeach; ?>
185 185
 	</ul>
186 186
 
Please login to merge, or discard this patch.
includes/acf/admin/views/settings-tools-export.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php 
2 2
 
3 3
 // vars
4
-$field_groups = acf_extract_var( $args, 'field_groups');
4
+$field_groups = acf_extract_var($args, 'field_groups');
5 5
 
6 6
 
7 7
 // replace
@@ -32,28 +32,28 @@  discard block
 block discarded – undo
32 32
 			
33 33
 			<textarea class="pre" readonly="true"><?php
34 34
 			
35
-			echo "if( function_exists('acf_add_local_field_group') ):" . "\r\n" . "\r\n";
35
+			echo "if( function_exists('acf_add_local_field_group') ):"."\r\n"."\r\n";
36 36
 			
37
-			foreach( $field_groups as $field_group ) {
37
+			foreach ($field_groups as $field_group) {
38 38
 						
39 39
 				// code
40 40
 				$code = var_export($field_group, true);
41 41
 				
42 42
 				
43 43
 				// change double spaces to tabs
44
-				$code = str_replace( array_keys($str_replace), array_values($str_replace), $code );
44
+				$code = str_replace(array_keys($str_replace), array_values($str_replace), $code);
45 45
 				
46 46
 				
47 47
 				// correctly formats "=> array("
48
-				$code = preg_replace( array_keys($preg_replace), array_values($preg_replace), $code );
48
+				$code = preg_replace(array_keys($preg_replace), array_values($preg_replace), $code);
49 49
 				
50 50
 				
51 51
 				// esc_textarea
52
-				$code = esc_textarea( $code );
52
+				$code = esc_textarea($code);
53 53
 				
54 54
 				
55 55
 				// echo
56
-				echo "acf_add_local_field_group({$code});" . "\r\n" . "\r\n";
56
+				echo "acf_add_local_field_group({$code});"."\r\n"."\r\n";
57 57
 			
58 58
 			}
59 59
 			
Please login to merge, or discard this patch.
includes/acf/admin/views/settings-tools.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@  discard block
 block discarded – undo
15 15
 
16 16
 
17 17
 // populate choices
18
-if( $field_groups ) {
18
+if ($field_groups) {
19 19
 	
20
-	foreach( $field_groups as $field_group ) {
20
+	foreach ($field_groups as $field_group) {
21 21
 		
22
-		$field['choices'][ $field_group['key'] ] = $field_group['title'];
22
+		$field['choices'][$field_group['key']] = $field_group['title'];
23 23
 		
24 24
 	}
25 25
 	
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
 			
40 40
 			<form method="post" action="">
41 41
 			<div class="acf-hidden">
42
-				<input type="hidden" name="_acfnonce" value="<?php echo wp_create_nonce( 'export' ); ?>" />
42
+				<input type="hidden" name="_acfnonce" value="<?php echo wp_create_nonce('export'); ?>" />
43 43
 			</div>
44 44
 			<table class="form-table">
45 45
                 <tbody>
46
-	                <?php acf_render_field_wrap( $field, 'tr' ); ?>
46
+	                <?php acf_render_field_wrap($field, 'tr'); ?>
47 47
 					<tr>
48 48
 						<th></th>
49 49
 						<td>
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 			
69 69
 			<form method="post" action="" enctype="multipart/form-data">
70 70
 			<div class="acf-hidden">
71
-				<input type="hidden" name="_acfnonce" value="<?php echo wp_create_nonce( 'import' ); ?>" />
71
+				<input type="hidden" name="_acfnonce" value="<?php echo wp_create_nonce('import'); ?>" />
72 72
 			</div>
73 73
 			<table class="form-table">
74 74
                 <tbody>
Please login to merge, or discard this patch.
includes/acf/admin/views/update-network.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@  discard block
 block discarded – undo
5 5
 ?>
6 6
 <div id="acf-upgrade-wrap" class="wrap">
7 7
 	
8
-	<h1><?php _e("Advanced Custom Fields Database Upgrade",'acf'); ?></h1>
8
+	<h1><?php _e("Advanced Custom Fields Database Upgrade", 'acf'); ?></h1>
9 9
 	
10
-	<p><?php _e("The following sites require a DB upgrade. Check the ones you want to update and then click “Upgrade Database”.",'acf'); ?></p>
10
+	<p><?php _e("The following sites require a DB upgrade. Check the ones you want to update and then click “Upgrade Database”.", 'acf'); ?></p>
11 11
 	
12 12
 	<p><input type="submit" name="upgrade" value="Update Sites" class="button" id="upgrade-sites"></p>
13 13
 	
@@ -31,11 +31,11 @@  discard block
 block discarded – undo
31 31
 		
32 32
 		<tbody id="the-list">
33 33
 		
34
-		<?php foreach( $sites as $i => $site ): ?>
34
+		<?php foreach ($sites as $i => $site): ?>
35 35
 			
36
-			<tr<?php if( $i % 2 == 0 ): ?> class="alternate"<?php endif; ?>>
36
+			<tr<?php if ($i % 2 == 0): ?> class="alternate"<?php endif; ?>>
37 37
 				<th class="check-column" scope="row">
38
-				<?php if( $site['updates'] ): ?>
38
+				<?php if ($site['updates']): ?>
39 39
 					<input type="checkbox" value="<?php echo $site['blog_id']; ?>" name="checked[]">
40 40
 				<?php endif; ?>
41 41
 				</th>
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 					<strong><?php echo $site['name']; ?></strong><br /><?php echo $site['url']; ?>
44 44
 				</td>
45 45
 				<td>
46
-				<?php if( $site['updates'] ): ?>
46
+				<?php if ($site['updates']): ?>
47 47
 					<span class="response"><?php printf(__('Site requires database upgrade from %s to %s', 'acf'), $site['acf_version'], $plugin_version); ?></span>
48 48
 				<?php else: ?>
49 49
 					<?php _e("Site is up to date", 'acf'); ?>
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	
60 60
 	<p><input type="submit" name="upgrade" value="Update Sites" class="button" id="upgrade-sites-2"></p>
61 61
 	
62
-	<p class="show-on-complete"><?php _e('Database Upgrade complete', 'acf'); ?>. <a href="<?php echo network_admin_url(); ?>"><?php _e("Return to network dashboard",'acf'); ?></a>.</p>
62
+	<p class="show-on-complete"><?php _e('Database Upgrade complete', 'acf'); ?>. <a href="<?php echo network_admin_url(); ?>"><?php _e("Return to network dashboard", 'acf'); ?></a>.</p>
63 63
 	
64 64
 	<style type="text/css">
65 65
 		
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,11 @@
 block discarded – undo
45 45
 				<td>
46 46
 				<?php if( $site['updates'] ): ?>
47 47
 					<span class="response"><?php printf(__('Site requires database upgrade from %s to %s', 'acf'), $site['acf_version'], $plugin_version); ?></span>
48
-				<?php else: ?>
49
-					<?php _e("Site is up to date", 'acf'); ?>
48
+				<?php else {
49
+	: ?>
50
+					<?php _e("Site is up to date", 'acf');
51
+}
52
+?>
50 53
 				<?php endif; ?>
51 54
 				</td>
52 55
 			</tr>
Please login to merge, or discard this patch.
includes/acf/admin/views/update-notice.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,19 +20,19 @@
 block discarded – undo
20 20
 		
21 21
 		<div class="content">
22 22
 			
23
-			<h2><?php _e("Database Upgrade Required",'acf'); ?></h2>
23
+			<h2><?php _e("Database Upgrade Required", 'acf'); ?></h2>
24 24
 			
25
-			<p><?php printf(__("Thank you for updating to %s v%s!", 'acf'), acf_get_setting('name'), acf_get_setting('version') ); ?><br /><?php _e("Before you start using the new awesome features, please update your database to the newest version.", 'acf'); ?></p>
25
+			<p><?php printf(__("Thank you for updating to %s v%s!", 'acf'), acf_get_setting('name'), acf_get_setting('version')); ?><br /><?php _e("Before you start using the new awesome features, please update your database to the newest version.", 'acf'); ?></p>
26 26
 			
27 27
 			<p><a id="acf-notice-action" href="<?php echo $button_url; ?>" class="acf-button blue"><?php echo $button_text; ?></a></p>
28 28
 			
29
-		<?php if( $confirm ): ?>
29
+		<?php if ($confirm): ?>
30 30
 			<script type="text/javascript">
31 31
 			(function($) {
32 32
 				
33 33
 				$("#acf-notice-action").on("click", function(){
34 34
 			
35
-					var answer = confirm("<?php _e( 'It is strongly recommended that you backup your database before proceeding. Are you sure you wish to run the updater now?', 'acf' ); ?>");
35
+					var answer = confirm("<?php _e('It is strongly recommended that you backup your database before proceeding. Are you sure you wish to run the updater now?', 'acf'); ?>");
36 36
 					return answer;
37 37
 			
38 38
 				});
Please login to merge, or discard this patch.
includes/acf/admin/views/update.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,15 +5,15 @@
 block discarded – undo
5 5
 ?>
6 6
 <div id="acf-upgrade-wrap" class="wrap">
7 7
 	
8
-	<h1><?php _e("Advanced Custom Fields Database Upgrade",'acf'); ?></h1>
8
+	<h1><?php _e("Advanced Custom Fields Database Upgrade", 'acf'); ?></h1>
9 9
 	
10
-<?php if( !empty($updates) ): ?>
10
+<?php if ( ! empty($updates)): ?>
11 11
 	
12 12
 	<p><?php _e('Reading upgrade tasks...', 'acf'); ?></p>
13 13
 	
14 14
 	<p class="show-on-ajax"><i class="acf-loading"></i> <?php printf(__('Upgrading data to version %s', 'acf'), $plugin_version); ?></p>
15 15
 	
16
-	<p class="show-on-complete"><?php _e('Database Upgrade complete', 'acf'); ?>. <a href="<?php echo admin_url('edit.php?post_type=acf-field-group&page=acf-settings-info'); ?>"><?php _e("See what's new",'acf'); ?></a>.</p>
16
+	<p class="show-on-complete"><?php _e('Database Upgrade complete', 'acf'); ?>. <a href="<?php echo admin_url('edit.php?post_type=acf-field-group&page=acf-settings-info'); ?>"><?php _e("See what's new", 'acf'); ?></a>.</p>
17 17
 
18 18
 	<style type="text/css">
19 19
 		
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,9 +105,12 @@
 block discarded – undo
105 105
 	})(jQuery);	
106 106
 	</script>
107 107
 	
108
-<?php else: ?>
108
+<?php else {
109
+	: ?>
109 110
 
110
-	<p><?php _e('No updates available', 'acf'); ?>.</p>
111
+	<p><?php _e('No updates available', 'acf');
112
+}
113
+?>.</p>
111 114
 	
112 115
 <?php endif; ?>
113 116
 
Please login to merge, or discard this patch.