| @@ -109,8 +109,9 @@ | ||
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | // WPML: post language details carry a locale (and always a code). |
| 112 | 112 | if (has_filter('wpml_post_language_details')) { |
| 113 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- WPML/core hook, not ours to name. | |
| 113 | 114 | $details = apply_filters('wpml_post_language_details', null, $post_id); |
| 114 | 115 | if (is_array($details)) { |
| 115 | 116 | if (!empty($details['locale']) && is_string($details['locale'])) { |
| 116 | 117 | return $details['locale']; |