Make WordPress Core


Ignore:
Timestamp:
03/14/2017 06:41:26 PM (7 years ago)
Author:
boonebgorges
Message:

Fix the formatting of $taxonomies parameter of 'wp_get_object_terms' filter.

[38667] changed the way that the filter parameters are built. That
changeset didn't fully account for the pre-4.7 format of $taxonomies.

Props ig_communitysites.
Fixes #40154.

File:
1 edited

Legend:

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

    r40275 r40290  
    19171917
    19181918    $object_ids = implode( ',', $object_ids );
    1919     $taxonomies = implode( ',', $taxonomies );
     1919    $taxonomies = "'" . implode( "', '", array_map( 'esc_sql', $taxonomies ) ) . "'";
    19201920
    19211921    /**
Note: See TracChangeset for help on using the changeset viewer.