WordPress 4.4.1 pagination NEW FIX!

The WordPress 4.4.1 security update introduced an incompatibility issue with a lot of themes that use custom pagination on homepage templates. We are very sorry for this inconvenience and we are working very hard to fix this ASAP with an update from themeforest.

Until the final package is ready, you can use this fix for the pagination issue (paste it at the end of your functions.php file from the theme)

add_filter('redirect_canonical', 'td_tmp_fix_wp_441_pagination', 10, 2);
function td_tmp_fix_wp_441_pagination($redirect_url, $requested_url) {
   global $wp_query;

   if (is_page() && !is_feed() && isset($wp_query->queried_object) && get_page_template_slug($wp_query->queried_object->ID) == 'page-pagebuilder-latest.php') {
      return false;
   }

   return $redirect_url;
}