• Resolved Sulli

    (@sulli)


    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 ??

    https://www.ads-software.com/plugins/djd-site-post/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Sulli

    (@sulli)

    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.

    Thread Starter Sulli

    (@sulli)

    Thank you, nice job ??

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