| @@ -72,16 +72,8 @@ | ||
| 72 | 72 | * @return bool |
| 73 | 73 | */ |
| 74 | 74 | public function enabled() { |
| 75 | 75 | |
| 76 | - // Check if DOMDocument is installed. | |
| 77 | - // It should be installed as mosts hosts include php-dom and php-xml modules. | |
| 78 | - // If not, disable Broadcast to Posts import functionality as we can't parse | |
| 79 | - // imported Broadcasts. | |
| 80 | - if ( ! class_exists( 'DOMDocument' ) ) { | |
| 81 | - return false; | |
| 82 | - } | |
| 83 | - | |
| 84 | 76 | return ( $this->settings['enabled'] === 'on' ? true : false ); |
| 85 | 77 | |
| 86 | 78 | } |
| 87 | 79 | |
| @@ -137,21 +129,8 @@ | ||
| 137 | 129 | |
| 138 | 130 | } |
| 139 | 131 | |
| 140 | 132 | /** |
| 141 | - * Returns whether to import the thumbnail to the Featured Image. | |
| 142 | - * | |
| 143 | - * @since 2.6.3 | |
| 144 | - * | |
| 145 | - * @return bool | |
| 146 | - */ | |
| 147 | - public function import_images() { | |
| 148 | - | |
| 149 | - return ( $this->settings['import_images'] === 'on' ? true : false ); | |
| 150 | - | |
| 151 | - } | |
| 152 | - | |
| 153 | - /** | |
| 154 | 133 | * Returns the earliest date that Broadcasts should be imported, |
| 155 | 134 | * based on their published_at date. |
| 156 | 135 | * |
| 157 | 136 | * @since 2.2.9 |
| @@ -232,9 +211,8 @@ | ||
| 232 | 211 | 'author_id' => get_current_user_id(), |
| 233 | 212 | 'post_status' => 'publish', |
| 234 | 213 | 'category_id' => '', |
| 235 | 214 | 'import_thumbnail' => 'on', |
| 236 | - 'import_images' => '', | |
| 237 | 215 | |
| 238 | 216 | // By default, only import Broadcasts as Posts for the last 30 days. |
| 239 | 217 | 'published_at_min_date' => gmdate( 'Y-m-d', strtotime( '-30 days' ) ), |
| 240 | 218 | |