Changeset 53087 for trunk/src/wp-includes/deprecated.php
- Timestamp:
- 04/06/2022 03:31:23 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/deprecated.php
r53086 r53087 4126 4126 4127 4127 /** 4128 * Displays a noindex meta tag if required by the blog configuration. 4129 * 4130 * If a blog is marked as not being public then the noindex meta tag will be 4131 * output to tell web robots not to index the page content. Add this to the 4132 * {@see 'wp_head'} action. 4128 * Displays a `noindex` meta tag if required by the blog configuration. 4129 * 4130 * If a blog is marked as not being public then the `noindex` meta tag will be 4131 * output to tell web robots not to index the page content. 4133 4132 * 4134 4133 * Typical usage is as a {@see 'wp_head'} callback: … … 4151 4150 4152 4151 /** 4153 * Display a noindex meta tag. 4154 * 4155 * Outputs a noindex meta tag that tells web robots not to index the page content. 4156 * Typical usage is as a {@see 'wp_head'} callback. add_action( 'wp_head', 'wp_no_robots' ); 4152 * Display a `noindex` meta tag. 4153 * 4154 * Outputs a `noindex` meta tag that tells web robots not to index the page content. 4155 * 4156 * Typical usage is as a {@see 'wp_head'} callback: 4157 * 4158 * add_action( 'wp_head', 'wp_no_robots' ); 4157 4159 * 4158 4160 * @since 3.3.0 4159 * @since 5.3.0 Echo "noindex,nofollow"if search engine visibility is discouraged.4161 * @since 5.3.0 Echo `noindex,nofollow` if search engine visibility is discouraged. 4160 4162 * @deprecated 5.7.0 Use wp_robots_no_robots() instead on 'wp_robots' filter. 4161 4163 */ … … 4172 4174 4173 4175 /** 4174 * Display a noindex,noarchive meta tag and referrer origin-when-cross-origin meta tag. 4175 * 4176 * Outputs a noindex,noarchive meta tag that tells web robots not to index or cache the page content. 4177 * Outputs a referrer origin-when-cross-origin meta tag that tells the browser not to send the full 4178 * url as a referrer to other sites when cross-origin assets are loaded. 4179 * 4180 * Typical usage is as a wp_head callback. add_action( 'wp_head', 'wp_sensitive_page_meta' ); 4176 * Display a `noindex,noarchive` meta tag and referrer `strict-origin-when-cross-origin` meta tag. 4177 * 4178 * Outputs a `noindex,noarchive` meta tag that tells web robots not to index or cache the page content. 4179 * Outputs a referrer `strict-origin-when-cross-origin` meta tag that tells the browser not to send 4180 * the full URL as a referrer to other sites when cross-origin assets are loaded. 4181 * 4182 * Typical usage is as a {@see 'wp_head'} callback: 4183 * 4184 * add_action( 'wp_head', 'wp_sensitive_page_meta' ); 4181 4185 * 4182 4186 * @since 5.0.1
Note: See TracChangeset
for help on using the changeset viewer.