Skip to content

Commit 232f55d

Browse files
committed
coolrequest: Remove deprecated libxml_disable_entity_loader()
Fix a phpcs error. See #1 Signed-off-by: Hubert Figuière <[email protected]>
1 parent 44341cd commit 232f55d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

includes/class-coolrequest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,7 @@ public function get_wopi_client_url() {
124124
return;
125125
}
126126

127-
if ( \PHP_VERSION_ID < 80000 ) {
128-
// This is deprecated and disabled by default in PHP 8.0.
129-
$load_entities = libxml_disable_entity_loader( true );
130-
}
131127
$discovery_parsed = simplexml_load_string( $discovery );
132-
if ( \PHP_VERSION_ID < 80000 ) {
133-
// This is deprecated and disabled by default in PHP 8.0.
134-
libxml_disable_entity_loader( $load_entities );
135-
}
136128
if ( ! $discovery_parsed ) {
137129
$this->error_code = 102;
138130
return;

0 commit comments

Comments
 (0)