Skip to content

Changes in 4.6 (WP_Term_Query) cause errors #653

Description

@Ipstenu

When using CMB2 everything shows fine on the front end, but when I go to look at my post editor (where I show a custom taxonomy multicheck) I get errors

Warning: Illegal string offset 'taxonomy' in /Users/ipstenu/Documents/Websites/lezwatchtv.dev/wp-includes/taxonomy.php on line 1192

Notice: Array to string conversion in /Users/ipstenu/Documents/Websites/lezwatchtv.dev/wp-includes/taxonomy.php on line 1192

And then ALL the taxonomies show in one big fugly section.

The tax grab is the very basic:

    $cmb_showdetails->add_field( array(
        'name'     => 'Cliché Plotlines',
        'id'       => $prefix . 'cliches',
        'taxonomy' => 'lez_cliches', //Enter Taxonomy Slug
        'type'     => 'taxonomy_multicheck',
        'select_all_button' => false,
    ) );

I'm pretty sure this is all related to https://core.trac.wordpress.org/changeset/37572

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions