Changeset 53294
- Timestamp:
- 04/27/2022 01:45:57 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/vars.php
r53060 r53294 30 30 preg_match( '#/wp-admin/?(.*?)$#i', $_SERVER['PHP_SELF'], $self_matches ); 31 31 } 32 $pagenow = $self_matches[1]; 32 33 $pagenow = ! empty( $self_matches[1] ) ? $self_matches[1] : ''; 33 34 $pagenow = trim( $pagenow, '/' ); 34 35 $pagenow = preg_replace( '#\?.*?$#', '', $pagenow ); 36 35 37 if ( '' === $pagenow || 'index' === $pagenow || 'index.php' === $pagenow ) { 36 38 $pagenow = 'index.php';
Note: See TracChangeset
for help on using the changeset viewer.