[wp-testers] Please Information for the new constans

Frank Bueltge frank at bueltge.de
Thu Jun 5 07:35:04 GMT 2008


Hello and thanks for your help.
I have also a problem with ticket 7075. This syntax works not in wp
2.5.1, work correctly in 2.6b2

Now i have the follow code:
if (function_exists('load_plugin_textdomain')) {
	if ( !defined('WP_PLUGIN_DIR') ) {
		load_plugin_textdomain('foo-domain', str_replace( ABSPATH, '',
dirname(__FILE__) ) . '/languages');
	} else {
		load_plugin_textdomain('foo-domain',
dirname(plugin_basename(__FILE__)) . '/languages');
	}
}

This work corectly in all my versions of wordpress

Thanks for the information over the new constants *CONTENT* !!

Best wishes

2008/6/5 DD32 <wordpress at dd32.id.au>:
> On Thu, 05 Jun 2008 05:37:22 +1000, Frank Bueltge <frank at bueltge.de> wrote:
>
>> Hello,
>> please  it is possible to become more informations ove  the constants
>> for autside the wp-content.
>>
>> Is is possible to link to the plugin file with:
>> load_plugin_textdomain( 'test', str_replace( ABSPATH, '',
>> dirname(__FILE__) ) );
>> in wp 2.6 ?
>
> Have a look at http://trac.wordpress.org/ticket/7075
> I think what you have there should work, But theres probably a much better
> way, And if the WP_CONTENT_DIR is set to something else, That probably will
> not work at all.
>
>> Example:
>> define('WP_CONTENT_DIR', ABSPATH . 'wp-content');    // wp-content
>> Directory
>> define('WP_CONTENT_URL', 'http://localhost/wpbeta/wp-content');    //
>> wp-content URL
>> define('WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins');    // Plugin
>> Directory
>>
>> How is it possible to use outside the domain-root, for wp-config.php
>> and folder wp-content incl. plugins and themes.
>
>
> for wp-config.php it may be in the root WordPress folder, Or the folder
> directly above it.
>
> To move wp-content outside of the root, Then you need to define
> WP_CONTENT_DIR as the absolute location of it, eg: /var/wp-content/
> Generally some plugins like to reference to files though (eg images), So its
> best not to move it completely out of the web directory.
> If the folder is accessable via a web address and is not in the default
> location, You need todefine WP_CONTENT_URL to point to it, eg:
>
> Wordpress installed at: /home/..../public_html/wordpress/ which is
> http://site.com/wordpress/
> define('WP_CONTENT_DIR', '/home/..../public_html/my-files');
> define('WP_CONTENT_URL', 'http://site.com/my-files/');
>
> Does that help?
>
>> SORRY for my bad english.
>> Best wishes.
>>
>> Liebe Grüsse
>> Frank
>> ______________________________
>> Mein Buch: WordPress - Weblogs einrichten und administrieren | ISBN
>> 978-3-937514-33-8
>>
>> bueltge.de
>> kvfl.com
>>
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>



-- 
Liebe Grüsse
Frank
______________________________
Mein Buch: WordPress - Weblogs einrichten und administrieren | ISBN
978-3-937514-33-8

bueltge.de
kvfl.com


More information about the wp-testers mailing list