PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 2.5.2
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v2.5.2
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 2.3.0 All 197 releases
← All changes | admin/class-convertkit-admin-quick-edit.php +8 -3 3.3.52.5.2 View file →
@@ -33,15 +33,21 @@
33 33 * @since 1.9.8.0
34 34 */
35 35 public function enqueue_assets() {
36 36
37 + // Bail if we cannot determine the screen.
38 + if ( ! function_exists( 'get_current_screen' ) ) {
39 + return;
40 + }
41 +
37 42 // Bail if we're not on a Post Type Edit screen.
38 - if ( convertkit_get_current_screen( 'base' ) !== 'edit' ) {
43 + $screen = get_current_screen();
44 + if ( $screen->base !== 'edit' ) {
39 45 return;
40 46 }
41 47
42 48 // Bail if the Post isn't a supported Post Type.
43 - if ( ! in_array( convertkit_get_current_screen( 'post_type' ), convertkit_get_supported_post_types(), true ) ) {
49 + if ( ! in_array( $screen->post_type, convertkit_get_supported_post_types(), true ) ) {
44 50 return;
45 51 }
46 52
47 53 // Enqueue JS.
@@ -48,9 +54,8 @@
48 54 wp_enqueue_script( 'convertkit-admin-quick-edit', CONVERTKIT_PLUGIN_URL . 'resources/backend/js/quick-edit.js', array(), CONVERTKIT_PLUGIN_VERSION, true );
49 55
50 56 // Enqueue CSS.
51 57 wp_enqueue_style( 'convertkit-admin-bulk-quick-edit', CONVERTKIT_PLUGIN_URL . 'resources/backend/css/bulk-quick-edit.css', array(), CONVERTKIT_PLUGIN_VERSION );
52 - wp_enqueue_style( 'convertkit-admin-refresh-resources', CONVERTKIT_PLUGIN_URL . 'resources/backend/css/refresh-resources.css', array(), CONVERTKIT_PLUGIN_VERSION );
53 58
54 59 }
55 60
56 61 /**