To answer your question, you can find the original file in the WordPress Github repository.
However, when a WordPress website is hacked and has malware infected files it is recommended to reinstall the entire site with a clean install (without plugins), check the database for infected entries and change all (WordPress, database, etc) passwords.
When you have reinstalled the website you should check all plugins used if they have known security issues before enabling them again. Plugins are the most common cause of security flaws, and should preferably be kept up to date.
You can make it easier for yourself (and your client) by configuring automatic background updates in your wp-config.php
file.
I’d also advise reading some guides on WordPress security.
Related Posts:
- Retrieving a list of menu items in an array
- Error: Declaration of MyClass::start_lvl() should be compatible with that of Walker_Nav_Menu::start_lvl()
- Using nonce in menu item
- Filter out built-in wp_nav_menu classes but keep custom class
- remove last separator?
- How show sub menu only using wp_nav_menu()
- How to get a different mobile menu than desktop menu in the twentytwelve child theme
- WordPress built in breadcrumb trail menu?
- Custom Nav Walker menu – Display children count
- WordPress Export Import Site Navigation Menu
- Bar separated navigation by extending Walker_Nav_Menu
- WordPress Menu Disappears when $query->query_vars[‘meta_key’] is set
- how do I delete (not exclude) a menu item from navigation bar
- show only a given level in nav menu
- Custom menus created but does not show up in admin panel
- Replace menu tag with tag
- How to display custom post meta in the appearance->menus page
- Anchor only wp_nav_menu
- wp_nav_menu custom walker – child items
- Where do custom menus get constructed?
- How to remove div container in custom menu?
- Keeping ‘current-menu-item’ highlight of navigation menu?
- Does loading of sub pages in menu cause load to the server?
- Get admin menu link
- Possible to add a dynamic link to a sub-menu via wp_nav_menu_items?
- How can I access the menu ID of an element in a WordPress Nav_Walker
- Fragment URL in navigation item without a custom link
- How to translate menu items?
- echo same menu items across multi-site platform
- Unable to create or edit menus
- Displaying primary nav menu two ways
- How to Implement Submenu Using wp_nav_menu
- Close dropdown menu on click or scroll outside the menu [closed]
- How to have the Header show different content on different pages?
- WordPress menu not loading in the admin side appearence-> menu tab
- Is there no straightforward way to display a separate second level using wp_nav_menu()?
- CSS_Menu_Walker not showing on mobile view?
- wp_nav_menu() doesn’t work
- Insert other menus as submenus of a main menu
- Change the menu home link to something else
- wp_nav_menu $theme_location parameter ignored
- Count within foreach loop
- Make pages visible to only logged in members
- Insert a div before the wp_nav_menu
- How to create a menu with pages and post categories?
- remove specific classes from menu items
- Why Isn’t My WP_Nav_Menu returning false?
- How to avoid a duplicate query from using wp_nav_menu?
- Remove a class from a using Walker
- how avoid the link of the current post in the menu in the sidebar?
- How to convert the argument of wp_list_pages to an array
- wp_bootstrap_navwalker Fatal Error
- wp_nav_menu returns false even though a menu is assigned to it
- How to change the menu mark up with walker_nav_menu class?
- Can you add shortcode as a menu item link?
- Replace anchor tag with span tag
- How can I query all available public post types and taxonomies?
- If test for “has_nav_menu()” does not return echo when no menu exists
- Add a string after each item in WordPress sub menu
- Add # to submenu URLs automatically
- Automatically Generated Menu pages
- Costum walker with sub menu item count
- Unable to nest categories in menu
- insert div into a menu item before the link and more
- adding pages in underscores.me theme
- Trying to add Newline in Menu item
- How to unlock menu editing
- Can I now add a class in the anchor of my menu item with WordPress 5.4?
- How to add a taxonomy type in Menus?
- WordPress + Bootstrap: Replace primary navigation menu on mobile?
- Multisite Setup – Menu Items To Reference Pages in Different Subdomains
- Header Navmenu glitching in Chrome (but not other browsers)
- how to display different menu according to postid?
- Homepage is not loading
- Disable Mobile Menu, (always show desktop menu)
- Admin: WooCommerce Navigation Menus do not show empty categories search tab
- Put two menus in the same location
- Creating custom vertical menu
- Enable identical menu on network sites
- Show navigation header menu by post and categery
- How to add buddypress sub-menu items to other menus
- Custom location for menu
- No indication of menu
- Adding a menu item to the main menu
- How to select single category in menu if post have two categories?
- menu is only pulling in one item
- Any reason why widgets/menus get emptied when I updated custom theme code?
- How to get current menu item “CSS Classes” value?
- How to change page location in WordPress
- Set menu item class into body
- how to keep theme background image, menu or site header image while moving site in sub directory?
- Creating a custom menu
- List WordPress Custom Menu’s active parent level’s children as separate menu
- Unable to edit Navigation bar
- Editor user only allow to post on certain categories
- Menu Underline shows without Hover after adding subitems
- How to create a custom WordPress navigation menu?
- Should I custom code drop down menus or use a wordpress plugin?
- Add acf custom fields so sub item in menus
- change breakpoint widths for divi theme tablet view