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/template-loader.php

    r44524 r44966  
    5252    elseif ( is_front_page() && $template = get_front_page_template() ) :
    5353    elseif ( is_home() && $template = get_home_template() ) :
     54    elseif ( is_privacy_policy() && $template = get_privacy_policy_template() ) :
    5455    elseif ( is_post_type_archive() && $template = get_post_type_archive_template() ) :
    5556    elseif ( is_tax() && $template = get_taxonomy_template() ) :
Note: See TracChangeset for help on using the changeset viewer.