Changeset 53087
- Timestamp:
- 04/06/2022 03:31:23 PM (3 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 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 -
trunk/src/wp-includes/general-template.php
r53041 r53087 3225 3225 3226 3226 /** 3227 * Displays a referrer strict-origin-when-cross-origin meta tag. 3228 * 3229 * Outputs a referrer origin-when-cross-origin meta tag that tells the browser not to send the full 3230 * url as a referrer to other sites when cross-origin assets are loaded. 3231 * 3232 * Typical usage is as a wp_head callback. add_action( 'wp_head', 'wp_strict_cross_origin_referrer' ); 3227 * Displays a referrer `strict-origin-when-cross-origin` meta tag. 3228 * 3229 * Outputs a referrer `strict-origin-when-cross-origin` meta tag that tells the browser not to send 3230 * the full URL as a referrer to other sites when cross-origin assets are loaded. 3231 * 3232 * Typical usage is as a {@see 'wp_head'} callback: 3233 * 3234 * add_action( 'wp_head', 'wp_strict_cross_origin_referrer' ); 3233 3235 * 3234 3236 * @since 5.7.0 -
trunk/src/wp-includes/robots-template.php
r50566 r53087 51 51 52 52 /** 53 * Adds noindexto the robots meta tag if required by the site configuration.53 * Adds `noindex` to the robots meta tag if required by the site configuration. 54 54 * 55 55 * If a blog is marked as not being public then noindex will be output to … … 77 77 78 78 /** 79 * Adds noindexto the robots meta tag for embeds.79 * Adds `noindex` to the robots meta tag for embeds. 80 80 * 81 81 * Typical usage is as a {@see 'wp_robots'} callback: … … 99 99 100 100 /** 101 * Adds noindexto the robots meta tag if a search is being performed.101 * Adds `noindex` to the robots meta tag if a search is being performed. 102 102 * 103 103 * If a search is being performed then noindex will be output to … … 125 125 126 126 /** 127 * Adds noindexto the robots meta tag.127 * Adds `noindex` to the robots meta tag. 128 128 * 129 129 * This directive tells web robots not to index the page content. … … 151 151 152 152 /** 153 * Adds noindex and noarchiveto the robots meta tag.153 * Adds `noindex` and `noarchive` to the robots meta tag. 154 154 * 155 155 * This directive tells web robots not to index or archive the page content and … … 172 172 173 173 /** 174 * Adds 'max-image-preview:large'to the robots meta tag.174 * Adds `max-image-preview:large` to the robots meta tag. 175 175 * 176 176 * This directive tells web robots that large image previews are allowed to be
Note: See TracChangeset
for help on using the changeset viewer.