From 6fb81e3338a538c866a6f05a75b1666ab51b937d Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Thu, 10 Dec 2015 23:09:27 +0000 Subject: [PATCH] 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 --- wp-includes/l10n.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index c017952516..2a679128e5 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -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' ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 6f148f75cd..389a107f27 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.