WPtouch WordPress 4.4.1 – Breaks password protected posts
-
Hey,
My site just updated to wordpress 4.4.1 and there seems to be a conflict between wptouch and password protected posts.
Deactivating the plugin fixes the problem.
Using this in my functions.php to password protected custom post types.
/** Password Form for Custom Posts **/ function exclude_protected($where) { global $wpdb; return $where .= " AND {$wpdb->posts}.post_password = '' "; } // Where to display protected posts function exclude_protected_action($query) { if( !is_single() && !is_page() && !is_admin() ) { add_filter( 'posts_where', 'exclude_protected' ); } } // Action to queue the filter at the right time add_action('pre_get_posts', 'exclude_protected_action');
- The topic ‘WPtouch WordPress 4.4.1 – Breaks password protected posts’ is closed to new replies.