| 1 | Index: wordpress.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wordpress.php (revision 10493) |
|---|
| 4 | +++ wordpress.php (working copy) |
|---|
| 5 | @@ -363,6 +363,7 @@ |
|---|
| 6 | if ( $post_ID && !empty($this->post_ids_processed[$post_ID]) ) // Processed already |
|---|
| 7 | return 0; |
|---|
| 8 | |
|---|
| 9 | + $orig_timelimit = ini_get('max_execution_time'); |
|---|
| 10 | set_time_limit( 60 ); |
|---|
| 11 | |
|---|
| 12 | // There are only ever one of these |
|---|
| 13 | @@ -544,6 +545,9 @@ |
|---|
| 14 | |
|---|
| 15 | do_action('import_post_added', $post_id); |
|---|
| 16 | print "</li>\n"; |
|---|
| 17 | + |
|---|
| 18 | + // return time limit to setting before setting it to 60 seconds |
|---|
| 19 | + set_time_limit( $orig_timelimit ); |
|---|
| 20 | } |
|---|
| 21 | |
|---|
| 22 | function process_post_meta($post_id, $key, $value) { |
|---|