Changeset 50587 for branches/5.7/src/wp-includes/robots-template.php
- Timestamp:
- 03/26/2021 12:26:55 AM (2 years ago)
- Location:
- branches/5.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.7
-
branches/5.7/src/wp-includes/robots-template.php
r50371 r50587 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.