legacyMigrationNeedsAttention()) { return; } $toolsUrl = admin_url('admin.php?page=yatra&subpage=tools&tools_tab=migration'); echo '

'; echo '' . esc_html__('Yatra: Data migration required', 'yatra') . ' — '; echo esc_html__( 'Legacy Yatra 2.x or Yatra Pro 2.x data was detected. Open Tools → Migration to move trips, bookings, and settings into Yatra 3.x.', 'yatra' ); echo '

'; $pro = ProMigrationReadiness::getState(); if (!$pro['ready'] && $pro['warning_message'] !== '') { echo '

' . esc_html__('Yatra Pro:', 'yatra') . ' '; echo esc_html($pro['warning_message']); echo '

'; } echo '

'; printf( '%s', esc_url($toolsUrl), esc_html__('Open Tools → Migration', 'yatra') ); echo '

'; } }