Support » Plugin: Read Offline » [Plugin: Read Offline] Support / Feedback

Viewing 1 replies (of 1 total)
  • Your site is down so I’m posting here. Your plugin causes rewrite rules flush every time you navigate through admin, I think that the problem is here:

    function ps_read_offline_flush_rewrite_rules() {
    
    			$rules = $GLOBALS['wp_rewrite']->wp_rewrite_rules(); // you have missed this line
    			// without upper line this condition is always true :)
    			if ( ! isset( $rules['read-offline/([^/]+)/([^\.]+).(pdf|epub|mobi)$'] ) ) {
    				global $wp_rewrite;
    	   			$wp_rewrite->flush_rules();
    			}
        	}

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Read Offline] Support / Feedback’ is closed to new replies.