@@ 321-328 (lines=8) @@ | ||
318 | ||
319 | ||
320 | // messages |
|
321 | if( !empty($added) ) { |
|
322 | ||
323 | $message = __('<b>Success</b>. Import tool added %s field groups: %s', 'acf'); |
|
324 | $message = sprintf( $message, count($added), implode(', ', $added) ); |
|
325 | ||
326 | acf_add_admin_notice( $message ); |
|
327 | ||
328 | } |
|
329 | ||
330 | if( !empty($ignored) ) { |
|
331 | ||
@@ 330-337 (lines=8) @@ | ||
327 | ||
328 | } |
|
329 | ||
330 | if( !empty($ignored) ) { |
|
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) ); |
|
334 | ||
335 | acf_add_admin_notice( $message, 'error' ); |
|
336 | ||
337 | } |
|
338 | ||
339 | ||
340 | } |