mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Editir: Fix open_basedir warnings on the classic Edit Post screen when additional TinyMCE plugins are used.
Props: rembem, MadtownLems, njsamsatli, sabernhardt, azaozz. Fixes: #54354. git-svn-id: https://develop.svn.wordpress.org/trunk@56235 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3dff98beb4
commit
e77bf1ec99
@ -511,9 +511,13 @@ final class _WP_Editors {
|
||||
// Try to load langs/[locale].js and langs/[locale]_dlg.js.
|
||||
if ( ! in_array( $name, $loaded_langs, true ) ) {
|
||||
$path = str_replace( content_url(), '', $plugurl );
|
||||
$path = WP_CONTENT_DIR . $path . '/langs/';
|
||||
$path = realpath( WP_CONTENT_DIR . $path . '/langs/' );
|
||||
|
||||
$path = trailingslashit( realpath( $path ) );
|
||||
if ( ! $path ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$path = trailingslashit( $path );
|
||||
|
||||
if ( @is_file( $path . $mce_locale . '.js' ) ) {
|
||||
$strings .= @file_get_contents( $path . $mce_locale . '.js' ) . "\n";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user