Support » Plugin: DJD Site Post » XML Parse Error entity "’"

  • 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Replace
    
    echo str_replace("  ", "  ", wp_dropdown_categories(args));
    
    with
    
    $tmpCat = str_replace("  ", " ", wp_dropdown_categories(args));
    echo str_replace("’", " ", $tmpCat);
    Plugin Author djarzyna

    (@djarzyna)

    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.

    Thank you, nice job 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘XML Parse Error entity "’"’ is closed to new replies.