mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 23:41:38 +01:00
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:
parent
81b70b5af7
commit
6fb81e3338
@ -891,7 +891,7 @@ function wp_get_installed_translations( $type ) {
|
|||||||
$language_data = array();
|
$language_data = array();
|
||||||
|
|
||||||
foreach ( $files as $file ) {
|
foreach ( $files as $file ) {
|
||||||
if ( '.' === $file[0] || is_dir( $file ) ) {
|
if ( '.' === $file[0] || is_dir( WP_LANG_DIR . "$dir/$file" ) ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ( substr( $file, -3 ) !== '.po' ) {
|
if ( substr( $file, -3 ) !== '.po' ) {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user