WordPress.org

Ready to get started?Download WordPress

Forums

Page-list
[resolved] [Small bug+fix] Error if page list is empty (7 posts)

  1. jrf
    Member
    Posted 1 year ago #

    Hiya,

    Happy to found your plugin. I use it for sub-menu's in the sidebar and found some errors in my errorlog.

    To fix, find line 318 in page-list.php:

    $offset_count = 0;
    foreach($list_pages as $page){

    And replace with:

    $offset_count = 0;
    if( $list_pages !== false && count( $list_pages ) > 0 ){
    foreach($list_pages as $page){

    And line 419:

    }
    }

    Replace with:

    }
    }
    }

    (I didn't add the extra indentation which would be needed for neat code ;-) )

    Hope this helps!

    Smile,
    Juliette

    http://wordpress.org/extend/plugins/page-list/

  2. webvitaly
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you very much for your feedback.
    This fix will be added to next plugin's commit.

  3. jrf
    Member
    Posted 1 year ago #

    Excellent. Thank you.

  4. jrf
    Member
    Posted 5 months ago #

    Unfortunately the fix is still missing from the plugin.... next version... ?

  5. webvitaly
    Member
    Plugin Author

    Posted 5 months ago #

    Fixed.

    I updated the code in the trunk, but I did not updated the plugin version, because it is minor changes.
    So users will not see the update notice but all next downloads will have the updated version.

    So if you want to have the updated version - you should re-install the plugin.

  6. webvitaly
    Member
    Plugin Author

    Posted 5 months ago #

    Oh, it is already 8 months passed...

    We need urgently to invent a time machine! :)

  7. jrf
    Member
    Posted 5 months ago #

    Okidoki, understood. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags