Changeset 50566 for trunk/src/wp-includes/robots-template.php
- Timestamp:
- 03/23/2021 11:00:03 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/robots-template.php
r50371 r50566 16 16 * 17 17 * @since 5.7.0 18 * @since 5.7.1 No longer prevents specific directives to occur together. 18 19 */ 19 20 function wp_robots() { … … 30 31 */ 31 32 $robots = apply_filters( 'wp_robots', array() ); 32 33 // Don't allow mutually exclusive directives.34 if ( ! empty( $robots['follow'] ) ) {35 unset( $robots['nofollow'] );36 }37 if ( ! empty( $robots['nofollow'] ) ) {38 unset( $robots['follow'] );39 }40 if ( ! empty( $robots['archive'] ) ) {41 unset( $robots['noarchive'] );42 }43 if ( ! empty( $robots['noarchive'] ) ) {44 unset( $robots['archive'] );45 }46 33 47 34 $robots_strings = array();
Note: See TracChangeset
for help on using the changeset viewer.