Changeset 14640 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-audit-log.php
- Timestamp:
- 01/23/2026 04:13:33 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-audit-log.php
r14301 r14640 113 113 $where_from = ! ms_is_switched() ? home_url( '/' ) : $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 114 114 $where_from = explode( '?', $where_from )[0]; 115 $where_from = preg_replace( '!^(?:https?://)?(.+?)/?[^/]*$!i', '$1', $where_from );115 $where_from = wp_parse_url( $where_from, PHP_URL_HOST ) ?: $where_from; 116 116 117 117 // Add a user note about this action. … … 123 123 ); 124 124 125 // Used in wporg-login to add context.125 // Used in wporg-login & user-helpers to add context. 126 126 $note_text = apply_filters( 'wporg_bbp_forum_role_changed_note_text', $note_text, $user ); 127 127
Note:
See TracChangeset
for help on using the changeset viewer.