Changeset 11330 for sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-well-known.php
- Timestamp:
- 11/17/2021 06:12:18 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-well-known.php
r11107 r11330 9 9 } 10 10 11 if ( 12 '/.well-known/security.txt' === $_SERVER['REQUEST_URI'] || 13 '/security.txt' === $_SERVER['REQUEST_URI'] 14 ) { 15 security_txt(); 16 exit; 17 } 11 add_action( 'init', function() { 12 if ( 13 '/.well-known/security.txt' === $_SERVER['REQUEST_URI'] || 14 '/security.txt' === $_SERVER['REQUEST_URI'] 15 ) { 16 security_txt(); 17 exit; 18 } 19 20 if ( '/.well-known/change-password' === $_SERVER['REQUEST_URI'] ) { 21 wp_safe_redirect( 'https://wordpress.org/support/users/my-profile/edit/' ); 22 exit; 23 } 24 } ); 18 25 19 26 function security_txt() {
Note: See TracChangeset
for help on using the changeset viewer.