set_time_limit in import/wordpress.php causing issues.
|Reported by:||joostdevalk||Owned by:||joostdevalk|
On line 366 of /wp-admin/wordpress/import.php, there's a "set_time_limit( 60 );" without any checks, and the set time limit is never set back to its original state. This causes issues when the entire import process takes longer.
Setting a 60 second time limit for the import of a single post makes sense though, so I'm attaching a patch that will store the original time limit, set the time limit to 60 seconds, and restore it to it's original value after the import has been done.