0 ) { return get_post_type( $post_id ) ?: null; } $normalised = trailingslashit( $url ); foreach ( AccessMate_Site_Scanner::get_eligible_cpts() as $cpt ) { if ( ! $cpt->has_archive ) { continue; } $archive_url = get_post_type_archive_link( $cpt->name ); if ( $archive_url && trailingslashit( $archive_url ) === $normalised ) { return $cpt->name; } } return null; } /** * Sanitize axe-core issue text (title/description) without stripping HTML tag names. * axe-core titles often reference element names literally, e.g. "
{$org} is committed to ensuring digital accessibility for people with disabilities. "; $html .= "We continually improve the user experience for everyone and apply the relevant accessibility standards.
The Web Content Accessibility Guidelines (WCAG) define requirements for designers and developers to improve accessibility for people with disabilities. "; $html .= "It defines three levels of conformance: Level A, Level AA, and Level AAA. "; $html .= "{$site} is {$conformance_level} with {$conformance_standard}.
' . esc_html( $data['conformance']['additional_notes'] ) . "
{$org} takes the following measures to ensure accessibility:
Accessibility relies on the following technologies to work with the particular combination of web browser and any assistive technologies or plugins installed on your computer:
' . esc_html( $label ) . ': ' . esc_html( implode( ', ', $items ) ) . "
We welcome your feedback on the accessibility of {$site}. Please let us know if you experience accessibility barriers.
Phone: ' . esc_html( $fb['phone'] ) . "
E-mail: ' . esc_html( $fb['email'] ) . "
Postal address: ' . nl2br( esc_html( $fb['address'] ) ) . "
We try to respond to feedback within ' . esc_html( $fb['response_duration'] ) . ".