PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 3.3.0
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v3.3.0
3.3.0 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.1 trunk 1.0.4 1.1.0 1.1.0.1 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 All 162 releases
← All changes | admin-core/api/flow-data.php +5 -2 3.0.1 → 3.3.0 View file →
@@ -110,15 +110,18 @@
110 110
111 111 /* Setup steps data */
112 112 $steps = AdminHelper::prepare_step_data( $flow_id, $meta_options );
113 113
114 + $first_step_url = \Cartflows_Flow_Post_Type::get_instance()->get_first_step_url( get_post( $flow_id ) );
115 +
114 116 $data = apply_filters(
115 117 'cartflows_admin_flow_data',
116 118 array(
117 119 'id' => $flow_id,
118 - 'title' => get_the_title( $flow_id ),
120 + // Use the raw stored title to avoid the_title filters (wptexturize) turning dashes into HTML entities.
121 + 'title' => get_post_field( 'post_title', $flow_id, 'raw' ),
119 122 'slug' => get_post_field( 'post_name', $flow_id, 'edit' ),
120 - 'link' => get_permalink( $flow_id ),
123 + 'link' => $first_step_url ? $first_step_url : '#',
121 124 'status' => get_post_status( $flow_id ),
122 125 'steps' => $steps,
123 126 'options' => $meta_options,
124 127 'settings_data' => FlowMeta::get_meta_settings( $flow_id ),