Make WordPress Core


Ignore:
Timestamp:
03/21/2019 07:47:29 PM (6 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-template.php

    r44941 r44966  
    621621    if ( is_home() ) {
    622622        $classes[] = 'blog';
     623    }
     624    if ( is_privacy_policy() ) {
     625        $classes[] = 'privacy-policy';
    623626    }
    624627    if ( is_archive() ) {
Note: See TracChangeset for help on using the changeset viewer.