WordPress.org

Make WordPress Core

Ticket #19952: 19952.diff

File 19952.diff, 451 bytes (added by batmoo, 2 years ago)
  • wp-includes/taxonomy.php

     
    18671867function wp_get_object_terms($object_ids, $taxonomies, $args = array()) { 
    18681868        global $wpdb; 
    18691869 
     1870        if ( empty( $object_ids ) || empty( $taxonomies ) ) 
     1871                return array(); 
     1872 
    18701873        if ( !is_array($taxonomies) ) 
    18711874                $taxonomies = array($taxonomies); 
    18721875