WPIntell

Source evidence

MSIE version 11 class?

Browser Body Classes with Shortcodes · support · 2015-04-28T13:57:00+00:00

complaintsentiment
mediumseverity
0.74relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

2 / 28 rows with source links

7.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

26 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
cvc1968 unresolved
I’m trying this out and I’ve noticed that for IE versions UP TO 10, there is a version number added to the body class in addition to the ‘msie’ class. For example ‘ie10’ is added for MSIE 10. I am not seeing the Version for MSIE 11. I know Microsoft made changes to the UA for IE 11. Is there any way to detect its version number and add that class as well? Thanks https://wordpress.org/plugins/browser-body-classes-with-shortcodes/ Try opening up browser-body-classes-with-shortcodes.php and go to line 22. Replace this: $is_ie11 = (preg_match(‘/MSIE 11/i’,$agent)) ? true : false; with this: $is_ie11 = (preg_match(‘/rv:11.0/i’,$agent)) ? true : false; That works. Thank you, Thom. But are you going to make that change to the plugin next update? or will I lose this modification when the next update comes? If so, is there a way to do this with a filter? Thanks

Comments

2 shown
thomstark 2015-04-28T14:53:00+00:00

Try opening up browser-body-classes-with-shortcodes.php and go to line 22. Replace this: $is_ie11 = (preg_match(‘/MSIE 11/i’,$agent)) ? true : false; with this: $is_ie11 = (preg_match(‘/rv:11.0/i’,$agent)) ? true : false;

cvc1968 2015-04-29T12:58:00+00:00

That works. Thank you, Thom. But are you going to make that change to the plugin next update? or will I lose this modification when the next update comes? If so, is there a way to do this with a filter? Thanks