ImprovementRelated posts just shown when logged in

  • Author
  • Afinação – acabando com os mitos

    The related posts just shown when logged in to wordpress.

    Logged in:
    logged in

    Logged out:
    logged in


    Probably, the bug is in this part of the code. Current user is none when nobody is logged in:

    	if(  isset($yuzo_options->transient) && $yuzo_options->transient ){
    		include_once(ABSPATH . 'wp-includes/pluggable.php');
    		if( false === ($the_query_yuzo = get_transient($transient_name) ) || ( current_user_can( 'manage_options' )  && !isset($_GET['P3_NOCACHE']) )  ){
    			$rebuilt_query  = true;

    Hello, disable the option of transient, also clean the transient and remove the browser cache. You inform me if you still have the same problems.


    I tried to remove transient as you said, with no success.

    I solved the problem bypassing the code above, keeping just the line below. I don’t know what does it change on overall functioning of the plugin.

    $rebuilt_query = true;


    You must disable the option: transient


    it is already disabled.


    Hello, I think that in the next version of the plugin I will remove that option. It has brought problems to the lengthening of time.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.