WordPress.org

Ready to get started?Download WordPress

Forums

DJD Site Post
[resolved] XML Parse Error entity "’" (4 posts)

  1. Sulli
    Member
    Posted 7 months ago #

    Hello,

    First time I just want to thank you for this extension ;-)

    I found a small bug that make XML parse error with DOMDocument::loadXML()

    Cause : I have a quote in category name (s'engager) and it generate &rsquote; entity

    Solution :
    In display.php file at line 91

    Replace

    echo str_replace(" ", " ", wp_dropdown_categories(args));

    with

    $tmpCat = str_replace(" ", " ", wp_dropdown_categories(args));
    echo str_replace("’", "’", $tmpCat);

    Hope you integrate this fix in next release :-)

    http://wordpress.org/plugins/djd-site-post/

  2. Sulli
    Member
    Posted 7 months ago #

    Replace
    
    echo str_replace("  ", "  ", wp_dropdown_categories(args));
    
    with
    
    $tmpCat = str_replace("  ", " ", wp_dropdown_categories(args));
    echo str_replace("’", " ", $tmpCat);
  3. djarzyna
    Member
    Plugin Author

    Posted 7 months ago #

    Hi Sulli,

    thanks for your advise. The bug should be gone in the current version I just uploaded since I dropped this xml stuff altogether.

  4. Sulli
    Member
    Posted 7 months ago #

    Thank you, nice job :-)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.