Make WordPress Core

Changeset 35856


Ignore:
Timestamp:
12/10/2015 11:08:46 PM (9 years ago)
Author:
ocean90
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/l10n.php

    r34912 r35856  
    892892
    893893    foreach ( $files as $file ) {
    894         if ( '.' === $file[0] || is_dir( $file ) ) {
     894        if ( '.' === $file[0] || is_dir( WP_LANG_DIR . "$dir/$file" ) ) {
    895895            continue;
    896896        }
Note: See TracChangeset for help on using the changeset viewer.