Changeset 3343427
- Timestamp:
- 08/12/2025 10:04:36 AM (8 months ago)
- Location:
- menu-skip-links
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
tags/1.0.1/menu-skip-links.php (modified) (1 diff)
-
trunk/menu-skip-links.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
menu-skip-links
-
Property
svn:ignore
set to
.idea
-
Property
svn:ignore
set to
-
menu-skip-links/tags/1.0.1/menu-skip-links.php
r3290349 r3343427 21 21 $client_lang = sanitize_key(wp_unslash($_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? $default_lang)); // unnecessary sanitization to pass plugin checks. 22 22 $lang = substr($client_lang, 0, 2); 23 $text = json_decode(file_get_contents(plugin_dir_path(__FILE__) . '/text.json') , true);24 if ( !array_key_exists($lang, $text)) $lang = $default_lang;23 $text = json_decode(file_get_contents(plugin_dir_path(__FILE__) . '/text.json') ?: "[]", true); 24 if ($text == null || !array_key_exists($lang, $text)) $lang = $default_lang; 25 25 26 26 // add skip links to nav menus -
menu-skip-links/trunk/menu-skip-links.php
r3290349 r3343427 21 21 $client_lang = sanitize_key(wp_unslash($_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? $default_lang)); // unnecessary sanitization to pass plugin checks. 22 22 $lang = substr($client_lang, 0, 2); 23 $text = json_decode(file_get_contents(plugin_dir_path(__FILE__) . '/text.json') , true);24 if ( !array_key_exists($lang, $text)) $lang = $default_lang;23 $text = json_decode(file_get_contents(plugin_dir_path(__FILE__) . '/text.json') ?: "[]", true); 24 if ($text == null || !array_key_exists($lang, $text)) $lang = $default_lang; 25 25 26 26 // add skip links to nav menus
Note: See TracChangeset
for help on using the changeset viewer.