Changeset 3030853
- Timestamp:
- 02/03/2024 11:12:43 AM (2 years ago)
- Location:
- disable-author-archives/trunk
- Files:
-
- 2 edited
-
disable-author-archives.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
disable-author-archives/trunk/disable-author-archives.php
r2634264 r3030853 4 4 * Plugin URI: https://wordpress.org/plugins/disable-author-archives 5 5 * Description: Disables author archives and makes the web server return status code 404 ('Not Found') instead. 6 * Version: 1.3. 16 * Version: 1.3.2 7 7 * Author: freemp 8 8 * Author URI: https://profiles.wordpress.org/freemp … … 35 35 add_filter( 'author_link', function() { return '#'; }, PHP_INT_MAX ); 36 36 add_filter( 'the_author_posts_link', '__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/trunk/readme.txt
r2992949 r3030853 29 29 == Changelog == 30 30 31 = 1.3.2 = 32 * Removed users section from WordPress built-in sitemap. Suggested by @constracti. Thanks! 33 31 34 = 1.3.1 = 32 35 * Removed View link from admin's Users list. Suggested by @khaiknievel. Thanks!
Note: See TracChangeset
for help on using the changeset viewer.