This question is sequel to question
How do I make pages which were "intentionally left blank"?
The accepted solution there
\documentclass[openright]{scrbook}
\newcommand*{\blankpage}{%
\vspace*{\fill}
\centering This page would be intentionally left blank if we would not wish to inform about that.
\vspace{\fill}}
\makeatletter
\renewcommand*{\cleardoublepage}{\clearpage\if@twoside \ifodd\c@page\else
\blankpage
\thispagestyle{empty}
\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother
\begin{document}
Text
\chapter{First chapter}
\end{document}
does insert blank page warning, but only \mainmatter. \frontmatter, \appendix and \backmatter do not have blank page warning.
Is there any way to tweak this solution so it would produce blank page warning for the whole document?