From b1de6df8b4c65fea16860e71e4b50b7cbfe7b862 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 23 Aug 2016 14:23:41 +0000 Subject: [PATCH] Media: remove `function_exists()` call for `ini_get()` in `_load_image_to_edit_path()`. Props dd32. Fixes #37681. git-svn-id: https://develop.svn.wordpress.org/trunk@38333 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/image.php b/src/wp-admin/includes/image.php index 1556665f93..84e4c4c070 100644 --- a/src/wp-admin/includes/image.php +++ b/src/wp-admin/includes/image.php @@ -563,7 +563,7 @@ function _load_image_to_edit_path( $attachment_id, $size = 'full' ) { */ $filepath = apply_filters( 'load_image_to_edit_filesystempath', path_join( dirname( $filepath ), $data['file'] ), $attachment_id, $size ); } - } elseif ( function_exists( 'fopen' ) && function_exists( 'ini_get' ) && true == ini_get( 'allow_url_fopen' ) ) { + } elseif ( function_exists( 'fopen' ) && true == ini_get( 'allow_url_fopen' ) ) { /** * Filters the image URL if not in the local filesystem. *