| 1 | Index: wp-admin/import/mt.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/import/mt.php (revision 4261) |
|---|
| 4 | +++ wp-admin/import/mt.php (working copy) |
|---|
| 5 | @@ -23,7 +23,7 @@ |
|---|
| 6 | ?> |
|---|
| 7 | <p><?php _e('Howdy! We’re about to begin the process to import all of your Movable Type entries into WordPress. To begin, select a file to upload and click Import.'); ?></p> |
|---|
| 8 | <?php wp_import_upload_form( add_query_arg('step', 1) ); ?> |
|---|
| 9 | - <p><?php _e('The importer is smart enough not to import duplicates, so you can run this multiple times without worry if—for whatever reason—it doesn\'t finish. If you get an <strong>out of memory</strong> error try splitting up the import file into pieces.'); ?> </p> |
|---|
| 10 | + <p><?php _e('The importer is smart enough not to import duplicates, so you can run this multiple times without worry if—for whatever reason—it doesn\'t finish. If the file is very large, you might try splitting up the import file into pieces.'); ?> </p> |
|---|
| 11 | <?php |
|---|
| 12 | $this->footer(); |
|---|
| 13 | } |
|---|
| 14 | @@ -75,6 +75,7 @@ |
|---|
| 15 | |
|---|
| 16 | function get_entries() { |
|---|
| 17 | set_magic_quotes_runtime(0); |
|---|
| 18 | + ini_set('memory_limit', '50M'); |
|---|
| 19 | $importdata = file($this->file); // Read the file into an array |
|---|
| 20 | $importdata = implode('', $importdata); // squish it |
|---|
| 21 | $importdata = preg_replace("/(\r\n|\n|\r)/", "\n", $importdata); |
|---|