Fix SQL error for token meta box

This commit is contained in:
Tetrakern 2024-11-04 21:41:26 +01:00
parent 8cc25fc51a
commit 819ab69363

View File

@ -705,7 +705,7 @@ function fictioneer_get_metabox_tokens( $post, $meta_key, $options, $args = [] )
$description = strval( $args['description'] ?? '' );
// Query post titles if required
if ( ! ( $args['names'] ?? 0 ) ) {
if ( $array && ! ( $args['names'] ?? 0 ) ) {
global $wpdb;
$placeholders = implode( ',', array_fill( 0, count( $array ), '%d' ) );