Changeset 50371 for trunk/src/wp-includes/embed.php
- Timestamp:
- 02/17/2021 10:49:13 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/embed.php
r49992 r50371 1244 1244 return $result; 1245 1245 } 1246 1247 /**1248 * Adds noindex to the robots meta tag for embeds.1249 *1250 * Typical usage is as a {@see 'wp_robots'} callback:1251 *1252 * add_filter( 'wp_robots', 'wp_embed_no_robots' );1253 *1254 * @since 5.7.01255 *1256 * @param array $robots Associative array of robots directives.1257 * @return array Filtered robots directives.1258 */1259 function wp_embed_no_robots( array $robots ) {1260 if ( ! is_embed() ) {1261 return $robots;1262 }1263 1264 return wp_robots_no_robots( $robots );1265 }
Note: See TracChangeset
for help on using the changeset viewer.