PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 2.4.0
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v2.4.0
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 | admin/class-convertkit-admin-quick-edit.php +10 -5 3.3.92.4.0 View file →
@@ -33,24 +33,29 @@
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 - wp_enqueue_script( 'convertkit-admin-quick-edit', CONVERTKIT_PLUGIN_URL . 'resources/backend/js/quick-edit.js', array(), CONVERTKIT_PLUGIN_VERSION, true );
54 + wp_enqueue_script( 'convertkit-admin-quick-edit', CONVERTKIT_PLUGIN_URL . 'resources/backend/js/quick-edit.js', array( 'jquery' ), 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 /**
@@ -100,9 +105,9 @@
100 105 public function quick_edit_fields() {
101 106
102 107 // Don't output Quick Edit fields if the API settings have not been defined.
103 108 $settings = new ConvertKit_Settings();
104 - if ( ! $settings->has_access_and_refresh_token() ) {
109 + if ( ! $settings->has_api_key_and_secret() ) {
105 110 return;
106 111 }
107 112
108 113 // Initialize Restrict Content Settings class.