PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 2.8.6
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v2.8.6
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 2.3.2 All 195 releases
← All changes | admin/class-convertkit-admin-post.php +5 -14 3.3.22.8.6 View file →
@@ -7,10 +7,10 @@
7 7 */
8 8
9 9 /**
10 10 * Registers a metabox on Posts, Pages and public facing Custom Post Types
11 - * that do not use the block editor, saving settings when the Post is saved
12 - * in the WordPress Administration interface.
11 + * and saves its settings when the Post is saved in the WordPress Administration
12 + * interface.
13 13 *
14 14 * @package ConvertKit
15 15 * @author ConvertKit
16 16 */
@@ -26,9 +26,9 @@
26 26 // Register "Add New" Kit button on Pages.
27 27 add_filter( 'views_edit-page', array( $this, 'output_wp_list_table_buttons' ) );
28 28
29 29 add_action( 'post_submitbox_misc_actions', array( $this, 'output_pre_publish_actions' ) );
30 - add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ), 10, 2 );
30 + add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
31 31 add_action( 'save_post', array( $this, 'save_post_meta' ) );
32 32
33 33 }
34 34
@@ -132,11 +132,8 @@
132 132
133 133 // Enqueue Post CSS.
134 134 wp_enqueue_style( 'convertkit-post', CONVERTKIT_PLUGIN_URL . 'resources/backend/css/post.css', array(), CONVERTKIT_PLUGIN_VERSION );
135 135
136 - // Enqueue Refresh Resources CSS.
137 - wp_enqueue_style( 'convertkit-admin-refresh-resources', CONVERTKIT_PLUGIN_URL . 'resources/backend/css/refresh-resources.css', array(), CONVERTKIT_PLUGIN_VERSION );
138 -
139 136 /**
140 137 * Enqueue CSS for the Settings Screen at Settings > Kit
141 138 *
142 139 * @since 1.9.6.4
@@ -180,21 +177,15 @@
180 177 * Adds a meta box for the given Post Type.
181 178 *
182 179 * @since 1.9.6
183 180 *
184 - * @param string $post_type Post Type.
185 - * @param WP_Post $post Post.
181 + * @param string $post_type Post Type.
186 182 */
187 - public function add_meta_boxes( $post_type, $post ) {
183 + public function add_meta_boxes( $post_type ) {
188 184
189 185 // Don't register the meta box if this Post Type isn't supported.
190 186 $supported_post_types = convertkit_get_supported_post_types();
191 187 if ( ! in_array( $post_type, $supported_post_types, true ) ) {
192 - return;
193 - }
194 -
195 - // Don't register the meta box if the block editor is being used, as register_post_meta() handles saving post meta.
196 - if ( function_exists( 'use_block_editor_for_post' ) && use_block_editor_for_post( $post ) ) {
197 188 return;
198 189 }
199 190
200 191 // Register Meta Box.