| @@ -1019,12 +1019,9 @@ | ||
| 1019 | 1019 | */ |
| 1020 | 1020 | public function __call( $name, $arguments ) { |
| 1021 | 1021 | // make sure the name starts with 'is', otherwise |
| 1022 | 1022 | if ( substr( $name, 0, 2 ) !== 'is' ) { |
| 1023 | - // Deviation from upstream Mobile_Detect: the message interpolates the | |
| 1024 | - // called method name, so it is escaped in case the exception text is | |
| 1025 | - // ever surfaced to a browser. | |
| 1026 | - throw new BadMethodCallException( esc_html( "No such method exists: $name" ) ); | |
| 1023 | + throw new BadMethodCallException( "No such method exists: $name" ); | |
| 1027 | 1024 | } |
| 1028 | 1025 | |
| 1029 | 1026 | $this->setDetectionType( self::DETECTION_TYPE_MOBILE ); |
| 1030 | 1027 | |