mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@40290 git-svn-id: http://core.svn.wordpress.org/trunk@40197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d92e1fb1e4
commit
d4350bc065
@ -1916,7 +1916,7 @@ function wp_get_object_terms($object_ids, $taxonomies, $args = array()) {
|
||||
$terms = apply_filters( 'get_object_terms', $terms, $object_ids, $taxonomies, $args );
|
||||
|
||||
$object_ids = implode( ',', $object_ids );
|
||||
$taxonomies = implode( ',', $taxonomies );
|
||||
$taxonomies = "'" . implode( "', '", array_map( 'esc_sql', $taxonomies ) ) . "'";
|
||||
|
||||
/**
|
||||
* Filters the terms for a given object or objects.
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.8-alpha-40284';
|
||||
$wp_version = '4.8-alpha-40290';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user