WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #42691, comment 7


Ignore:
Timestamp:
12/11/2017 08:01:08 AM (4 years ago)
Author:
GM_Alex
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #42691, comment 7

    initial v1  
    44protected function populate_terms( $term_ids ) {
    55    if ( is_array($term_ids) === false ) {
    6         return $term_ids;
     6        return array();
    77    }
    88
     
    2222
    2323Otherwise we get a warning.
     24
     25Edit: We have to return an empty array otherwise more warnings will be shown.