From 4d47f3f615fc706a35a717ec2f8bca140d62ffca Mon Sep 17 00:00:00 2001 From: Teemu Suoranta Date: Wed, 16 Oct 2019 17:38:06 +0300 Subject: [PATCH] Fix typo in requires --- aucor-download-and-replace-attachments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aucor-download-and-replace-attachments.php b/aucor-download-and-replace-attachments.php index 30bcf8a..e04916a 100755 --- a/aucor-download-and-replace-attachments.php +++ b/aucor-download-and-replace-attachments.php @@ -333,8 +333,8 @@ protected function get_attachment_replacement($src, $post_id) { // gives us access to the download_url() and wp_handle_sideload() functions require_once ABSPATH . 'wp-admin/includes/file.php'; - require_once ABSPATH . '/wp-admin/includes/media.php'; - require_once ABSPATH . '/wp-admin/includes/image.php'; + require_once ABSPATH . 'wp-admin/includes/media.php'; + require_once ABSPATH . 'wp-admin/includes/image.php'; if (!strstr($src, 'http://') && !strstr($src, 'https://')) { $src = 'http://' . $src;