private static function update_hash($prefix, $menu_item_key, &$menu_access_data) { $hash412 = self::calc_menu_item_id_412($prefix, $menu_item_key); foreach ($menu_access_data as $role => $access_data_for_role) { for ($i = 0; $i < count($access_data_for_role); $i++) { if ($access_data_for_role[$i] == $hash412) { $menu_access_data[$role][$i] = URE_ADMIN_MENU::calc_menu_item_id($prefix, $menu_item_key); } } } }
private static function update_hash($prefix, $menu_item_key, &$menu_access_data) { $hash412 = self::calc_menu_item_id_412($prefix, $menu_item_key); foreach ($menu_access_data as $role => $access_data_for_role) { for ($i = 0; $i < count($access_data_for_role); $i++) { // update for versions earlier 4.14.2 if ($access_data_for_role[$i] == $hash412) { $menu_access_data[$role][$i] = URE_ADMIN_MENU::calc_menu_item_id($prefix, $menu_item_key); } // update for versions earlier 4.18.3 if ($access_data_for_role[$i] == 'fa0f53ac4ba46ec4d89f984485a0f4cf') { // hash for the 'customize.php?' $menu_access_data[$role][$i] = '71cf5c9f472f8adbfc847a3f71ce9f0e'; // hash for the 'customize.php' } } } }