WordPress Version: 4.6
/**
* Filters the URL base for taxonomies.
*
* To remove any manually prepended /index.php/.
*
* @access private
* @since 2.6.0
*
* @param string $base The taxonomy base that we're going to filter
* @return string
*/
function _wp_filter_taxonomy_base($base)
{
if (!empty($base)) {
$base = preg_replace('|^/index\.php/|', '', $base);
$base = trim($base, '/');
}
return $base;
}