| @@ -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 ), |