PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 3.4.5
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v3.4.5
3.4.5 3.4.4 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 All 198 releases
← All changes | admin/setup-wizard/class-convertkit-admin-setup-wizard-restrict-content.php +6 -1 3.4.1 → 3.4.5 View file →
@@ -250,9 +250,9 @@
250 250 // This shouldn't happen, because the 'Add New Member Content' button is only displayed
251 251 // if valid credentials have been specified.
252 252 $settings = new ConvertKit_Settings();
253 253 if ( ! $settings->has_access_and_refresh_token() ) {
254 - wp_die( esc_html__( 'Connect your ConvertKit account in the ConvertKit Plugin\'s settings to get started', 'convertkit' ) );
254 + wp_die( esc_html__( 'Connect your Kit account in the Kit Plugin\'s settings to get started', 'convertkit' ) );
255 255 }
256 256
257 257 // Set and authorize the Post Type.
258 258 $this->set_post_type();
@@ -567,8 +567,13 @@
567 567 'form' => '0', // Don't display a Form.
568 568 'restrict_content' => ( $restrict_content_setting !== false ? $restrict_content_setting : '0' ),
569 569 )
570 570 );
571 +
572 + // Update whether Restrict Content is enabled, as the wp_insert_post hook ran before the Page's settings were saved.
573 + if ( $restrict_content_setting !== false ) {
574 + WP_ConvertKit()->get_class( 'admin_restrict_content' )->update_restrict_content_enabled();
575 + }
571 576
572 577 // Return.
573 578 return $page_id;
574 579