[wp-trac] [WordPress Trac] #10216: load_plugin_textdomain in 2.8
breaks all-in-one-seo-pack-plugin on IIS
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 19 06:08:15 GMT 2009
#10216: load_plugin_textdomain in 2.8 breaks all-in-one-seo-pack-plugin on IIS
--------------------------+-------------------------------------------------
Reporter: ruslany | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8.1
Component: Plugins | Version: 2.8
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
the signature of the load_plugin_textdomain has changed from:
{{{
function load_textdomain($domain, $mofile)
}}}
to
{{{
function load_plugin_textdomain($domain, $abs_rel_path = false,
$plugin_rel_path = false)
}}}
But some plugins, such as all-in-one-seo-pack still use old signature and
pass the absolute path to the mo file. This results in the following
warning when open_basedir directive is enabled (note the invalid path):
PHP Warning: is_readable() [function.is-readable]: open_basedir
restriction in effect.
File(C:\inetpub\wwwroot\wp28/C:\inetpub\wwwroot\wp28/wp-content/plugins
/all-in-one-seo-pack/all_in_one_seo_pack-en_US.mo) is not within the
allowed path(s): (C:\inetpub\wwwroot\) in C:\inetpub\wwwroot\wp28\wp-
includes\l10n.php on line 324
The load_plugin_textdomain should be backward compatible.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10216>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list