• Resolved kitchin

    (@kitchin)


    In 4.7 we get this warning:
    Notice: Undefined variable: pong in …/wp-content/plugins/xml-sitemap-feed/includes/class-xmlsitemapfeed.php on line 1188

    Here is the fix at line 1188:
    v.4.7:

    if ( $pong = get_option( $this->prefix.'pong' ) && is_array($pong) ) {

    patch:

    if ( $pong = get_option( $this->prefix.'pong' ) and is_array($pong) ) {

    You could also clarify line 642, though it does work due to PHP’s lax syntax:
    v.4.7:

    if ( $post_type == 'page' && $id = get_option('page_on_front') ) {

    patch:

    if ( $post_type == 'page' and $id = get_option('page_on_front') ) {

    https://ww.wp.xz.cn/plugins/xml-sitemap-feed/

Viewing 1 replies (of 1 total)
  • Plugin Author Rolf Allard van Hagen

    (@ravanh)

    Hi kitchin, you’re absolutely right… It’s the precedence that is at play here. I’ll fix this asap. Thanks for the feedback 🙂

Viewing 1 replies (of 1 total)

The topic ‘Undefined variable: pong’ is closed to new replies.