WordPress.org

Make WordPress Core

Ticket #35382: 35382.patch

File 35382.patch, 481 bytes (added by wpdelighter, 5 years ago)
  • src/wp-includes/taxonomy.php

     
    15481548        }
    15491549
    15501550        if ( $number && is_array( $terms ) && count( $terms ) > $number ) {
    1551                 $terms = array_slice( $terms, $offset, $number );
     1551                $terms = array_slice( $terms, $offset, $number, true );
    15521552        }
    15531553
    15541554        wp_cache_add( $cache_key, $terms, 'terms', DAY_IN_SECONDS );