PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 2.7.4
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v2.7.4
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 +4 -10 2.2.12.7.4 View file →
@@ -33,26 +33,20 @@
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 -
42 37 // Bail if we're not on a Post Type Edit screen.
43 - $screen = get_current_screen();
44 - if ( $screen->base !== 'edit' ) {
38 + if ( convertkit_get_current_screen( 'base' ) !== 'edit' ) {
45 39 return;
46 40 }
47 41
48 42 // Bail if the Post isn't a supported Post Type.
49 - if ( ! in_array( $screen->post_type, convertkit_get_supported_post_types(), true ) ) {
43 + if ( ! in_array( convertkit_get_current_screen( 'post_type' ), convertkit_get_supported_post_types(), true ) ) {
50 44 return;
51 45 }
52 46
53 47 // Enqueue JS.
54 - wp_enqueue_script( 'convertkit-admin-quick-edit', CONVERTKIT_PLUGIN_URL . 'resources/backend/js/quick-edit.js', array( 'jquery' ), CONVERTKIT_PLUGIN_VERSION, true );
48 + wp_enqueue_script( 'convertkit-admin-quick-edit', CONVERTKIT_PLUGIN_URL . 'resources/backend/js/quick-edit.js', array(), CONVERTKIT_PLUGIN_VERSION, true );
55 49
56 50 // Enqueue CSS.
57 51 wp_enqueue_style( 'convertkit-admin-bulk-quick-edit', CONVERTKIT_PLUGIN_URL . 'resources/backend/css/bulk-quick-edit.css', array(), CONVERTKIT_PLUGIN_VERSION );
58 52
@@ -105,9 +99,9 @@
105 99 public function quick_edit_fields() {
106 100
107 101 // Don't output Quick Edit fields if the API settings have not been defined.
108 102 $settings = new ConvertKit_Settings();
109 - if ( ! $settings->has_api_key_and_secret() ) {
103 + if ( ! $settings->has_access_and_refresh_token() ) {
110 104 return;
111 105 }
112 106
113 107 // Initialize Restrict Content Settings class.