From 663e29189fa86c421909ca98d6ba865d42156037 Mon Sep 17 00:00:00 2001
From: jrfnl <jrfnl@users.noreply.github.com>
Date: Sat, 27 Jul 2019 04:31:28 +0200
Subject: [PATCH] [src] Remove work-arounds for realpath()

---
 src/wp-admin/includes/noop.php      | 4 +---
 src/wp-includes/class-wp-editor.php | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/wp-admin/includes/noop.php b/src/wp-admin/includes/noop.php
index 134bef7efe..4c0b9e7c78 100644
--- a/src/wp-admin/includes/noop.php
+++ b/src/wp-admin/includes/noop.php
@@ -102,9 +102,7 @@ endif;
 
 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";
-- 
2.23.0.windows.1

