post_content ) && has_shortcode( $post->post_content, 'aimslms_student_dashboard' ) ) { $classes[] = 'aimslms-student-dashboard'; // Tab-based body class. if ( isset( $_GET['tab'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only tab navigation, no state change. $classes[] = 'aimslms-tab-' . sanitize_html_class( wp_unslash( $_GET['tab'] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only tab navigation, no state change. } else { $classes[] = 'aimslms-tab-home'; } } return $classes; } }