plugin updates
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
* WXR Parser that makes use of the SimpleXML PHP extension.
|
||||
*/
|
||||
class WXR_Parser_SimpleXML {
|
||||
function parse( $file ) {
|
||||
public function parse( $file ) {
|
||||
$authors = array();
|
||||
$posts = array();
|
||||
$categories = array();
|
||||
@@ -19,7 +19,7 @@ class WXR_Parser_SimpleXML {
|
||||
|
||||
$internal_errors = libxml_use_internal_errors( true );
|
||||
|
||||
$dom = new DOMDocument;
|
||||
$dom = new DOMDocument();
|
||||
$old_value = null;
|
||||
if ( function_exists( 'libxml_disable_entity_loader' ) && PHP_VERSION_ID < 80000 ) {
|
||||
$old_value = libxml_disable_entity_loader( true );
|
||||
|
||||
Reference in New Issue
Block a user