PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 2.4.7
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v2.4.7
3.4.3 3.4.2 3.4.1 3.4.0 3.3.9 3.3.8 3.3.7 3.3.6 3.3.5 3.3.4 3.3.3 3.3.2 3.3.1 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 All 196 releases
← All changes | includes/class-convertkit-settings-broadcasts.php +0 -22 3.3.32.4.7 View file →
@@ -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