Hicpo::refresh_network_2() causes an infinite loop.
-
Dear Intuitive Custom Post Order plugin developer,
I am managing a wordpress multisite, which has 70+ subsites.
Yesterday I’ve upgraded ICOP from version 3.0.7 to 3.1.1, the current version, and I cannot access to the multisite list page.I have inspected the problem and I have found that an infinite loop is made in your code.
‘intuitive-custom-post-order.php:326’, function refresh_network_2() is designated as callback function for ‘query’ filter. And in this method, it calls get_option() function which finally calls apply_filters( ‘query’ ). It makes the infinite loop.
So, your code,
$hicpo_network_sites = get_option( 'hicpo_network_sites' );
should be changed like:remove_filter( 'query', array( $this, 'refresh_network_2' ) ); $hicpo_network_sites = get_option( 'hicpo_network_sites' ); add_filter( 'query', array( $this, 'refresh_network_2' ) );
Thank you for read my comment, and please update the code.
- The topic ‘Hicpo::refresh_network_2() causes an infinite loop.’ is closed to new replies.