Mlp_Term_Translation::fix_term_base PHP 메소드

fix_term_base() 개인적인 메소드

Updates the global wp_rewrite instance if it is wrong
private fix_term_base ( string $taxonomy ) : boolean | string
$taxonomy string
리턴 boolean | string FALSE or the original string for later restore
    private function fix_term_base($taxonomy)
    {
        $expected = $this->get_expected_base($taxonomy);
        $existing = $this->wp_rewrite->get_extra_permastruct($taxonomy);
        if (!$this->update_required($expected, $existing)) {
            return FALSE;
        }
        $this->set_permastruct($taxonomy, $expected);
        return $existing;
    }