Fix SQL error for token meta box
This commit is contained in:
parent
8cc25fc51a
commit
819ab69363
@ -705,7 +705,7 @@ function fictioneer_get_metabox_tokens( $post, $meta_key, $options, $args = [] )
|
|||||||
$description = strval( $args['description'] ?? '' );
|
$description = strval( $args['description'] ?? '' );
|
||||||
|
|
||||||
// Query post titles if required
|
// Query post titles if required
|
||||||
if ( ! ( $args['names'] ?? 0 ) ) {
|
if ( $array && ! ( $args['names'] ?? 0 ) ) {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
||||||
$placeholders = implode( ',', array_fill( 0, count( $array ), '%d' ) );
|
$placeholders = implode( ',', array_fill( 0, count( $array ), '%d' ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user