
After to updating WordPress to WP 5.8, you might have received this Low Severity Problem security warning message from WordFence plugin which says “Old WordPress core file not removed during update”.
Files with a problem
The problem here is that after updating to WordPress 5.8, some old WP Core files below are not removed as it should be.
wp-includes/css/dist/editor/editor-styles-rtl.css
wp-includes/css/dist/editor/editor-styles-rtl.min.css
wp-includes/css/dist/editor/editor-styles.css
wp-includes/css/dist/editor/editor-styles.min.css
How to fix the error
Using Cpanel File Manager or FTP
- Go to publi_html
- Then wp-includes
- Select CSS folder
- Select dist folder
- Select editor folder
- Delete the following files (editor-styles-rtl.css, editor-styles-rtl.min.css, editor-styles.css, and editor-styles.min.css).
- Go back to Wordfence and start new scan. The issues should have been resolved.
Deleting those four files will not cause any problem in your website as they are not supposed to be included in 5.8+ versions of WordPress Core files.
Alternatively, you can leave the files there and wait for the next WordPress update to be released. It is likely to solve the issue as it has been reported as a known wp core bug.
Got questions on blogging tools, this post, or anything else related to website technologies, we are responding on Reddit or Blogiestools Ask Forum
Sanne says
Thank you! That’s a simple and clear solution 🙂
Ratul Keot says
While this should not cause any issue. But When I removed those files my WordPress media library stopped working properly. I am not sure why. Luckily, I had a backup of the files. So I am good. Please TAKE A BACKUP before deleting any files.