Changeset 44025 for branches/4.8/src/wp-includes/general-template.php
- Timestamp:
- 12/13/2018 12:36:24 AM (4 years ago)
- Location:
- branches/4.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
-
branches/4.8/src/wp-includes/general-template.php
r42918 r44025 2789 2789 2790 2790 /** 2791 * Display a noindex,noarchive meta tag and referrer origin-when-cross-origin meta tag. 2792 * 2793 * Outputs a noindex,noarchive meta tag that tells web robots not to index or cache the page content. 2794 * Outputs a referrer origin-when-cross-origin meta tag that tells the browser not to send the full 2795 * url as a referrer to other sites when cross-origin assets are loaded. 2796 * 2797 * Typical usage is as a wp_head callback. add_action( 'wp_head', 'wp_sensitive_page_meta' ); 2798 * 2799 * @since 5.0.0 2800 */ 2801 function wp_sensitive_page_meta() { 2802 ?> 2803 <meta name='robots' content='noindex,noarchive' /> 2804 <meta name='referrer' content='strict-origin-when-cross-origin' /> 2805 <?php 2806 } 2807 2808 /** 2791 2809 * Display site icon meta tags. 2792 2810 *
Note: See TracChangeset
for help on using the changeset viewer.