[wp-hackers] Access files inside a plugin directory?
wp-hackers at striderweb.com
Tue Mar 23 23:44:14 UTC 2010
Another thought: If you're customizing WP_PLUGIN_DIR and WP_PLUGIN_URL, you could always set the DIR constant to the **actual** directory of the shared plugins. Might fix a lot of the __FILE__ problems.
On Mar 23, 2010, at 9:18 AM, Jeremy Clarke wrote:
> Is using __FILE__ an accepted practice in WP-land? I have many
> installs where I use symlinks ( ln -s ) to share plugin/theme
> directories between multiple installations, and any use of __file__
> completely screws up file includes in that setup. Most plugins manage
> to avoid it but the ones that use it need to be modified by hand.
> Isn't it presumptive or something? Seems dangerous to have as a best practice.
More information about the wp-hackers