[wp-gsoc] [Summer of Code] #327: Convert current WP_Import tasks for statefulness

Summer of Code noreply at wordpress.org
Wed Aug 7 23:56:39 UTC 2013


#327: Convert current WP_Import tasks for statefulness
-------------------------------------+----------------------------------
 Reporter:  frederick.ding           |       Owner:
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:  2013 Midterm (Beta)
Component:  Migration & Portability  |  Resolution:  fixed
 Keywords:  needs-unit-tests         |
-------------------------------------+----------------------------------

Comment (by JohnC28):

 Hi Fredrick

 Two things:

 Any chance you could modify line 1588 of class-wordpress-importer.php to
 this:


 {{{
 if ( ! isset( $this->params[$this->wxr_file] ) || ! is_array(
 $this->params[$this->wxr_file] ) )
 }}}

 It would stop an annoying "Undefined index" notice appearing with debug
 output on.

 Also, what change of adding a filter similar to
 'import_allow_create_users' for menu items?

 I have a special case where I don't ever want to import menus. Currently
 I'm extending your class to override the process_menu_item method just to
 return 0. But a filter at the start of that method (and, really, all the
 other entity methods: comments, taxonomies etc) would make it easy to
 prevent import of unwanted items.

 Thanks

 John

--
Ticket URL: <http://gsoc.trac.wordpress.org/ticket/327#comment:22>
Summer of Code <http://gsoc.trac.wordpress.org>
My example project


More information about the wp-gsoc mailing list