Code Duplication    Length = 21-22 lines in 2 locations

includes/acf/admin/update.php 2 locations

@@ 131-152 (lines=22) @@
128
	*  @return	n/a
129
	*/
130
	
131
	function network_admin_notices() {
132
		
133
		// bail ealry if already on update page
134
		if( acf_is_screen('admin_page_acf-upgrade-network') ) {
135
			
136
			return;
137
			
138
		}
139
		
140
				
141
		// view
142
		$view = array(
143
			'button_text'	=> __("Review sites & upgrade", 'acf'),
144
			'button_url'	=> network_admin_url('update-core.php?page=acf-upgrade'),
145
			'confirm'		=> false
146
		);
147
		
148
		
149
		// load view
150
		acf_get_view('update-notice', $view);
151
		
152
	}
153
	
154
	
155
	/*
@@ 316-336 (lines=21) @@
313
	*  @return	n/a
314
	*/
315
	
316
	function admin_notices() {
317
		
318
		// bail ealry if already on update page
319
		if( acf_is_screen('custom-fields_page_acf-upgrade') ) {
320
			
321
			return;
322
			
323
		}
324
		
325
				
326
		// view
327
		$view = array(
328
			'button_text'	=> __("Upgrade Database", 'acf'),
329
			'button_url'	=> admin_url('edit.php?post_type=acf-field-group&page=acf-upgrade')
330
		);
331
		
332
		
333
		// load view
334
		acf_get_view('update-notice', $view);
335
		
336
	}
337
	
338
	
339
	/*