_wp_filter_taxonomy_base

The timeline below displays how wordpress function _wp_filter_taxonomy_base has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

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;
}

WordPress Version: 3.7

/**
 * Filter 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;
}