WordPress.org

Make WordPress Core

Changeset 31813


Ignore:
Timestamp:
03/18/2015 06:22:20 PM (7 years ago)
Author:
boonebgorges
Message:

Ensure that the $exclusions parameter of 'list_terms_exclusions' filter is always a string.

Props fhwebcs.
Fixes #31681.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r31792 r31813  
    18251825    if ( ! empty( $exclusions ) ) {
    18261826        $exclusions = ' AND t.term_id NOT IN (' . implode( ',', array_map( 'intval', $exclusions ) ) . ')';
     1827    } else {
     1828        $exclusions = '';
    18271829    }
    18281830
Note: See TracChangeset for help on using the changeset viewer.