| @@ -36,19 +36,21 @@ | ||
| 36 | 36 | echo ' |
| 37 | 37 | <li class="' . esc_attr($action['class']) . '"'; |
| 38 | 38 | if ( isset( $action['parent_attributes'] ) && ! empty( $action['parent_attributes'] ) ) |
| 39 | 39 | { |
| 40 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone. | |
| 40 | 41 | foreach ( $action['parent_attributes'] as $key => $value ) |
| 41 | 42 | { |
| 42 | - echo ' ' . $key . '="' . esc_attr($value) . '"'; | |
| 43 | + echo ' ' . esc_attr( $key ) . '="' . esc_attr($value) . '"'; | |
| 43 | 44 | } |
| 44 | 45 | } |
| 45 | 46 | echo '><a href="' . esc_url($action['href']) . '"'; |
| 46 | 47 | if ( isset( $action['attributes'] ) && ! empty( $action['attributes'] ) ) |
| 47 | 48 | { |
| 49 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone. | |
| 48 | 50 | foreach ( $action['attributes'] as $key => $value ) |
| 49 | 51 | { |
| 50 | - echo ' ' . $key . '="' . esc_attr($value) . '"'; | |
| 52 | + echo ' ' . esc_attr( $key ) . '="' . esc_attr($value) . '"'; | |
| 51 | 53 | } |
| 52 | 54 | } |
| 53 | 55 | echo '>' . esc_html($action['label']) . '</a></li> |
| 54 | 56 | '; |