Make WordPress Core

Changeset 56235


Ignore:
Timestamp:
07/14/2023 08:57:53 PM (10 months ago)
Author:
azaozz
Message:

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.

File:
1 edited

Legend:

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

    r56177 r56235  
    512512                            if ( ! in_array( $name, $loaded_langs, true ) ) {
    513513                                $path = str_replace( content_url(), '', $plugurl );
    514                                 $path = WP_CONTENT_DIR . $path . '/langs/';
    515 
    516                                 $path = trailingslashit( realpath( $path ) );
     514                                $path = realpath( WP_CONTENT_DIR . $path . '/langs/' );
     515
     516                                if ( ! $path ) {
     517                                    continue;
     518                                }
     519
     520                                $path = trailingslashit( $path );
    517521
    518522                                if ( @is_file( $path . $mce_locale . '.js' ) ) {
Note: See TracChangeset for help on using the changeset viewer.