Make WordPress Core


Ignore:
Timestamp:
03/14/2017 06:42:57 PM (9 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.

Merge of [40290] to the 4.7 branch.

Props ig_communitysites.
Fixes #40154.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-includes/taxonomy.php

    r39611 r40291  
    18931893
    18941894        $object_ids = implode( ',', $object_ids );
    1895         $taxonomies = implode( ',', $taxonomies );
     1895        $taxonomies = "'" . implode( "', '", array_map( 'esc_sql', $taxonomies ) ) . "'";
    18961896
    18971897        /**
Note: See TracChangeset for help on using the changeset viewer.