L10n: Use an absolute path for the is_dir() check when looking for installed translations.

Avoids warnings when `open_basedir` restrictions are in effect.

Props Profforg.
Fixes #34526.
Built from https://develop.svn.wordpress.org/trunk@35856


git-svn-id: http://core.svn.wordpress.org/trunk@35820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2015-12-10 23:09:27 +00:00
parent 81b70b5af7
commit 6fb81e3338
2 changed files with 2 additions and 2 deletions

View File

@ -891,7 +891,7 @@ function wp_get_installed_translations( $type ) {
$language_data = array();
foreach ( $files as $file ) {
if ( '.' === $file[0] || is_dir( $file ) ) {
if ( '.' === $file[0] || is_dir( WP_LANG_DIR . "$dir/$file" ) ) {
continue;
}
if ( substr( $file, -3 ) !== '.po' ) {

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-35855';
$wp_version = '4.5-alpha-35856';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.