2025-06-12
- sauvegarde les changements en vrac avant de tester les modifications demandées par Manon
This commit is contained in:
parent
5c53e17225
commit
e0e7bf18f2
15 changed files with 767 additions and 424 deletions
|
|
@ -449,9 +449,7 @@ class Block_Container extends Container {
|
|||
unset($attributes['data']);
|
||||
ob_start();
|
||||
call_user_func( $this->render_callback , $fields, $attributes, $content, $post_id, $block );
|
||||
$toReturn = ob_get_contents();
|
||||
ob_clean();
|
||||
return $toReturn;
|
||||
return ob_get_clean();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -100,11 +100,14 @@ class Meta_Query_Service extends Service {
|
|||
}
|
||||
|
||||
public function filter_get_meta_sql( $sql ) {
|
||||
if ( strpos( $sql['where'], static::META_KEY_PREFIX ) !== false ) {
|
||||
$sql['where'] = preg_replace( $this->get_meta_key_replace_regex(), '$1 LIKE $2', $sql['where'] );
|
||||
}
|
||||
return $sql;
|
||||
}
|
||||
if ( strpos( $sql['where'], static::META_KEY_PREFIX ) !== false ) {
|
||||
$sql['where'] = preg_replace( $this->get_meta_key_replace_regex(), '$1 LIKE $2', $sql['where'] );
|
||||
}
|
||||
if ( strpos( $sql['join'], static::META_KEY_PREFIX ) !== false ) {
|
||||
$sql['join'] = str_replace( static::META_KEY_PREFIX, '', $sql['join'] );
|
||||
}
|
||||
return $sql;
|
||||
}
|
||||
|
||||
/**************************************************
|
||||
* WP_QUERY *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue