Last active
February 16, 2016 19:51
-
-
Save cfxd/f8e0e1d4559c8be1a8ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- wordpress-importer.php | |
+++ wordpress-importer_fix.php | |
@@ -63,7 +63,7 @@ | |
var $url_remap = array(); | |
var $featured_images = array(); | |
- function WP_Import() { /* nothing */ } | |
+ public function __construct(){ /* nothing */ } | |
/** | |
* Registered callback function for the WordPress Importer | |
@@ -795,7 +795,7 @@ | |
} | |
foreach ( $item['postmeta'] as $meta ) | |
- $$meta['key'] = $meta['value']; | |
+ ${$meta['key']} = $meta['value']; | |
if ( 'taxonomy' == $_menu_item_type && isset( $this->processed_terms[intval($_menu_item_object_id)] ) ) { | |
$_menu_item_object_id = $this->processed_terms[intval($_menu_item_object_id)]; | |
@@ -1029,7 +1029,6 @@ | |
// Display import page title | |
function header() { | |
echo '<div class="wrap">'; | |
- screen_icon(); | |
echo '<h2>' . __( 'Import WordPress', 'wordpress-importer' ) . '</h2>'; | |
$updates = get_plugin_updates(); | |
@@ -1107,7 +1106,7 @@ | |
* Added to http_request_timeout filter to force timeout at 60 seconds during import | |
* @return int 60 | |
*/ | |
- function bump_request_timeout() { | |
+ function bump_request_timeout($val) { | |
return 60; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment