← All changes
|
includes/admin/views/html-lightbox-contact-details.php
+4
-0
2.2.6
→
2.4.0
View file →
| @@ -3,19 +3,23 @@ | ||
| 3 | 3 | if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 4 | 4 | |
| 5 | 5 | if ( $contact_ids == '' ) |
| 6 | 6 | { |
| 7 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 7 | 8 | $contact_ids = array(); |
| 8 | 9 | } |
| 9 | 10 | if ( !is_array($contact_ids) && $contact_ids != '' && $contact_ids != 0 ) |
| 10 | 11 | { |
| 12 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 11 | 13 | $contact_ids = array($contact_ids); |
| 12 | 14 | } |
| 13 | 15 | |
| 14 | 16 | if ( !empty($contact_ids) ) |
| 15 | 17 | { |
| 18 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 16 | 19 | foreach ( $contact_ids as $contact_id ) |
| 17 | 20 | { |
| 21 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable in an admin view; PHPCS analyzes the view file standalone even though WordPress includes it inside a method/function scope. | |
| 18 | 22 | $contact = new PH_Contact((int)$contact_id); |
| 19 | 23 | ?> |
| 20 | 24 | <div class="contact"> |
| 21 | 25 | <div class="name"><a href="<?php echo esc_url(get_edit_post_link((int)$contact_id)); ?>"><?php echo esc_html(get_the_title((int)$contact_id)); ?></a></div> |