Use strict comparison

This commit is contained in:
IanDelMar 2019-11-09 12:12:25 +01:00 committed by GitHub
parent c2a06502b7
commit a4f7316e08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ if ( ! class_exists( 'Understrap_WP_Bootstrap_Navwalker' ) ) {
*/ */
if ( in_array( 'sr-only', $linkmod_classes, true ) ) { if ( in_array( 'sr-only', $linkmod_classes, true ) ) {
$title = self::wrap_for_screen_reader( $title ); $title = self::wrap_for_screen_reader( $title );
$keys_to_unset = array_keys( $linkmod_classes, 'sr-only' ); $keys_to_unset = array_keys( $linkmod_classes, 'sr-only', true );
foreach ( $keys_to_unset as $k ) { foreach ( $keys_to_unset as $k ) {
unset( $linkmod_classes[ $k ] ); unset( $linkmod_classes[ $k ] );
} }