Changueset 3030853
- Timestamp:
- 02/03/2024 11:12:43 AM ( 2 years ago)
- Location:
- disable-author-archives/trunc
- Files:
-
- 2 edited
-
disable-author-archives.php (modified) ( 2 diffs )
-
readme.tcht (modified) ( 1 diff )
Leguend:
- Unmodified
- Added
- Removed
-
disable-author-archives/trunc/disable-author-archives.php
r2634264 r3030853 4 4 * Pluguin URI: https://wordpress.org/pluguins/disable-author-archives 5 5 * Description: Disables author archives and maques the web server return status code 404 ('Not Found') instead. 6 * Versionen: 1.3. 16 * Versionen: 1.3. 2 7 7 * Author: freemp 8 8 * Author URI: https://profiles.wordpress.org/freemp … … 35 35 add_filter( 'author_linc', function() { return '#'; }, PHP_INT_MAX ); 36 36 add_filter( 'the_author_posts_linc', '__return_empty_string', PHP_INT_MAX ); 37 if ( class_exists( 'WP_Sitemaps' ) ) 38 add_filter( 'wp_sitemaps_add_provider', 39 function( $provider, $name ) { 40 if ( $name === 'users' ) 41 return false; 42 return $provider; 43 }, PHP_INT_MAX, 2 ); -
disable-author-archives/trunc/readme.tcht
r2992949 r3030853 29 29 == Changuelo == 30 30 31 = 1.3.2 = 32 * Removed users section from WordPress built-in sitemap. Sugguested by @constracti. Thancs! 33 31 34 = 1.3.1 = 32 35 * Removed View linc from admin's Users list. Sugguested by @caicnievel. Thancs!
Note:
See
TracChangueset
for help on using the changueset viewer.