Where to place includes for import script?

0 views
Skip to first unread message

Ronald Heft

unread,
Jun 2, 2008, 4:35:04 PM6/2/08
to WordPress Summer of Code 2008
I have a minor "where should this go" question. Upon searching for how
to authenticate using WSSE today (the protocol used for AtomPub
authentication), I stumbled upon an excellent class which handles the
authentication.

For the time being, I have placed this class in /wp-admin/import/mt-
atom/ and included it in the importer. Although, I'm wondering if it
would be a better idea to have the class globally available via wp-
includes or just for simplicity sake (since no other importers have
folders), move the class inside of my importer's file. The class isn't
too large, so it could probably be placed in the importer without
trouble.

Any thoughts on this? I'm fine where it is now, but would obviously
like to have it in the proper place if down the road someone dislikes
the extra folder in /wp-admin/import/

Peter Westwood

unread,
Jun 2, 2008, 4:39:45 PM6/2/08
to wordpress...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Either wp-admin/includes or wp-includes as class-xxx.php.

The choice between the two is basically whether or not the file is
useful outside the admin context.

If you can envisage it being used by a plugin which provides frontend
functionality then wp-includes. Otherwise wp-admin/includes it is.

westi
- --
Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
~ C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIRFqRVPRdzag0AcURAsvCAKCRU9bBFD26P5i47lE//LI1yxmwrwCePtC7
2URhmedsIA058H4iBX57H94=
=BsC4
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages