Returns a clean label for the primary (URL) column’s row header aria-label.
Description
Provides screen readers with just the site title as the row header name, preventing them from computing the name from the full cell content.
Parameters
$blogarrayrequired- The current site properties array.
Source
protected function get_primary_column_aria_label( $blog ) {
$blog_name = html_entity_decode( (string) get_blog_option( $blog['blog_id'], 'blogname', '' ), ENT_QUOTES, get_bloginfo( 'charset' ) );
$blog_name = wp_strip_all_tags( $blog_name );
// Fall back to the blog URL and path if the blog name is empty.
return '' !== $blog_name ? $blog_name : untrailingslashit( $blog['domain'] . $blog['path'] );
}
Changelog
| Version | Description |
|---|---|
| 7.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.