[wp-trac] [WordPress Trac] #4614: Importer as plugin

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 11 20:07:58 GMT 2007


#4614: Importer as plugin
-------------------------+--------------------------------------------------
 Reporter:  Nazgul       |       Owner:  anonymous  
     Type:  enhancement  |      Status:  new        
 Priority:  normal       |   Milestone:  2.3 (trunk)
Component:  General      |     Version:  2.3        
 Severity:  normal       |    Keywords:  has-patch  
-------------------------+--------------------------------------------------
 I'm developing a plugin that can be used to show geocaches (and their
 logs) from within wordpress, by storing them as pages (and comments) and
 doing some magic while displaying them.

 I've also included an importer which you can use to import them from so-
 called GPX files into Wordpress.

 At the moment, they're 2 seperate files, because plugins have to be in wp-
 content/plugins and importers have to be in wp-admin/importers to work.

 Because all user content should be in wp-content and for ease of install,
 I'd like to combine those 2 file into 1, the plugin file.

 The attached patch introduces a new filter which can be used to modify the
 location where the system searches for it's importer. It also changes the
 include to a require_once to make sure that it isn't loaded twice (once as
 importer, once as plugin for example)

 I've also attached a simple sample plugin which contains an importer
 plugin that uses this functionality.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4614>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list