diff --git a/src/wp-admin/includes/noop.php b/src/wp-admin/includes/noop.php index 6e2397ea2e..ba611fc9e1 100644 --- a/src/wp-admin/includes/noop.php +++ b/src/wp-admin/includes/noop.php @@ -95,9 +95,7 @@ function wp_guess_url() {} function get_file( $path ) { - if ( function_exists( 'realpath' ) ) { - $path = realpath( $path ); - } + $path = realpath( $path ); if ( ! $path || ! @is_file( $path ) ) { return ''; diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index d980dca3c8..0aaeae6166 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -491,9 +491,7 @@ final class _WP_Editors { $path = str_replace( content_url(), '', $plugurl ); $path = WP_CONTENT_DIR . $path . '/langs/'; - if ( function_exists( 'realpath' ) ) { - $path = trailingslashit( realpath( $path ) ); - } + $path = trailingslashit( realpath( $path ) ); if ( @is_file( $path . $mce_locale . '.js' ) ) { $strings .= @file_get_contents( $path . $mce_locale . '.js' ) . "\n";