mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Privacy: Introduce Privacy Policy page helpers:
* `is_privacy_policy()` template tag * `privacy-policy.php` template * `.privacy-policy` body class * `.menu-item-privacy-policy` menu item class Props garrett-eclipse, birgire, xkon, Clorith. Fixes #44005. git-svn-id: https://develop.svn.wordpress.org/trunk@44966 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -621,6 +621,9 @@ function get_body_class( $class = '' ) {
|
||||
if ( is_home() ) {
|
||||
$classes[] = 'blog';
|
||||
}
|
||||
if ( is_privacy_policy() ) {
|
||||
$classes[] = 'privacy-policy';
|
||||
}
|
||||
if ( is_archive() ) {
|
||||
$classes[] = 'archive';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user