• Resolved twinword

    (@twinword)


    This is wrong:

    if(!empty($permalink)) {
    
        foreach( array_keys($imgurls) as $imgurl ) {
            $xml .=
                "<image:image>" .
                "<image:loc>" .$imgurl ."</image:loc>" .
                $license .
                "</image:image>";
        }
        $xml .= "<url><loc>" .remark_escape_xml_entities($permalink) ."</loc>" .$img ."</url>\n";
    }

    It should be:

    if(!empty($permalink)) {
        $img = '';
        foreach( array_keys($imgurls) as $imgurl ) {
            $img .=
                "<image:image>" .
                "<image:loc>" .$imgurl ."</image:loc>" .
                $license .
                "</image:image>";
        }
        $xml .= "<url><loc>" .remark_escape_xml_entities($permalink) ."</loc>" .$img ."</url>\n";
    }
Viewing 1 replies (of 1 total)
  • Plugin Author Herbert van-Vliet

    (@remarkno)

    Hi Twinword – can’t believe I didn’t spot that one..
    Thanks for letting me know (and for spelling it out for me).
    I’ve update the code accordingly.

    Best,
    Herbert

Viewing 1 replies (of 1 total)
  • The topic ‘Huge, but simple bug affects structure error:’ is closed to new replies.