WordPress.org

Make WordPress Core

Ticket #16469: 16469.diff

File 16469.diff, 434 bytes (added by garyc40, 3 years ago)

use is_numeric() instead of is_int()

  • wp-includes/taxonomy.php

    diff --git wp-includes/taxonomy.php wp-includes/taxonomy.php
    index 80529d5..efb9094 100644
    function get_term_link( $term, $taxonomy = '') { 
    28212821        global $wp_rewrite; 
    28222822 
    28232823        if ( !is_object($term) ) { 
    2824                 if ( is_int($term) ) { 
     2824                if ( is_numeric($term) ) { 
    28252825                        $term = &get_term($term, $taxonomy); 
    28262826                } else { 
    28272827                        $term = &get_term_by('slug', $term, $taxonomy);