[wp-trac] [WordPress Trac] #9043: set_time_limit in
import/wordpress.php causing issues.
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 4 14:30:16 GMT 2009
#9043: set_time_limit in import/wordpress.php causing issues.
--------------------------+-------------------------------------------------
Reporter: joostdevalk | Owner: joostdevalk
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: Import | Version:
Severity: normal | Keywords: has-patchdev-feedback 2nd-opinion
--------------------------+-------------------------------------------------
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.
--
Ticket URL: <http://trac.wordpress.org/ticket/9043>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list