Google Groups Home
Help | Sign in
Where to place includes for import script?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ronald Heft  
View profile  
 More options Jun 2 2008, 4:35 pm
From: Ronald Heft <cavemonke...@gmail.com>
Date: Mon, 2 Jun 2008 13:35:04 -0700 (PDT)
Local: Mon, Jun 2 2008 4:35 pm
Subject: Where to place includes for import script?
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/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Westwood  
View profile  
 More options Jun 2 2008, 4:39 pm
From: Peter Westwood <peter.westw...@ftwr.co.uk>
Date: Mon, 02 Jun 2008 21:39:45 +0100
Local: Mon, Jun 2 2008 4:39 pm
Subject: Re: [WPSoC] Where to place includes for import script?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ronald Heft wrote:

| 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/

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 to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google