Make WordPress Core


Ignore:
Timestamp:
04/24/2009 04:57:27 PM (16 years ago)
Author:
ryan
Message:

Silence html_entity_decode warnings. Props Denis-de-Bernardy. fixes #9616

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/livejournal.php

    r10880 r11081  
    577577        preg_match( '|<body>(.*)</body>|is', $comment, $matches );
    578578        $comment_content = !empty( $comment_subject ) ? $comment_subject . "\n\n" . $matches[1] : $matches[1];
    579         $comment_content = html_entity_decode( $comment_content );
     579        $comment_content = @html_entity_decode( $comment_content, ENT_COMPAT, get_option('blog_charset') );
    580580        $comment_content = str_replace( '&apos;', "'", $comment_content );
    581581        $comment_content = wpautop( $comment_content );
Note: See TracChangeset for help on using the changeset viewer.