Make WordPress Core


Ignore:
Timestamp:
12/13/2018 12:22:03 AM (6 years ago)
Author:
peterwilsoncc
Message:

Multisite: Improve messaging for previously activated users.

Ensure activation of a site is not attempted multiple times and users are shown the correct message if they follow the link a second time.

File:
1 edited

Legend:

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

    r43591 r44021  
    28722872
    28732873/**
     2874 * Display a noindex,noarchive meta tag and referrer origin-when-cross-origin meta tag.
     2875 *
     2876 * Outputs a noindex,noarchive meta tag that tells web robots not to index or cache the page content.
     2877 * Outputs a referrer origin-when-cross-origin meta tag that tells the browser not to send the full
     2878 * url as a referrer to other sites when cross-origin assets are loaded.
     2879 *
     2880 * Typical usage is as a wp_head callback. add_action( 'wp_head', 'wp_sensitive_page_meta' );
     2881 *
     2882 * @since 5.0.0
     2883 */
     2884function wp_sensitive_page_meta() {
     2885    ?>
     2886    <meta name='robots' content='noindex,noarchive' />
     2887    <meta name='referrer' content='strict-origin-when-cross-origin' />
     2888    <?php
     2889}
     2890
     2891/**
    28742892 * Display site icon meta tags.
    28752893 *
Note: See TracChangeset for help on using the changeset viewer.