Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Tema

    (@madeinua)

    Related issue:

    $default = $this->option($post->post_type, 'per-type')

    returns -1. Since this is numeric value you do the following:

    $keep = $new;

    and the do a check:

    while ( count($items) > $keep ) {

    but -1 always will be less than count($items)!

    Probably this problem comes from my new custom post type which was added after your plugin initialization.

    Plugin Author Dion Hulse

    (@dd32)

    Meta Developer

    Hi @madeinua

    Thanks for the bug report! I’ll have a look into it, but it sounds like you’re probably right ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Infinite loop – error’ is closed to new replies.