Skip to content

Commit

Permalink
Fix typo in requires
Browse files Browse the repository at this point in the history
  • Loading branch information
Teemu Suoranta committed Oct 16, 2019
1 parent ebc87ec commit 4d47f3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aucor-download-and-replace-attachments.php
Expand Up @@ -333,8 +333,8 @@ protected function get_attachment_replacement($src, $post_id) {


// gives us access to the download_url() and wp_handle_sideload() functions // 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/file.php';
require_once ABSPATH . '/wp-admin/includes/media.php'; require_once ABSPATH . 'wp-admin/includes/media.php';
require_once ABSPATH . '/wp-admin/includes/image.php'; require_once ABSPATH . 'wp-admin/includes/image.php';


if (!strstr($src, 'http://') && !strstr($src, 'https://')) { if (!strstr($src, 'http://') && !strstr($src, 'https://')) {
$src = 'http://' . $src; $src = 'http://' . $src;
Expand Down

0 comments on commit 4d47f3f

Please sign in to comment.