PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 1.9.7.2
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v1.9.7.2
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.php +2 -29 2.2.81.9.7.2 View file →
@@ -168,9 +168,9 @@
168 168 *
169 169 * @since 1.9.6
170 170 *
171 171 * @param string $post_type Post Type.
172 - * @return string|int Default Form (default|form id)
172 + * @return string Default Form (default|form id)
173 173 */
174 174 public function get_default_form( $post_type ) {
175 175
176 176 // Return default if this Post Type doesn't exist as a setting.
@@ -228,21 +228,8 @@
228 228
229 229 }
230 230
231 231 /**
232 - * Returns whether stylesheets are disabled in the Plugin settings.
233 - *
234 - * @since 1.9.6.9
235 - *
236 - * @return bool
237 - */
238 - public function css_disabled() {
239 -
240 - return ( $this->settings['no_css'] === 'on' ? true : false );
241 -
242 - }
243 -
244 - /**
245 232 * The default settings, used when the ConvertKit Plugin Settings haven't been saved
246 233 * e.g. on a new installation.
247 234 *
248 235 * @since 1.9.6
@@ -255,9 +242,8 @@
255 242 'api_key' => '', // string.
256 243 'api_secret' => '', // string.
257 244 'debug' => '', // blank|on.
258 245 'no_scripts' => '', // blank|on.
259 - 'no_css' => '', // blank|on.
260 246 );
261 247
262 248 // Add Post Type Default Forms.
263 249 foreach ( convertkit_get_supported_post_types() as $post_type ) {
@@ -269,26 +255,13 @@
269 255 * e.g. on a new installation.
270 256 *
271 257 * @since 1.9.6
272 258 *
273 - * @param array $defaults Default Settings.
259 + * @param array $defaults
274 260 */
275 261 $defaults = apply_filters( 'convertkit_settings_get_defaults', $defaults );
276 262
277 263 return $defaults;
278 -
279 - }
280 -
281 - /**
282 - * Saves the given array of settings to the WordPress options table.
283 - *
284 - * @since 1.9.8.4
285 - *
286 - * @param array $settings Settings.
287 - */
288 - public function save( $settings ) {
289 -
290 - update_option( self::SETTINGS_NAME, array_merge( $this->get(), $settings ) );
291 264
292 265 }
293 266
294 267 }