157
159
list( $req_uri ) = explode( '?', $_SERVER['REQUEST_URI'] );
158
160
$self = $_SERVER['PHP_SELF'];
159
161
$home_path = trim( parse_url( home_url(), PHP_URL_PATH ), '/' );
161
164
// Trim path info from the end and the leading home path from the
162
165
// front. For path info requests, this leaves us with the requesting