Merge pull request #1061 from IanDelMar/strict-comparison
Use strict comparison
This commit is contained in:
commit
cd6b58df53
|
@ -272,7 +272,7 @@ if ( ! class_exists( 'Understrap_WP_Bootstrap_Navwalker' ) ) {
|
|||
*/
|
||||
if ( in_array( 'sr-only', $linkmod_classes, true ) ) {
|
||||
$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 ) {
|
||||
unset( $linkmod_classes[ $k ] );
|
||||
}
|
||||
|
|
Reference in New Issue