WordPress.org

Make WordPress Core

Ticket #9193: taxonomy.patch

File taxonomy.patch, 434 bytes (added by alexrabe, 7 years ago)

is_numeric instead is_int

  • taxonomy.php

     
    21262126        $termlink = $wp_rewrite->get_extra_permastruct($taxonomy); 
    21272127 
    21282128        if ( !is_object($term) ) { 
    2129                 if ( is_int($term) ) { 
     2129                if ( is_numeric($term) ) { 
    21302130                        $term = &get_term($term, $taxonomy); 
    21312131                } else { 
    21322132                        $term = &get_term_by('slug', $term, $taxonomy);