You cannot change something in the referenced file, since it’s part of the core. Ok, technically you can, but you really really shouldn’t.
Even the latest wordpress is not yet production-ready to be compatible with PHP 8 – https://make.wordpress.org/core/2020/11/23/wordpress-and-php-8-0/
However, wordpress 5.6+ is beta-compatible, so your best course of action is to upgrade wordpress. If this is not solved, then you either have to downgrade the server to PHP 7.4, or wait until wordpress releases a fully compatible version (hoping that in the next few weeks/months with the release of wordpress 6).
Related Posts:
- User registration followed by automatic login
- WordPress and event-driven programming – what is it about?
- How WordPress encrypt password? [duplicate]
- wp_insert_user role not working
- Adding a custom image upload size and making it selected by default?
- How to paginate a list of custom taxonomy terms?
- Conditionally loading JavaScript based on the Advanced Custom Fields in the post
- reason of splitting theme files to multiple files
- Limit the Excerpt field in WP-Admin in words
- How to change / delete product short description in Woocommerce
- How do I add HTML to a PHP function [closed]
- register_activation_hook isn’t adding table to DB
- how to get the value of time left for a transient
- How do I show the featured images for my child pages on my parent pages?
- WP_Query loop, does not display special characters in title correctly
- Remove query string specific key value
- is_page “range” for if statement?
- How to Fetch values from WP database based on selected option value by onchange using PHP?
- How do I get current page ID in WordPress customizer file?
- WordPress child theme fails to override parent navigation menu in /inc/structure/header.php
- Customizer: Output default value in Customizer CSS
- WordPress Ignoring .user.ini
- Cron events are disappearing, or cannot be updated in WordPress
- Prev/Next child navigation for current page modifications?
- Adding rel tag to all external links
- Show success or error messages in Ajax response to WordPress custom registration form
- How to add a Custom Mailchimp AJAX Newsletter Subscribe Form
- 404 error when I acess the second page of post-type
- Where can I create a normal php file?
- Trying do build a contact form
- How to Disable WordPress Page Revisions?
- Prev/Next Links Broken on Static Front Page Pagination
- How to integrate noimage picture in this code
- get comment data using comment id
- Is there a built-in function to generate multiple paragraph tags based on a string with new line separators?
- Site downloads files instead of loading them
- Saving data from custom form in wordpress database
- How to add no follow to specific links?
- WordPress transient not working with WP Engine
- Basic wpdb update question
- Only show size attributes in product box woocommerce when available
- Can I set up a hover animation in CSS depending on a PHP conditional?
- Logout redirects to default page
- Remove conditional tag from header
- WordPress upload file size error even after raising php limits
- Function for simple math doesn’t work what am I doing wrong? [closed]
- Multidimensional Array
- Disable Content Editor for Specific Pages
- Make post title active
- Php code error in wordpress if else statements [closed]
- Get the list of post categories
- Wrap title and excerpt in a div (latest posts block)
- How to access all meta data for RSS feed?
- Why Is Number of views on wordpress single post wrong?
- how to pull all usernames from a custom user role, then do some array modification
- Can I ‘order by’ date that is in a text field?
- Show related products by attribute based and certain conditions
- Unable to delete related media attachments with deleted post
- How to retrieve taxonomy Metabox fields in frontend
- separate list of programs in html/javascript coming from php
- Is there a PHP function that will return the block ID generated by WordPress?
- retrieve “Link Color” value
- Creating a Function and Call It
- How to count active users on a specific page
- WooCommerce display price before add to cart [closed]
- Adding column to wpex_users
- Create dashboard widget for custom theme support
- Issues adding Recaptcha v3 to WordPress Registration
- WordPress ajax filter returning all posts when it should be filtering by category
- WooCommerce Quantity in Dropdown menu instead of clasic [closed]
- Trying To Call a Dynamic Email Address
- How to override html codes in wordpress?
- Hide comment notification number and buttons in wp backend
- Create html tree sitemap
- meta field for numerous links
- Custom HTML form using PHP – help with ajax/username validation
- Plugin Modification Change Functionality For Logged User Only
- redirect 301 with special character like WIX site “#!”
- Display tab title as ‘blog tagline | blog title’
- Conditional statement within WP SQL query
- Modify category archive page loop on functions.php
- How to print redirected query string variables to the page?
- How to display html code on homepage
- two wordpress sites, two themes, one database, same content
- Multiple URL from Custom post name
- Admin-area broken through weird issues
- Display a query with multiple post types and same relationship on a single page
- Check if values exists DB
- Trying to exclude posts from a category on the home page
- Php conditional help needed
- Get string from array and start loop [closed]
- wp_link_pages return value even when is condition inside if statement
- How to quickly/easily make an analysis (reverse engineering) of WordPress?
- New to wordpress. Need Help with templates [closed]
- Issues trying to add a href statment with PHP into a PHP Echo Statement [closed]
- Help with if/else loop [closed]
- How to group by column a and sum column b and c in a php array
- Convert custom field date format to “WordPress default”
- Woocommerce Convert existing order to the cart
- Execute function when I click button