Automatically correct trouble in code
-
I got this message after updating a plugin in the dashboard:
Warning: preg_match() expects parameter 2 to be string, array given in /home/reagern/public_html/wp-includes/class.wp-scripts.php on line 117This file I have not touch, and I don´t want to either.
I´ve installed WordPress through Fantastico Deluxe, and I´ve experienced that when you touch the main installation files outside of Fantastico, like the WP Includes files, it messes things up.So why can´t there be a way to reset these standard files, into the right code again? If WordPress knows something is wrong, then why not fix it? Why can´t it match this file to the default file, and update it´s code to something that works.
Ideally I would like a button next to this errormessage, that says “Fix Problem Automatically”, and after a click, everything worked again. Also, this is fully possible.
The topic ‘Automatically correct trouble in code’ is closed to new replies.