Skip to content

Instantly share code, notes, and snippets.

@cfxd
Last active February 16, 2016 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfxd/f8e0e1d4559c8be1a8ae to your computer and use it in GitHub Desktop.
Save cfxd/f8e0e1d4559c8be1a8ae to your computer and use it in GitHub Desktop.
--- 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