mirror of
https://github.com/Frumph/comic-easel.git
synced 2026-02-04 02:51:20 +01:00
Update ceo-import.php
(is_multisite) to (is_multisite())
This commit is contained in:
committed by
GitHub
parent
3f6dfe6358
commit
0b69c88c53
@@ -60,7 +60,7 @@ function ceo_import_add_comic_and_post($comic_to_add, $date_to_add, $title_to_ad
|
||||
$post_id = wp_insert_post($post_args);
|
||||
if (!is_wp_error($post_id)) {
|
||||
// Attach the Comic Now
|
||||
$file_url = (is_multisite) ? esc_url(network_home_url().'/'.$import_directory.'/'.$comic_to_add) : esc_url(home_url().'/'.$import_directory.'/'.$comic_to_add);
|
||||
$file_url = (is_multisite()) ? esc_url(network_home_url().'/'.$import_directory.'/'.$comic_to_add) : esc_url(home_url().'/'.$import_directory.'/'.$comic_to_add);
|
||||
$comic = new WP_Http();
|
||||
$comic = $comic->request( $file_url );
|
||||
if (!is_wp_error($comic)) {
|
||||
@@ -280,4 +280,4 @@ if (count($results = glob(ABSPATH.$import_directory.'/*.*')) > 0) {
|
||||
}
|
||||
} else {
|
||||
echo __('No files found in','comiceasel').' '.ABSPATH.$import_directory;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user