This plugin does one thing. If a page that is password protected has children pages, all children pages will be protected with the same password.
If the correct password is entered on the parent page or any of its children pages, all related pages will be viewable to the user.
The plugin protects unlimited levels of grandchildren pages via the $post->ancestors. It uses first ancestor that is password protected.
0.3
Fixed bug where children pages of non-protected parents had 'Protected: ' prepended to the title. Can also detect if parent page is protected now even when grandparent page is not protected.
更新日志:
0.3
Fixed bug where children pages of non-protected parents had 'Protected: ' prepended to the title.
In case where grandparent page is not protected but parent page was, child pages are now protected.
0.2
Added ability to protect all levels below initially protected page. Props to trevorgehman on the WP.org support forums for the tip.